From b313e4bd70e601fd7a2a931f168fb1dece980e75 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 2 May 2024 00:22:16 -0700 Subject: [PATCH] feat(all): auto-regenerate discovery clients (#2564) --- admin/directory/v1/admin-api.json | 25 +- admin/directory/v1/admin-gen.go | 15 +- dataflow/v1b3/dataflow-api.json | 67 +- dataflow/v1b3/dataflow-gen.go | 62 +- dlp/v2/dlp-api.json | 6 +- dlp/v2/dlp-gen.go | 3 +- .../v2/doubleclickbidmanager-api.json | 165 +- .../v2/doubleclickbidmanager-gen.go | 210 -- firebaseappcheck/v1/firebaseappcheck-api.json | 8 +- firebaseappcheck/v1/firebaseappcheck-gen.go | 3 + .../v1beta/firebaseappcheck-api.json | 8 +- .../v1beta/firebaseappcheck-gen.go | 3 + firebaseml/v2beta/firebaseml-api.json | 3 +- logging/v2/logging-api.json | 557 ++++- logging/v2/logging-gen.go | 1801 ++++++++++++++++- run/v1/run-api.json | 58 +- run/v1/run-gen.go | 85 + run/v2/run-api.json | 70 +- run/v2/run-gen.go | 108 + .../v1/servicemanagement-api.json | 5 +- servicemanagement/v1/servicemanagement-gen.go | 7 +- solar/v1/solar-api.json | 7 +- solar/v1/solar-gen.go | 12 + sqladmin/v1/sqladmin-api.json | 68 +- sqladmin/v1/sqladmin-gen.go | 139 +- sqladmin/v1beta4/sqladmin-api.json | 62 +- sqladmin/v1beta4/sqladmin-gen.go | 134 +- storagetransfer/v1/storagetransfer-api.json | 6 +- storagetransfer/v1/storagetransfer-gen.go | 3 - sts/v1/sts-api.json | 16 +- sts/v1/sts-gen.go | 12 - sts/v1beta/sts-api.json | 16 +- sts/v1beta/sts-gen.go | 12 - 33 files changed, 3066 insertions(+), 690 deletions(-) diff --git a/admin/directory/v1/admin-api.json b/admin/directory/v1/admin-api.json index fc2e6aa7ea8..b79d76a668d 100644 --- a/admin/directory/v1/admin-api.json +++ b/admin/directory/v1/admin-api.json @@ -4671,7 +4671,7 @@ } } }, - "revision": "20240304", + "revision": "20240429", "rootUrl": "https://admin.googleapis.com/", "schemas": { "Alias": { @@ -5403,10 +5403,16 @@ "type": "string" }, "autoUpdateExpiration": { - "description": "(Read-only) The timestamp after which the device will stop receiving Chrome updates or support", + "deprecated": true, + "description": "(Read-only) The timestamp after which the device will stop receiving Chrome updates or support. Please use \"autoUpdateThrough\" instead.", "format": "int64", "type": "string" }, + "autoUpdateThrough": { + "description": "Output only. The timestamp after which the device will stop receiving Chrome updates or support.", + "readOnly": true, + "type": "string" + }, "backlightInfo": { "description": "Output only. Contains backlight information for the device.", "items": { @@ -5667,6 +5673,21 @@ "description": "(Read-only) MAC address used by the Chromebook’s internal ethernet port, and for onboard network (ethernet) interface. The format is twelve (12) hexadecimal digits without any delimiter (uppercase letters). This is only relevant for some devices.", "type": "string" }, + "extendedSupportEligible": { + "description": "Output only. Whether or not the device requires the extended support opt in.", + "readOnly": true, + "type": "boolean" + }, + "extendedSupportEnabled": { + "description": "Output only. Whether extended support policy is enabled on the device.", + "readOnly": true, + "type": "boolean" + }, + "extendedSupportStart": { + "description": "Output only. Date of the device when extended support policy for automatic updates starts.", + "readOnly": true, + "type": "string" + }, "firmwareVersion": { "description": "The Chrome device's firmware version.", "type": "string" diff --git a/admin/directory/v1/admin-gen.go b/admin/directory/v1/admin-gen.go index 1645053b1ce..f872c44f95d 100644 --- a/admin/directory/v1/admin-gen.go +++ b/admin/directory/v1/admin-gen.go @@ -1513,8 +1513,12 @@ type ChromeOsDevice struct { // length is 100 characters. Empty values are allowed. AnnotatedUser string `json:"annotatedUser,omitempty"` // AutoUpdateExpiration: (Read-only) The timestamp after which the device will - // stop receiving Chrome updates or support + // stop receiving Chrome updates or support. Please use "autoUpdateThrough" + // instead. AutoUpdateExpiration int64 `json:"autoUpdateExpiration,omitempty,string"` + // AutoUpdateThrough: Output only. The timestamp after which the device will + // stop receiving Chrome updates or support. + AutoUpdateThrough string `json:"autoUpdateThrough,omitempty"` // BacklightInfo: Output only. Contains backlight information for the device. BacklightInfo []*BacklightInfo `json:"backlightInfo,omitempty"` // BootMode: The boot mode for the device. The possible values are: * @@ -1591,6 +1595,15 @@ type ChromeOsDevice struct { // format is twelve (12) hexadecimal digits without any delimiter (uppercase // letters). This is only relevant for some devices. EthernetMacAddress0 string `json:"ethernetMacAddress0,omitempty"` + // ExtendedSupportEligible: Output only. Whether or not the device requires the + // extended support opt in. + ExtendedSupportEligible bool `json:"extendedSupportEligible,omitempty"` + // ExtendedSupportEnabled: Output only. Whether extended support policy is + // enabled on the device. + ExtendedSupportEnabled bool `json:"extendedSupportEnabled,omitempty"` + // ExtendedSupportStart: Output only. Date of the device when extended support + // policy for automatic updates starts. + ExtendedSupportStart string `json:"extendedSupportStart,omitempty"` // FirmwareVersion: The Chrome device's firmware version. FirmwareVersion string `json:"firmwareVersion,omitempty"` // FirstEnrollmentTime: Date and time for the first time the device was diff --git a/dataflow/v1b3/dataflow-api.json b/dataflow/v1b3/dataflow-api.json index 7aa6d45146c..5869329b466 100644 --- a/dataflow/v1b3/dataflow-api.json +++ b/dataflow/v1b3/dataflow-api.json @@ -2187,7 +2187,7 @@ } } }, - "revision": "20240415", + "revision": "20240430", "rootUrl": "https://dataflow.googleapis.com/", "schemas": { "ApproximateProgress": { @@ -3184,7 +3184,7 @@ "type": "string" }, "serviceOptions": { - "description": "The list of service options to enable. This field should be used for service related experiments only. These experiments, when graduating to GA, should be replaced by dedicated fields or become default (i.e. always on).", + "description": "Optional. The list of service options to enable. This field should be used for service related experiments only. These experiments, when graduating to GA, should be replaced by dedicated fields or become default (i.e. always on).", "items": { "type": "string" }, @@ -3903,7 +3903,7 @@ }, "environment": { "$ref": "Environment", - "description": "The environment for the job." + "description": "Optional. The environment for the job." }, "executionInfo": { "$ref": "JobExecutionInfo", @@ -3929,7 +3929,7 @@ "type": "string" }, "name": { - "description": "The user-specified Dataflow job name. Only one active job with a given name can exist in a project within one region at any given time. Jobs in different regions can have the same name. If a caller attempts to create a job with the same name as an active job that already exists, the attempt returns the existing job. The name must match the regular expression `[a-z]([-a-z0-9]{0,1022}[a-z0-9])?`", + "description": "Optional. The user-specified Dataflow job name. Only one active job with a given name can exist in a project within one region at any given time. Jobs in different regions can have the same name. If a caller attempts to create a job with the same name as an active job that already exists, the attempt returns the existing job. The name must match the regular expression `[a-z]([-a-z0-9]{0,1022}[a-z0-9])?`", "type": "string" }, "pipelineDescription": { @@ -4033,7 +4033,7 @@ "type": "object" }, "type": { - "description": "The type of Dataflow job.", + "description": "Optional. The type of Dataflow job.", "enum": [ "JOB_TYPE_UNKNOWN", "JOB_TYPE_BATCH", @@ -4980,7 +4980,8 @@ "WORKER_ZONE", "BOOLEAN", "ENUM", - "NUMBER" + "NUMBER", + "KAFKA_TOPIC" ], "enumDescriptions": [ "Default input type.", @@ -5002,7 +5003,8 @@ "The parameter specifies a Worker Zone.", "The parameter specifies a boolean input.", "The parameter specifies an enum input.", - "The parameter specifies a number input." + "The parameter specifies a number input.", + "The parameter specifies the fully-qualified name of an Apache Kafka topic. This can be either a Google Managed Kafka topic or a non-managed Kafka topic." ], "type": "string" }, @@ -6661,6 +6663,10 @@ "format": "int64", "type": "string" }, + "operationalLimits": { + "$ref": "StreamingOperationalLimits", + "description": "Operational limits for the streaming job. Can be used by the worker to validate outputs sent to the backend." + }, "streamingComputationConfigs": { "description": "Set of computation configuration information.", "items": { @@ -6687,6 +6693,53 @@ }, "type": "object" }, + "StreamingOperationalLimits": { + "description": "Operational limits imposed on streaming jobs by the backend.", + "id": "StreamingOperationalLimits", + "properties": { + "maxBagElementBytes": { + "description": "The maximum size for an element in bag state.", + "format": "int64", + "type": "string" + }, + "maxGlobalDataBytes": { + "description": "The maximum size for an element in global data.", + "format": "int64", + "type": "string" + }, + "maxKeyBytes": { + "description": "The maximum size allowed for a key.", + "format": "int64", + "type": "string" + }, + "maxProductionOutputBytes": { + "description": "The maximum size for a single output element.", + "format": "int64", + "type": "string" + }, + "maxSortedListElementBytes": { + "description": "The maximum size for an element in sorted list state.", + "format": "int64", + "type": "string" + }, + "maxSourceStateBytes": { + "description": "The maximum size for a source state update.", + "format": "int64", + "type": "string" + }, + "maxTagBytes": { + "description": "The maximum size for a state tag.", + "format": "int64", + "type": "string" + }, + "maxValueBytes": { + "description": "The maximum size for a value state field.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "StreamingScalingReport": { "description": "Contains per-user worker telemetry used in streaming autoscaling.", "id": "StreamingScalingReport", diff --git a/dataflow/v1b3/dataflow-gen.go b/dataflow/v1b3/dataflow-gen.go index d35985e2923..5a517dea878 100644 --- a/dataflow/v1b3/dataflow-gen.go +++ b/dataflow/v1b3/dataflow-gen.go @@ -1635,8 +1635,8 @@ type Environment struct { // encrypt data at rest, AKA a Customer Managed Encryption Key (CMEK). Format: // projects/PROJECT_ID/locations/LOCATION/keyRings/KEY_RING/cryptoKeys/KEY ServiceKmsKeyName string `json:"serviceKmsKeyName,omitempty"` - // ServiceOptions: The list of service options to enable. This field should be - // used for service related experiments only. These experiments, when + // ServiceOptions: Optional. The list of service options to enable. This field + // should be used for service related experiments only. These experiments, when // graduating to GA, should be replaced by dedicated fields or become default // (i.e. always on). ServiceOptions []string `json:"serviceOptions,omitempty"` @@ -2560,7 +2560,7 @@ type Job struct { CurrentState string `json:"currentState,omitempty"` // CurrentStateTime: The timestamp associated with the current state. CurrentStateTime string `json:"currentStateTime,omitempty"` - // Environment: The environment for the job. + // Environment: Optional. The environment for the job. Environment *Environment `json:"environment,omitempty"` // ExecutionInfo: Deprecated. ExecutionInfo *JobExecutionInfo `json:"executionInfo,omitempty"` @@ -2582,11 +2582,11 @@ type Job struct { // (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that // contains this job. Location string `json:"location,omitempty"` - // Name: The user-specified Dataflow job name. Only one active job with a given - // name can exist in a project within one region at any given time. Jobs in - // different regions can have the same name. If a caller attempts to create a - // job with the same name as an active job that already exists, the attempt - // returns the existing job. The name must match the regular expression + // Name: Optional. The user-specified Dataflow job name. Only one active job + // with a given name can exist in a project within one region at any given + // time. Jobs in different regions can have the same name. If a caller attempts + // to create a job with the same name as an active job that already exists, the + // attempt returns the existing job. The name must match the regular expression // `[a-z]([-a-z0-9]{0,1022}[a-z0-9])?` Name string `json:"name,omitempty"` // PipelineDescription: Preliminary field: The format of this data may change @@ -2696,7 +2696,7 @@ type Job struct { // TransformNameMapping: The map of transform name prefixes of the job to be // replaced to the corresponding name prefixes of the new job. TransformNameMapping map[string]string `json:"transformNameMapping,omitempty"` - // Type: The type of Dataflow job. + // Type: Optional. The type of Dataflow job. // // Possible values: // "JOB_TYPE_UNKNOWN" - The type of the job is unspecified, or unknown. @@ -3893,6 +3893,9 @@ type ParameterMetadata struct { // "BOOLEAN" - The parameter specifies a boolean input. // "ENUM" - The parameter specifies an enum input. // "NUMBER" - The parameter specifies a number input. + // "KAFKA_TOPIC" - The parameter specifies the fully-qualified name of an + // Apache Kafka topic. This can be either a Google Managed Kafka topic or a + // non-managed Kafka topic. ParamType string `json:"paramType,omitempty"` // ParentName: Optional. Specifies the name of the parent parameter. Used in // conjunction with 'parent_trigger_values' to make this parameter conditional @@ -5970,6 +5973,9 @@ type StreamingConfigTask struct { // MaxWorkItemCommitBytes: Maximum size for work item commit supported windmill // storage layer. MaxWorkItemCommitBytes int64 `json:"maxWorkItemCommitBytes,omitempty,string"` + // OperationalLimits: Operational limits for the streaming job. Can be used by + // the worker to validate outputs sent to the backend. + OperationalLimits *StreamingOperationalLimits `json:"operationalLimits,omitempty"` // StreamingComputationConfigs: Set of computation configuration information. StreamingComputationConfigs []*StreamingComputationConfig `json:"streamingComputationConfigs,omitempty"` // UserStepToStateFamilyNameMap: Map from user step names to state families. @@ -6000,6 +6006,44 @@ func (s *StreamingConfigTask) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// StreamingOperationalLimits: Operational limits imposed on streaming jobs by +// the backend. +type StreamingOperationalLimits struct { + // MaxBagElementBytes: The maximum size for an element in bag state. + MaxBagElementBytes int64 `json:"maxBagElementBytes,omitempty,string"` + // MaxGlobalDataBytes: The maximum size for an element in global data. + MaxGlobalDataBytes int64 `json:"maxGlobalDataBytes,omitempty,string"` + // MaxKeyBytes: The maximum size allowed for a key. + MaxKeyBytes int64 `json:"maxKeyBytes,omitempty,string"` + // MaxProductionOutputBytes: The maximum size for a single output element. + MaxProductionOutputBytes int64 `json:"maxProductionOutputBytes,omitempty,string"` + // MaxSortedListElementBytes: The maximum size for an element in sorted list + // state. + MaxSortedListElementBytes int64 `json:"maxSortedListElementBytes,omitempty,string"` + // MaxSourceStateBytes: The maximum size for a source state update. + MaxSourceStateBytes int64 `json:"maxSourceStateBytes,omitempty,string"` + // MaxTagBytes: The maximum size for a state tag. + MaxTagBytes int64 `json:"maxTagBytes,omitempty,string"` + // MaxValueBytes: The maximum size for a value state field. + MaxValueBytes int64 `json:"maxValueBytes,omitempty,string"` + // ForceSendFields is a list of field names (e.g. "MaxBagElementBytes") 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. "MaxBagElementBytes") 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 *StreamingOperationalLimits) MarshalJSON() ([]byte, error) { + type NoMethod StreamingOperationalLimits + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // StreamingScalingReport: Contains per-user worker telemetry used in streaming // autoscaling. type StreamingScalingReport struct { diff --git a/dlp/v2/dlp-api.json b/dlp/v2/dlp-api.json index 723205380d3..d0ba39e5142 100644 --- a/dlp/v2/dlp-api.json +++ b/dlp/v2/dlp-api.json @@ -4451,7 +4451,7 @@ } } }, - "revision": "20240421", + "revision": "20240428", "rootUrl": "https://dlp.googleapis.com/", "schemas": { "GooglePrivacyDlpV2Action": { @@ -7536,7 +7536,7 @@ "type": "object" }, "GooglePrivacyDlpV2InfoTypeCategory": { - "description": "Classification of infoTypes to organize them according to geographic location, industry, and data type. NEXT_ID: 47", + "description": "Classification of infoTypes to organize them according to geographic location, industry, and data type. NEXT_ID: 48", "id": "GooglePrivacyDlpV2InfoTypeCategory", "properties": { "industryCategory": { @@ -7580,6 +7580,7 @@ "ISRAEL", "ITALY", "JAPAN", + "KAZAKHSTAN", "KOREA", "MEXICO", "THE_NETHERLANDS", @@ -7629,6 +7630,7 @@ "The infoType is typically used in Israel.", "The infoType is typically used in Italy.", "The infoType is typically used in Japan.", + "The infoType is typically used in Kazakhstan.", "The infoType is typically used in Korea.", "The infoType is typically used in Mexico.", "The infoType is typically used in the Netherlands.", diff --git a/dlp/v2/dlp-gen.go b/dlp/v2/dlp-gen.go index 0e81fc072d4..9321e6a5682 100644 --- a/dlp/v2/dlp-gen.go +++ b/dlp/v2/dlp-gen.go @@ -5001,7 +5001,7 @@ func (s *GooglePrivacyDlpV2InfoType) MarshalJSON() ([]byte, error) { } // GooglePrivacyDlpV2InfoTypeCategory: Classification of infoTypes to organize -// them according to geographic location, industry, and data type. NEXT_ID: 47 +// them according to geographic location, industry, and data type. NEXT_ID: 48 type GooglePrivacyDlpV2InfoTypeCategory struct { // IndustryCategory: The group of relevant businesses where this infoType is // commonly used @@ -5040,6 +5040,7 @@ type GooglePrivacyDlpV2InfoTypeCategory struct { // "ISRAEL" - The infoType is typically used in Israel. // "ITALY" - The infoType is typically used in Italy. // "JAPAN" - The infoType is typically used in Japan. + // "KAZAKHSTAN" - The infoType is typically used in Kazakhstan. // "KOREA" - The infoType is typically used in Korea. // "MEXICO" - The infoType is typically used in Mexico. // "THE_NETHERLANDS" - The infoType is typically used in the Netherlands. diff --git a/doubleclickbidmanager/v2/doubleclickbidmanager-api.json b/doubleclickbidmanager/v2/doubleclickbidmanager-api.json index e5781dbc80e..847c0742681 100644 --- a/doubleclickbidmanager/v2/doubleclickbidmanager-api.json +++ b/doubleclickbidmanager/v2/doubleclickbidmanager-api.json @@ -319,31 +319,9 @@ } } }, - "revision": "20240305", + "revision": "20240424", "rootUrl": "https://doubleclickbidmanager.googleapis.com/", "schemas": { - "ChannelGrouping": { - "description": "A channel grouping defines a set of rules that can be used to categorize events in a path report.", - "id": "ChannelGrouping", - "properties": { - "fallbackName": { - "description": "The name to apply to an event that does not match any of the rules in the channel grouping.", - "type": "string" - }, - "name": { - "description": "Channel Grouping name.", - "type": "string" - }, - "rules": { - "description": "Rules within Channel Grouping. There is a limit of 100 rules that can be set per channel grouping.", - "items": { - "$ref": "Rule" - }, - "type": "array" - } - }, - "type": "object" - }, "DataRange": { "description": "Report data range.", "id": "DataRange", @@ -427,31 +405,6 @@ }, "type": "object" }, - "DisjunctiveMatchStatement": { - "description": "DisjunctiveMatchStatement that OR's all contained filters.", - "id": "DisjunctiveMatchStatement", - "properties": { - "eventFilters": { - "description": "Filters. There is a limit of 100 filters that can be set per disjunctive match statement.", - "items": { - "$ref": "EventFilter" - }, - "type": "array" - } - }, - "type": "object" - }, - "EventFilter": { - "description": "Defines the type of filter to be applied to the path, a DV360 event dimension filter.", - "id": "EventFilter", - "properties": { - "dimensionFilter": { - "$ref": "PathQueryOptionsFilter", - "description": "Filter on a dimension." - } - }, - "type": "object" - }, "FilterPair": { "description": "Filter used to match traffic data in your report.", "id": "FilterPair", @@ -508,10 +461,6 @@ "includeOnlyTargetedUserLists": { "description": "Set to true and filter your report by `FILTER_INSERTION_ORDER` or `FILTER_LINE_ITEM` to include data for audience lists specifically targeted by those items.", "type": "boolean" - }, - "pathQueryOptions": { - "$ref": "PathQueryOptions", - "description": "Options that contain Path Filters and Custom Channel Groupings. This field is deprecated and will sunset on **May 1, 2024**. After sunset, requests using this field will return an error." } }, "type": "object" @@ -557,9 +506,7 @@ "GRP", "YOUTUBE_PROGRAMMATIC_GUARANTEED", "REACH", - "UNIQUE_REACH_AUDIENCE", - "FULL_PATH", - "PATH_ATTRIBUTION" + "UNIQUE_REACH_AUDIENCE" ], "enumDeprecated": [ false, @@ -571,8 +518,6 @@ false, false, false, - false, - false, false ], "enumDescriptions": [ @@ -585,99 +530,13 @@ "GRP report.", "YouTube Programmatic Guaranteed report.", "Reach report.", - "Unique Reach Audience report.", - "Full Path report. This report type is deprecated and will sunset on **May 1, 2024**. After sunset, requests retrieving, creating, or running reports of this type will return an error.", - "Path Attribution report. This report type is deprecated and will sunset on **May 1, 2024**. After sunset, requests retrieving, creating, or running reports of this type will return an error." - ], - "type": "string" - } - }, - "type": "object" - }, - "PathFilter": { - "description": "Path filters specify which paths to include in a report. A path is the result of combining DV360 events based on User ID to create a workflow of users' actions. When a path filter is set, the resulting report will only include paths that match the specified event at the specified position. All other paths will be excluded.", - "id": "PathFilter", - "properties": { - "eventFilters": { - "description": "Filter on an event to be applied to some part of the path.", - "items": { - "$ref": "EventFilter" - }, - "type": "array" - }, - "pathMatchPosition": { - "description": "The position of the path the filter should match to (first, last, or any event in path).", - "enum": [ - "PATH_MATCH_POSITION_UNSPECIFIED", - "ANY", - "FIRST", - "LAST" - ], - "enumDescriptions": [ - "Default value when path match position is not specified or is unknown in this version.", - "Any position in the path.", - "The first position in the path.", - "The last position in the path." + "Unique Reach Audience report." ], "type": "string" } }, "type": "object" }, - "PathQueryOptions": { - "description": "Path Query Options for Report Options.", - "id": "PathQueryOptions", - "properties": { - "channelGrouping": { - "$ref": "ChannelGrouping", - "description": "Custom Channel Groupings." - }, - "pathFilters": { - "description": "Path Filters. There is a limit of 100 path filters that can be set per report.", - "items": { - "$ref": "PathFilter" - }, - "type": "array" - } - }, - "type": "object" - }, - "PathQueryOptionsFilter": { - "description": "Dimension filter on path events.", - "id": "PathQueryOptionsFilter", - "properties": { - "filter": { - "description": "Dimension the filter is applied to.", - "type": "string" - }, - "match": { - "description": "Match logic of the filter.", - "enum": [ - "UNKNOWN", - "EXACT", - "PARTIAL", - "BEGINS_WITH", - "WILDCARD_EXPRESSION" - ], - "enumDescriptions": [ - "Default value when match is not specified or is unknown in this version.", - "Matches a value exactly.", - "Matches a value partially.", - "Begins with a value.", - "Matches a value, utilizing wildcard character logic in the value." - ], - "type": "string" - }, - "values": { - "description": "Values to filter on.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, "Query": { "description": "Represents a query.", "id": "Query", @@ -894,24 +753,6 @@ }, "type": "object" }, - "Rule": { - "description": "A Rule defines a name, and a boolean expression in [conjunctive normal form] (http://mathworld.wolfram.com/ConjunctiveNormalForm.html){.external} that can be applied to a path event to determine if that name should be applied.", - "id": "Rule", - "properties": { - "disjunctiveMatchStatements": { - "description": "DisjunctiveMatchStatements within a Rule. DisjunctiveMatchStatement OR's all contained filters.", - "items": { - "$ref": "DisjunctiveMatchStatement" - }, - "type": "array" - }, - "name": { - "description": "Rule name.", - "type": "string" - } - }, - "type": "object" - }, "RunQueryRequest": { "description": "Request to run a stored query to generate a report.", "id": "RunQueryRequest", diff --git a/doubleclickbidmanager/v2/doubleclickbidmanager-gen.go b/doubleclickbidmanager/v2/doubleclickbidmanager-gen.go index 46c1c019bcd..b8256e308c4 100644 --- a/doubleclickbidmanager/v2/doubleclickbidmanager-gen.go +++ b/doubleclickbidmanager/v2/doubleclickbidmanager-gen.go @@ -175,35 +175,6 @@ type QueriesReportsService struct { s *Service } -// ChannelGrouping: A channel grouping defines a set of rules that can be used -// to categorize events in a path report. -type ChannelGrouping struct { - // FallbackName: The name to apply to an event that does not match any of the - // rules in the channel grouping. - FallbackName string `json:"fallbackName,omitempty"` - // Name: Channel Grouping name. - Name string `json:"name,omitempty"` - // Rules: Rules within Channel Grouping. There is a limit of 100 rules that can - // be set per channel grouping. - Rules []*Rule `json:"rules,omitempty"` - // ForceSendFields is a list of field names (e.g. "FallbackName") 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. "FallbackName") 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 *ChannelGrouping) MarshalJSON() ([]byte, error) { - type NoMethod ChannelGrouping - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) -} - // DataRange: Report data range. type DataRange struct { // CustomEndDate: The ending date for the data that is shown in the report. @@ -300,53 +271,6 @@ func (s *Date) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } -// DisjunctiveMatchStatement: DisjunctiveMatchStatement that OR's all contained -// filters. -type DisjunctiveMatchStatement struct { - // EventFilters: Filters. There is a limit of 100 filters that can be set per - // disjunctive match statement. - EventFilters []*EventFilter `json:"eventFilters,omitempty"` - // ForceSendFields is a list of field names (e.g. "EventFilters") 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. "EventFilters") 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 *DisjunctiveMatchStatement) MarshalJSON() ([]byte, error) { - type NoMethod DisjunctiveMatchStatement - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) -} - -// EventFilter: Defines the type of filter to be applied to the path, a DV360 -// event dimension filter. -type EventFilter struct { - // DimensionFilter: Filter on a dimension. - DimensionFilter *PathQueryOptionsFilter `json:"dimensionFilter,omitempty"` - // ForceSendFields is a list of field names (e.g. "DimensionFilter") 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. "DimensionFilter") 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 *EventFilter) MarshalJSON() ([]byte, error) { - type NoMethod EventFilter - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) -} - // FilterPair: Filter used to match traffic data in your report. type FilterPair struct { // Type: Filter type. @@ -431,10 +355,6 @@ type Options struct { // `FILTER_INSERTION_ORDER` or `FILTER_LINE_ITEM` to include data for audience // lists specifically targeted by those items. IncludeOnlyTargetedUserLists bool `json:"includeOnlyTargetedUserLists,omitempty"` - // PathQueryOptions: Options that contain Path Filters and Custom Channel - // Groupings. This field is deprecated and will sunset on **May 1, 2024**. - // After sunset, requests using this field will return an error. - PathQueryOptions *PathQueryOptions `json:"pathQueryOptions,omitempty"` // ForceSendFields is a list of field names (e.g. // "IncludeOnlyTargetedUserLists") to unconditionally include in API requests. // By default, fields with empty or default values are omitted from API @@ -479,12 +399,6 @@ type Parameters struct { // report. // "REACH" - Reach report. // "UNIQUE_REACH_AUDIENCE" - Unique Reach Audience report. - // "FULL_PATH" - Full Path report. This report type is deprecated and will - // sunset on **May 1, 2024**. After sunset, requests retrieving, creating, or - // running reports of this type will return an error. - // "PATH_ATTRIBUTION" - Path Attribution report. This report type is - // deprecated and will sunset on **May 1, 2024**. After sunset, requests - // retrieving, creating, or running reports of this type will return an error. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Filters") to unconditionally // include in API requests. By default, fields with empty or default values are @@ -504,102 +418,6 @@ func (s *Parameters) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } -// PathFilter: Path filters specify which paths to include in a report. A path -// is the result of combining DV360 events based on User ID to create a -// workflow of users' actions. When a path filter is set, the resulting report -// will only include paths that match the specified event at the specified -// position. All other paths will be excluded. -type PathFilter struct { - // EventFilters: Filter on an event to be applied to some part of the path. - EventFilters []*EventFilter `json:"eventFilters,omitempty"` - // PathMatchPosition: The position of the path the filter should match to - // (first, last, or any event in path). - // - // Possible values: - // "PATH_MATCH_POSITION_UNSPECIFIED" - Default value when path match position - // is not specified or is unknown in this version. - // "ANY" - Any position in the path. - // "FIRST" - The first position in the path. - // "LAST" - The last position in the path. - PathMatchPosition string `json:"pathMatchPosition,omitempty"` - // ForceSendFields is a list of field names (e.g. "EventFilters") 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. "EventFilters") 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 *PathFilter) MarshalJSON() ([]byte, error) { - type NoMethod PathFilter - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) -} - -// PathQueryOptions: Path Query Options for Report Options. -type PathQueryOptions struct { - // ChannelGrouping: Custom Channel Groupings. - ChannelGrouping *ChannelGrouping `json:"channelGrouping,omitempty"` - // PathFilters: Path Filters. There is a limit of 100 path filters that can be - // set per report. - PathFilters []*PathFilter `json:"pathFilters,omitempty"` - // ForceSendFields is a list of field names (e.g. "ChannelGrouping") 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. "ChannelGrouping") 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 *PathQueryOptions) MarshalJSON() ([]byte, error) { - type NoMethod PathQueryOptions - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) -} - -// PathQueryOptionsFilter: Dimension filter on path events. -type PathQueryOptionsFilter struct { - // Filter: Dimension the filter is applied to. - Filter string `json:"filter,omitempty"` - // Match: Match logic of the filter. - // - // Possible values: - // "UNKNOWN" - Default value when match is not specified or is unknown in - // this version. - // "EXACT" - Matches a value exactly. - // "PARTIAL" - Matches a value partially. - // "BEGINS_WITH" - Begins with a value. - // "WILDCARD_EXPRESSION" - Matches a value, utilizing wildcard character - // logic in the value. - Match string `json:"match,omitempty"` - // Values: Values to filter on. - Values []string `json:"values,omitempty"` - // ForceSendFields is a list of field names (e.g. "Filter") 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. "Filter") 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 *PathQueryOptionsFilter) MarshalJSON() ([]byte, error) { - type NoMethod PathQueryOptionsFilter - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) -} - // Query: Represents a query. type Query struct { // Metadata: Query metadata. @@ -839,34 +657,6 @@ func (s *ReportStatus) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } -// Rule: A Rule defines a name, and a boolean expression in [conjunctive normal -// form] (http://mathworld.wolfram.com/ConjunctiveNormalForm.html){.external} -// that can be applied to a path event to determine if that name should be -// applied. -type Rule struct { - // DisjunctiveMatchStatements: DisjunctiveMatchStatements within a Rule. - // DisjunctiveMatchStatement OR's all contained filters. - DisjunctiveMatchStatements []*DisjunctiveMatchStatement `json:"disjunctiveMatchStatements,omitempty"` - // Name: Rule name. - Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "DisjunctiveMatchStatements") - // 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. "DisjunctiveMatchStatements") 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 *Rule) MarshalJSON() ([]byte, error) { - type NoMethod Rule - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) -} - // RunQueryRequest: Request to run a stored query to generate a report. type RunQueryRequest struct { // DataRange: Report data range used to generate the report. If unspecified, diff --git a/firebaseappcheck/v1/firebaseappcheck-api.json b/firebaseappcheck/v1/firebaseappcheck-api.json index f12cf1750b5..d975c6aa48a 100644 --- a/firebaseappcheck/v1/firebaseappcheck-api.json +++ b/firebaseappcheck/v1/firebaseappcheck-api.json @@ -1343,7 +1343,7 @@ } } }, - "revision": "20240415", + "revision": "20240429", "rootUrl": "https://firebaseappcheck.googleapis.com/", "schemas": { "GoogleFirebaseAppcheckV1AppAttestConfig": { @@ -1511,6 +1511,12 @@ "token": { "description": "Required. Input only. Immutable. The secret token itself. Must be provided during creation, and must be a UUID4, case insensitive. This field is immutable once set, and cannot be provided during an UpdateDebugToken request. You can, however, delete this debug token using DeleteDebugToken to revoke it. For security reasons, this field will never be populated in any response.", "type": "string" + }, + "updateTime": { + "description": "Output only. Timestamp when this debug token was most recently updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" } }, "type": "object" diff --git a/firebaseappcheck/v1/firebaseappcheck-gen.go b/firebaseappcheck/v1/firebaseappcheck-gen.go index a822e56b301..a648d42d4e7 100644 --- a/firebaseappcheck/v1/firebaseappcheck-gen.go +++ b/firebaseappcheck/v1/firebaseappcheck-gen.go @@ -599,6 +599,9 @@ type GoogleFirebaseAppcheckV1DebugToken struct { // revoke it. For security reasons, this field will never be populated in any // response. Token string `json:"token,omitempty"` + // UpdateTime: Output only. Timestamp when this debug token was most recently + // updated. + UpdateTime string `json:"updateTime,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` diff --git a/firebaseappcheck/v1beta/firebaseappcheck-api.json b/firebaseappcheck/v1beta/firebaseappcheck-api.json index f782e9069a1..559d708b7bb 100644 --- a/firebaseappcheck/v1beta/firebaseappcheck-api.json +++ b/firebaseappcheck/v1beta/firebaseappcheck-api.json @@ -1823,7 +1823,7 @@ } } }, - "revision": "20240422", + "revision": "20240429", "rootUrl": "https://firebaseappcheck.googleapis.com/", "schemas": { "GoogleFirebaseAppcheckV1betaAppAttestConfig": { @@ -2061,6 +2061,12 @@ "token": { "description": "Required. Input only. Immutable. The secret token itself. Must be provided during creation, and must be a UUID4, case insensitive. This field is immutable once set, and cannot be provided during an UpdateDebugToken request. You can, however, delete this debug token using DeleteDebugToken to revoke it. For security reasons, this field will never be populated in any response.", "type": "string" + }, + "updateTime": { + "description": "Output only. Timestamp when this debug token was most recently updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" } }, "type": "object" diff --git a/firebaseappcheck/v1beta/firebaseappcheck-gen.go b/firebaseappcheck/v1beta/firebaseappcheck-gen.go index dd851088366..9aa9ac11517 100644 --- a/firebaseappcheck/v1beta/firebaseappcheck-gen.go +++ b/firebaseappcheck/v1beta/firebaseappcheck-gen.go @@ -752,6 +752,9 @@ type GoogleFirebaseAppcheckV1betaDebugToken struct { // revoke it. For security reasons, this field will never be populated in any // response. Token string `json:"token,omitempty"` + // UpdateTime: Output only. Timestamp when this debug token was most recently + // updated. + UpdateTime string `json:"updateTime,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` diff --git a/firebaseml/v2beta/firebaseml-api.json b/firebaseml/v2beta/firebaseml-api.json index 217e785ef85..755e9016ba6 100644 --- a/firebaseml/v2beta/firebaseml-api.json +++ b/firebaseml/v2beta/firebaseml-api.json @@ -206,7 +206,7 @@ } } }, - "revision": "20240425", + "revision": "20240429", "rootUrl": "https://firebaseml.googleapis.com/", "schemas": { "Blob": { @@ -1150,6 +1150,7 @@ "id": "VertexRagStore", "properties": { "ragCorpora": { + "deprecated": true, "description": "Optional. Deprecated. Please use rag_resources instead.", "items": { "type": "string" diff --git a/logging/v2/logging-api.json b/logging/v2/logging-api.json index a8c12c7af76..ea881c54e9a 100644 --- a/logging/v2/logging-api.json +++ b/logging/v2/logging-api.json @@ -2734,6 +2734,37 @@ "https://www.googleapis.com/auth/logging.read" ] }, + "getIamPolicy": { + "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + "flatPath": "v2/folders/{foldersId}/locations/{locationsId}/buckets/{bucketsId}/views/{viewsId}:getIamPolicy", + "httpMethod": "POST", + "id": "logging.folders.locations.buckets.views.getIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^folders/[^/]+/locations/[^/]+/buckets/[^/]+/views/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+resource}:getIamPolicy", + "request": { + "$ref": "GetIamPolicyRequest" + }, + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only", + "https://www.googleapis.com/auth/logging.admin", + "https://www.googleapis.com/auth/logging.read" + ] + }, "list": { "description": "Lists views on a log bucket.", "flatPath": "v2/folders/{foldersId}/locations/{locationsId}/buckets/{bucketsId}/views", @@ -2807,6 +2838,66 @@ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/logging.admin" ] + }, + "setIamPolicy": { + "description": "Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.", + "flatPath": "v2/folders/{foldersId}/locations/{locationsId}/buckets/{bucketsId}/views/{viewsId}:setIamPolicy", + "httpMethod": "POST", + "id": "logging.folders.locations.buckets.views.setIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^folders/[^/]+/locations/[^/]+/buckets/[^/]+/views/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+resource}:setIamPolicy", + "request": { + "$ref": "SetIamPolicyRequest" + }, + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/logging.admin" + ] + }, + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + "flatPath": "v2/folders/{foldersId}/locations/{locationsId}/buckets/{bucketsId}/views/{viewsId}:testIamPermissions", + "httpMethod": "POST", + "id": "logging.folders.locations.buckets.views.testIamPermissions", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^folders/[^/]+/locations/[^/]+/buckets/[^/]+/views/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+resource}:testIamPermissions", + "request": { + "$ref": "TestIamPermissionsRequest" + }, + "response": { + "$ref": "TestIamPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only", + "https://www.googleapis.com/auth/logging.admin", + "https://www.googleapis.com/auth/logging.read" + ] } }, "resources": { @@ -3985,6 +4076,37 @@ "https://www.googleapis.com/auth/logging.read" ] }, + "getIamPolicy": { + "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + "flatPath": "v2/{v2Id}/{v2Id1}/locations/{locationsId}/buckets/{bucketsId}/views/{viewsId}:getIamPolicy", + "httpMethod": "POST", + "id": "logging.locations.buckets.views.getIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^[^/]+/[^/]+/locations/[^/]+/buckets/[^/]+/views/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+resource}:getIamPolicy", + "request": { + "$ref": "GetIamPolicyRequest" + }, + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only", + "https://www.googleapis.com/auth/logging.admin", + "https://www.googleapis.com/auth/logging.read" + ] + }, "list": { "description": "Lists views on a log bucket.", "flatPath": "v2/{v2Id}/{v2Id1}/locations/{locationsId}/buckets/{bucketsId}/views", @@ -4058,6 +4180,66 @@ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/logging.admin" ] + }, + "setIamPolicy": { + "description": "Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.", + "flatPath": "v2/{v2Id}/{v2Id1}/locations/{locationsId}/buckets/{bucketsId}/views/{viewsId}:setIamPolicy", + "httpMethod": "POST", + "id": "logging.locations.buckets.views.setIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^[^/]+/[^/]+/locations/[^/]+/buckets/[^/]+/views/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+resource}:setIamPolicy", + "request": { + "$ref": "SetIamPolicyRequest" + }, + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/logging.admin" + ] + }, + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + "flatPath": "v2/{v2Id}/{v2Id1}/locations/{locationsId}/buckets/{bucketsId}/views/{viewsId}:testIamPermissions", + "httpMethod": "POST", + "id": "logging.locations.buckets.views.testIamPermissions", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^[^/]+/[^/]+/locations/[^/]+/buckets/[^/]+/views/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+resource}:testIamPermissions", + "request": { + "$ref": "TestIamPermissionsRequest" + }, + "response": { + "$ref": "TestIamPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only", + "https://www.googleapis.com/auth/logging.admin", + "https://www.googleapis.com/auth/logging.read" + ] } } } @@ -5131,6 +5313,37 @@ "https://www.googleapis.com/auth/logging.read" ] }, + "getIamPolicy": { + "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/buckets/{bucketsId}/views/{viewsId}:getIamPolicy", + "httpMethod": "POST", + "id": "logging.organizations.locations.buckets.views.getIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+/buckets/[^/]+/views/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+resource}:getIamPolicy", + "request": { + "$ref": "GetIamPolicyRequest" + }, + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only", + "https://www.googleapis.com/auth/logging.admin", + "https://www.googleapis.com/auth/logging.read" + ] + }, "list": { "description": "Lists views on a log bucket.", "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/buckets/{bucketsId}/views", @@ -5204,6 +5417,66 @@ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/logging.admin" ] + }, + "setIamPolicy": { + "description": "Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.", + "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/buckets/{bucketsId}/views/{viewsId}:setIamPolicy", + "httpMethod": "POST", + "id": "logging.organizations.locations.buckets.views.setIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+/buckets/[^/]+/views/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+resource}:setIamPolicy", + "request": { + "$ref": "SetIamPolicyRequest" + }, + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/logging.admin" + ] + }, + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + "flatPath": "v2/organizations/{organizationsId}/locations/{locationsId}/buckets/{bucketsId}/views/{viewsId}:testIamPermissions", + "httpMethod": "POST", + "id": "logging.organizations.locations.buckets.views.testIamPermissions", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+/buckets/[^/]+/views/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+resource}:testIamPermissions", + "request": { + "$ref": "TestIamPermissionsRequest" + }, + "response": { + "$ref": "TestIamPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only", + "https://www.googleapis.com/auth/logging.admin", + "https://www.googleapis.com/auth/logging.read" + ] } }, "resources": { @@ -6603,6 +6876,37 @@ "https://www.googleapis.com/auth/logging.read" ] }, + "getIamPolicy": { + "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/buckets/{bucketsId}/views/{viewsId}:getIamPolicy", + "httpMethod": "POST", + "id": "logging.projects.locations.buckets.views.getIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/buckets/[^/]+/views/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+resource}:getIamPolicy", + "request": { + "$ref": "GetIamPolicyRequest" + }, + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only", + "https://www.googleapis.com/auth/logging.admin", + "https://www.googleapis.com/auth/logging.read" + ] + }, "list": { "description": "Lists views on a log bucket.", "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/buckets/{bucketsId}/views", @@ -6676,6 +6980,66 @@ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/logging.admin" ] + }, + "setIamPolicy": { + "description": "Sets the access control policy on the specified resource. Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.", + "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/buckets/{bucketsId}/views/{viewsId}:setIamPolicy", + "httpMethod": "POST", + "id": "logging.projects.locations.buckets.views.setIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/buckets/[^/]+/views/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+resource}:setIamPolicy", + "request": { + "$ref": "SetIamPolicyRequest" + }, + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/logging.admin" + ] + }, + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/buckets/{bucketsId}/views/{viewsId}:testIamPermissions", + "httpMethod": "POST", + "id": "logging.projects.locations.buckets.views.testIamPermissions", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/buckets/[^/]+/views/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+resource}:testIamPermissions", + "request": { + "$ref": "TestIamPermissionsRequest" + }, + "response": { + "$ref": "TestIamPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/cloud-platform.read-only", + "https://www.googleapis.com/auth/logging.admin", + "https://www.googleapis.com/auth/logging.read" + ] } }, "resources": { @@ -7768,9 +8132,57 @@ } } }, - "revision": "20240412", + "revision": "20240419", "rootUrl": "https://logging.googleapis.com/", "schemas": { + "AuditConfig": { + "description": "Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs.If there are AuditConfigs for both allServices and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted.Example Policy with multiple AuditConfigs: { \"audit_configs\": [ { \"service\": \"allServices\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\" }, { \"log_type\": \"ADMIN_READ\" } ] }, { \"service\": \"sampleservice.googleapis.com\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\" }, { \"log_type\": \"DATA_WRITE\", \"exempted_members\": [ \"user:aliya@example.com\" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts jose@example.com from DATA_READ logging, and aliya@example.com from DATA_WRITE logging.", + "id": "AuditConfig", + "properties": { + "auditLogConfigs": { + "description": "The configuration for logging of each type of permission.", + "items": { + "$ref": "AuditLogConfig" + }, + "type": "array" + }, + "service": { + "description": "Specifies a service that will be enabled for audit logging. For example, storage.googleapis.com, cloudsql.googleapis.com. allServices is a special value that covers all services.", + "type": "string" + } + }, + "type": "object" + }, + "AuditLogConfig": { + "description": "Provides the configuration for logging a type of permissions. Example: { \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ logging.", + "id": "AuditLogConfig", + "properties": { + "exemptedMembers": { + "description": "Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.", + "items": { + "type": "string" + }, + "type": "array" + }, + "logType": { + "description": "The log type that this config enables.", + "enum": [ + "LOG_TYPE_UNSPECIFIED", + "ADMIN_READ", + "DATA_WRITE", + "DATA_READ" + ], + "enumDescriptions": [ + "Default case. Should never be this.", + "Admin reads. Example: CloudIAM getIamPolicy", + "Data writes. Example: CloudSQL Users create", + "Data reads. Example: CloudSQL Users list" + ], + "type": "string" + } + }, + "type": "object" + }, "BigQueryDataset": { "description": "Describes a BigQuery dataset that was created by a link.", "id": "BigQueryDataset", @@ -7799,6 +8211,28 @@ }, "type": "object" }, + "Binding": { + "description": "Associates members, or principals, with a role.", + "id": "Binding", + "properties": { + "condition": { + "$ref": "Expr", + "description": "The condition that is associated with this binding.If the condition evaluates to true, then this binding applies to the current request.If the condition evaluates to false, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies)." + }, + "members": { + "description": "Specifies the principals requesting access for a Google Cloud resource. members can have the following values: allUsers: A special identifier that represents anyone who is on the internet; with or without a Google account. allAuthenticatedUsers: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. user:{emailid}: An email address that represents a specific Google account. For example, alice@example.com . serviceAccount:{emailid}: An email address that represents a Google service account. For example, my-other-app@appspot.gserviceaccount.com. serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]: An identifier for a Kubernetes service account (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, my-project.svc.id.goog[my-namespace/my-kubernetes-sa]. group:{emailid}: An email address that represents a Google group. For example, admins@example.com. domain:{domain}: The G Suite domain (primary) that represents all the users of that domain. For example, google.com or example.com. principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}: A single identity in a workforce identity pool. principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}: All workforce identities in a group. principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}: All workforce identities with a specific attribute value. principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*: All identities in a workforce identity pool. principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}: A single identity in a workload identity pool. principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}: A workload identity pool group. principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}: All identities in a workload identity pool with a certain attribute. principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*: All identities in a workload identity pool. deleted:user:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a user that has been recently deleted. For example, alice@example.com?uid=123456789012345678901. If the user is recovered, this value reverts to user:{emailid} and the recovered user retains the role in the binding. deleted:serviceAccount:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901. If the service account is undeleted, this value reverts to serviceAccount:{emailid} and the undeleted service account retains the role in the binding. deleted:group:{emailid}?uid={uniqueid}: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, admins@example.com?uid=123456789012345678901. If the group is recovered, this value reverts to group:{emailid} and the recovered group retains the role in the binding. deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}: Deleted single identity in a workforce identity pool. For example, deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value.", + "items": { + "type": "string" + }, + "type": "array" + }, + "role": { + "description": "Role that is assigned to the list of members, or principals. For example, roles/viewer, roles/editor, or roles/owner.For an overview of the IAM roles and permissions, see the IAM documentation (https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see here (https://cloud.google.com/iam/docs/understanding-roles).", + "type": "string" + } + }, + "type": "object" + }, "BucketMetadata": { "description": "Metadata for LongRunningUpdateBucket Operations.", "id": "BucketMetadata", @@ -8127,6 +8561,52 @@ }, "type": "object" }, + "Expr": { + "description": "Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec.Example (Comparison): title: \"Summary size limit\" description: \"Determines if a summary is less than 100 chars\" expression: \"document.summary.size() \u003c 100\" Example (Equality): title: \"Requestor is owner\" description: \"Determines if requestor is the document owner\" expression: \"document.owner == request.auth.claims.email\" Example (Logic): title: \"Public documents\" description: \"Determine whether the document should be publicly visible\" expression: \"document.type != 'private' \u0026\u0026 document.type != 'internal'\" Example (Data Manipulation): title: \"Notification string\" description: \"Create a notification string with a timestamp.\" expression: \"'New message received at ' + string(document.create_time)\" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.", + "id": "Expr", + "properties": { + "description": { + "description": "Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.", + "type": "string" + }, + "expression": { + "description": "Textual representation of an expression in Common Expression Language syntax.", + "type": "string" + }, + "location": { + "description": "Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.", + "type": "string" + }, + "title": { + "description": "Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.", + "type": "string" + } + }, + "type": "object" + }, + "GetIamPolicyRequest": { + "description": "Request message for GetIamPolicy method.", + "id": "GetIamPolicyRequest", + "properties": { + "options": { + "$ref": "GetPolicyOptions", + "description": "OPTIONAL: A GetPolicyOptions object for specifying options to GetIamPolicy." + } + }, + "type": "object" + }, + "GetPolicyOptions": { + "description": "Encapsulates settings provided to GetIamPolicy.", + "id": "GetPolicyOptions", + "properties": { + "requestedPolicyVersion": { + "description": "Optional. The maximum policy version that will be used to format the policy.Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected.Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset.The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "HttpRequest": { "description": "A common proto for logging HTTP requests. Only contains semantics defined by the HTTP specification. Product-specific logging information MUST be defined in a separate message.", "id": "HttpRequest", @@ -9576,6 +10056,37 @@ }, "type": "object" }, + "Policy": { + "description": "An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources.A Policy is a collection of bindings. A binding binds one or more members, or principals, to a single role. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A role is a named list of permissions; each role can be an IAM predefined role or a user-created custom role.For some types of Google Cloud resources, a binding can also specify a condition, which is a logical expression that allows access to a resource only if the expression evaluates to true. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).JSON example: { \"bindings\": [ { \"role\": \"roles/resourcemanager.organizationAdmin\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-project-id@appspot.gserviceaccount.com\" ] }, { \"role\": \"roles/resourcemanager.organizationViewer\", \"members\": [ \"user:eve@example.com\" ], \"condition\": { \"title\": \"expirable access\", \"description\": \"Does not grant access after Sep 2020\", \"expression\": \"request.time \u003c timestamp('2020-10-01T00:00:00.000Z')\", } } ], \"etag\": \"BwWWja0YfJA=\", \"version\": 3 } YAML example: bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time \u003c timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the IAM documentation (https://cloud.google.com/iam/docs/).", + "id": "Policy", + "properties": { + "auditConfigs": { + "description": "Specifies cloud audit logging configuration for this policy.", + "items": { + "$ref": "AuditConfig" + }, + "type": "array" + }, + "bindings": { + "description": "Associates a list of members, or principals, with a role. Optionally, may specify a condition that determines how and when the bindings are applied. Each of the bindings must contain at least one principal.The bindings in a Policy can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the bindings grant 50 different roles to user:alice@example.com, and not to any other principal, then you can add another 1,450 principals to the bindings in the Policy.", + "items": { + "$ref": "Binding" + }, + "type": "array" + }, + "etag": { + "description": "etag is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the etag in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An etag is returned in the response to getIamPolicy, and systems are expected to put that etag in the request to setIamPolicy to ensure that their change will be applied to the same version of the policy.Important: If you use IAM Conditions, you must include the etag field whenever you call setIamPolicy. If you omit this field, then IAM allows you to overwrite a version 3 policy with a version 1 policy, and all of the conditions in the version 3 policy are lost.", + "format": "byte", + "type": "string" + }, + "version": { + "description": "Specifies the format of the policy.Valid values are 0, 1, and 3. Requests that specify an invalid value are rejected.Any operation that affects conditional role bindings must specify version 3. This requirement applies to the following operations: Getting a policy that includes a conditional role binding Adding a conditional role binding to a policy Changing a conditional role binding in a policy Removing any role binding, with or without a condition, from a policy that includes conditionsImportant: If you use IAM Conditions, you must include the etag field whenever you call setIamPolicy. If you omit this field, then IAM allows you to overwrite a version 3 policy with a version 1 policy, and all of the conditions in the version 3 policy are lost.If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset.To learn which resources support conditions in their IAM policies, see the IAM documentation (https://cloud.google.com/iam/help/conditions/resource-policies).", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "RecentQuery": { "description": "Describes a recent query executed on the Logs Explorer or Log Analytics page within the last ~ 30 days.", "id": "RecentQuery", @@ -9814,6 +10325,22 @@ }, "type": "object" }, + "SetIamPolicyRequest": { + "description": "Request message for SetIamPolicy method.", + "id": "SetIamPolicyRequest", + "properties": { + "policy": { + "$ref": "Policy", + "description": "REQUIRED: The complete policy to be applied to the resource. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud services (such as Projects) might reject them." + }, + "updateMask": { + "description": "OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only the fields in the mask will be modified. If no mask is provided, the following default mask is used:paths: \"bindings, etag\"", + "format": "google-fieldmask", + "type": "string" + } + }, + "type": "object" + }, "Settings": { "description": "Describes the settings associated with a project, folder, organization, or billing account.", "id": "Settings", @@ -9995,6 +10522,34 @@ }, "type": "object" }, + "TestIamPermissionsRequest": { + "description": "Request message for TestIamPermissions method.", + "id": "TestIamPermissionsRequest", + "properties": { + "permissions": { + "description": "The set of permissions to check for the resource. Permissions with wildcards (such as * or storage.*) are not allowed. For more information see IAM Overview (https://cloud.google.com/iam/docs/overview#permissions).", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "TestIamPermissionsResponse": { + "description": "Response message for TestIamPermissions method.", + "id": "TestIamPermissionsResponse", + "properties": { + "permissions": { + "description": "A subset of TestPermissionsRequest.permissions that the caller is allowed.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "UndeleteBucketRequest": { "description": "The parameters to UndeleteBucket.", "id": "UndeleteBucketRequest", diff --git a/logging/v2/logging-gen.go b/logging/v2/logging-gen.go index 914d5e491f0..33758413db1 100644 --- a/logging/v2/logging-gen.go +++ b/logging/v2/logging-gen.go @@ -896,6 +896,82 @@ type V2Service struct { s *Service } +// AuditConfig: Specifies the audit configuration for a service. The +// configuration determines which permission types are logged, and what +// identities, if any, are exempted from logging. An AuditConfig must have one +// or more AuditLogConfigs.If there are AuditConfigs for both allServices and a +// specific service, the union of the two AuditConfigs is used for that +// service: the log_types specified in each AuditConfig are enabled, and the +// exempted_members in each AuditLogConfig are exempted.Example Policy with +// multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", +// "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ +// "user:jose@example.com" ] }, { "log_type": "DATA_WRITE" }, { "log_type": +// "ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com", +// "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type": +// "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] } ] } ] } For +// sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ +// logging. It also exempts jose@example.com from DATA_READ logging, and +// aliya@example.com from DATA_WRITE logging. +type AuditConfig struct { + // AuditLogConfigs: The configuration for logging of each type of permission. + AuditLogConfigs []*AuditLogConfig `json:"auditLogConfigs,omitempty"` + // Service: Specifies a service that will be enabled for audit logging. For + // example, storage.googleapis.com, cloudsql.googleapis.com. allServices is a + // special value that covers all services. + Service string `json:"service,omitempty"` + // ForceSendFields is a list of field names (e.g. "AuditLogConfigs") 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. "AuditLogConfigs") 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 *AuditConfig) MarshalJSON() ([]byte, error) { + type NoMethod AuditConfig + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// AuditLogConfig: Provides the configuration for logging a type of +// permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", +// "exempted_members": [ "user:jose@example.com" ] }, { "log_type": +// "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while +// exempting jose@example.com from DATA_READ logging. +type AuditLogConfig struct { + // ExemptedMembers: Specifies the identities that do not cause logging for this + // type of permission. Follows the same format of Binding.members. + ExemptedMembers []string `json:"exemptedMembers,omitempty"` + // LogType: The log type that this config enables. + // + // Possible values: + // "LOG_TYPE_UNSPECIFIED" - Default case. Should never be this. + // "ADMIN_READ" - Admin reads. Example: CloudIAM getIamPolicy + // "DATA_WRITE" - Data writes. Example: CloudSQL Users create + // "DATA_READ" - Data reads. Example: CloudSQL Users list + LogType string `json:"logType,omitempty"` + // ForceSendFields is a list of field names (e.g. "ExemptedMembers") 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. "ExemptedMembers") 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 *AuditLogConfig) MarshalJSON() ([]byte, error) { + type NoMethod AuditLogConfig + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // BigQueryDataset: Describes a BigQuery dataset that was created by a link. type BigQueryDataset struct { // DatasetId: Output only. The full resource name of the BigQuery dataset. The @@ -958,6 +1034,102 @@ func (s *BigQueryOptions) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// Binding: Associates members, or principals, with a role. +type Binding struct { + // Condition: The condition that is associated with this binding.If the + // condition evaluates to true, then this binding applies to the current + // request.If the condition evaluates to false, then this binding does not + // apply to the current request. However, a different role binding might grant + // the same role to one or more of the principals in this binding.To learn + // which resources support conditions in their IAM policies, see the IAM + // documentation + // (https://cloud.google.com/iam/help/conditions/resource-policies). + Condition *Expr `json:"condition,omitempty"` + // Members: Specifies the principals requesting access for a Google Cloud + // resource. members can have the following values: allUsers: A special + // identifier that represents anyone who is on the internet; with or without a + // Google account. allAuthenticatedUsers: A special identifier that represents + // anyone who is authenticated with a Google account or a service account. Does + // not include identities that come from external identity providers (IdPs) + // through identity federation. user:{emailid}: An email address that + // represents a specific Google account. For example, alice@example.com . + // serviceAccount:{emailid}: An email address that represents a Google service + // account. For example, my-other-app@appspot.gserviceaccount.com. + // serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]: An + // identifier for a Kubernetes service account + // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). + // For example, my-project.svc.id.goog[my-namespace/my-kubernetes-sa]. + // group:{emailid}: An email address that represents a Google group. For + // example, admins@example.com. domain:{domain}: The G Suite domain (primary) + // that represents all the users of that domain. For example, google.com or + // example.com. + // principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subj + // ect/{subject_attribute_value}: A single identity in a workforce identity + // pool. + // principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/g + // roup/{group_id}: All workforce identities in a group. + // principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/a + // ttribute.{attribute_name}/{attribute_value}: All workforce identities with a + // specific attribute value. + // principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/* + // : All identities in a workforce identity pool. + // principal://iam.googleapis.com/projects/{project_number}/locations/global/wor + // kloadIdentityPools/{pool_id}/subject/{subject_attribute_value}: A single + // identity in a workload identity pool. + // principalSet://iam.googleapis.com/projects/{project_number}/locations/global/ + // workloadIdentityPools/{pool_id}/group/{group_id}: A workload identity pool + // group. + // principalSet://iam.googleapis.com/projects/{project_number}/locations/global/ + // workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}: + // All identities in a workload identity pool with a certain attribute. + // principalSet://iam.googleapis.com/projects/{project_number}/locations/global/ + // workloadIdentityPools/{pool_id}/*: All identities in a workload identity + // pool. deleted:user:{emailid}?uid={uniqueid}: An email address (plus unique + // identifier) representing a user that has been recently deleted. For example, + // alice@example.com?uid=123456789012345678901. If the user is recovered, this + // value reverts to user:{emailid} and the recovered user retains the role in + // the binding. deleted:serviceAccount:{emailid}?uid={uniqueid}: An email + // address (plus unique identifier) representing a service account that has + // been recently deleted. For example, + // my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901. If the + // service account is undeleted, this value reverts to serviceAccount:{emailid} + // and the undeleted service account retains the role in the binding. + // deleted:group:{emailid}?uid={uniqueid}: An email address (plus unique + // identifier) representing a Google group that has been recently deleted. For + // example, admins@example.com?uid=123456789012345678901. If the group is + // recovered, this value reverts to group:{emailid} and the recovered group + // retains the role in the binding. + // deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_ + // id}/subject/{subject_attribute_value}: Deleted single identity in a + // workforce identity pool. For example, + // deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-poo + // l-id/subject/my-subject-attribute-value. + Members []string `json:"members,omitempty"` + // Role: Role that is assigned to the list of members, or principals. For + // example, roles/viewer, roles/editor, or roles/owner.For an overview of the + // IAM roles and permissions, see the IAM documentation + // (https://cloud.google.com/iam/docs/roles-overview). For a list of the + // available pre-defined roles, see here + // (https://cloud.google.com/iam/docs/understanding-roles). + Role string `json:"role,omitempty"` + // ForceSendFields is a list of field names (e.g. "Condition") 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. "Condition") 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 *Binding) MarshalJSON() ([]byte, error) { + type NoMethod Binding + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // BucketMetadata: Metadata for LongRunningUpdateBucket Operations. type BucketMetadata struct { // CreateBucketRequest: LongRunningCreateBucket RPC request. @@ -1464,6 +1636,109 @@ func (s *Exponential) UnmarshalJSON(data []byte) error { return nil } +// Expr: Represents a textual expression in the Common Expression Language +// (CEL) syntax. CEL is a C-like expression language. The syntax and semantics +// of CEL are documented at https://github.com/google/cel-spec.Example +// (Comparison): title: "Summary size limit" description: "Determines if a +// summary is less than 100 chars" expression: "document.summary.size() < 100" +// Example (Equality): title: "Requestor is owner" description: "Determines if +// requestor is the document owner" expression: "document.owner == +// request.auth.claims.email" Example (Logic): title: "Public documents" +// description: "Determine whether the document should be publicly visible" +// expression: "document.type != 'private' && document.type != 'internal'" +// Example (Data Manipulation): title: "Notification string" description: +// "Create a notification string with a timestamp." expression: "'New message +// received at ' + string(document.create_time)" The exact variables and +// functions that may be referenced within an expression are determined by the +// service that evaluates it. See the service documentation for additional +// information. +type Expr struct { + // Description: Optional. Description of the expression. This is a longer text + // which describes the expression, e.g. when hovered over it in a UI. + Description string `json:"description,omitempty"` + // Expression: Textual representation of an expression in Common Expression + // Language syntax. + Expression string `json:"expression,omitempty"` + // Location: Optional. String indicating the location of the expression for + // error reporting, e.g. a file name and a position in the file. + Location string `json:"location,omitempty"` + // Title: Optional. Title for the expression, i.e. a short string describing + // its purpose. This can be used e.g. in UIs which allow to enter the + // expression. + Title string `json:"title,omitempty"` + // ForceSendFields is a list of field names (e.g. "Description") 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. "Description") 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 *Expr) MarshalJSON() ([]byte, error) { + type NoMethod Expr + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// GetIamPolicyRequest: Request message for GetIamPolicy method. +type GetIamPolicyRequest struct { + // Options: OPTIONAL: A GetPolicyOptions object for specifying options to + // GetIamPolicy. + Options *GetPolicyOptions `json:"options,omitempty"` + // ForceSendFields is a list of field names (e.g. "Options") 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. "Options") 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 *GetIamPolicyRequest) MarshalJSON() ([]byte, error) { + type NoMethod GetIamPolicyRequest + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// GetPolicyOptions: Encapsulates settings provided to GetIamPolicy. +type GetPolicyOptions struct { + // RequestedPolicyVersion: Optional. The maximum policy version that will be + // used to format the policy.Valid values are 0, 1, and 3. Requests specifying + // an invalid value will be rejected.Requests for policies with any conditional + // role bindings must specify version 3. Policies with no conditional role + // bindings may specify any valid value or leave the field unset.The policy in + // the response might use the policy version that you specified, or it might + // use a lower policy version. For example, if you specify version 3, but the + // policy has no conditional role bindings, the response uses version 1.To + // learn which resources support conditions in their IAM policies, see the IAM + // documentation + // (https://cloud.google.com/iam/help/conditions/resource-policies). + RequestedPolicyVersion int64 `json:"requestedPolicyVersion,omitempty"` + // ForceSendFields is a list of field names (e.g. "RequestedPolicyVersion") 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. "RequestedPolicyVersion") 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 *GetPolicyOptions) MarshalJSON() ([]byte, error) { + type NoMethod GetPolicyOptions + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // HttpRequest: A common proto for logging HTTP requests. Only contains // semantics defined by the HTTP specification. Product-specific logging // information MUST be defined in a separate message. @@ -3509,6 +3784,96 @@ func (s *OpsAnalyticsQuery) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// Policy: An Identity and Access Management (IAM) policy, which specifies +// access controls for Google Cloud resources.A Policy is a collection of +// bindings. A binding binds one or more members, or principals, to a single +// role. Principals can be user accounts, service accounts, Google groups, and +// domains (such as G Suite). A role is a named list of permissions; each role +// can be an IAM predefined role or a user-created custom role.For some types +// of Google Cloud resources, a binding can also specify a condition, which is +// a logical expression that allows access to a resource only if the expression +// evaluates to true. A condition can add constraints based on attributes of +// the request, the resource, or both. To learn which resources support +// conditions in their IAM policies, see the IAM documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies).JSON +// example: { "bindings": [ { "role": +// "roles/resourcemanager.organizationAdmin", "members": [ +// "user:mike@example.com", "group:admins@example.com", "domain:google.com", +// "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": +// "roles/resourcemanager.organizationViewer", "members": [ +// "user:eve@example.com" ], "condition": { "title": "expirable access", +// "description": "Does not grant access after Sep 2020", "expression": +// "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": +// "BwWWja0YfJA=", "version": 3 } YAML example: bindings: - members: - +// user:mike@example.com - group:admins@example.com - domain:google.com - +// serviceAccount:my-project-id@appspot.gserviceaccount.com role: +// roles/resourcemanager.organizationAdmin - members: - user:eve@example.com +// role: roles/resourcemanager.organizationViewer condition: title: expirable +// access description: Does not grant access after Sep 2020 expression: +// request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= +// version: 3 For a description of IAM and its features, see the IAM +// documentation (https://cloud.google.com/iam/docs/). +type Policy struct { + // AuditConfigs: Specifies cloud audit logging configuration for this policy. + AuditConfigs []*AuditConfig `json:"auditConfigs,omitempty"` + // Bindings: Associates a list of members, or principals, with a role. + // Optionally, may specify a condition that determines how and when the + // bindings are applied. Each of the bindings must contain at least one + // principal.The bindings in a Policy can refer to up to 1,500 principals; up + // to 250 of these principals can be Google groups. Each occurrence of a + // principal counts towards these limits. For example, if the bindings grant 50 + // different roles to user:alice@example.com, and not to any other principal, + // then you can add another 1,450 principals to the bindings in the Policy. + Bindings []*Binding `json:"bindings,omitempty"` + // Etag: etag is used for optimistic concurrency control as a way to help + // prevent simultaneous updates of a policy from overwriting each other. It is + // strongly suggested that systems make use of the etag in the + // read-modify-write cycle to perform policy updates in order to avoid race + // conditions: An etag is returned in the response to getIamPolicy, and systems + // are expected to put that etag in the request to setIamPolicy to ensure that + // their change will be applied to the same version of the policy.Important: If + // you use IAM Conditions, you must include the etag field whenever you call + // setIamPolicy. If you omit this field, then IAM allows you to overwrite a + // version 3 policy with a version 1 policy, and all of the conditions in the + // version 3 policy are lost. + Etag string `json:"etag,omitempty"` + // Version: Specifies the format of the policy.Valid values are 0, 1, and 3. + // Requests that specify an invalid value are rejected.Any operation that + // affects conditional role bindings must specify version 3. This requirement + // applies to the following operations: Getting a policy that includes a + // conditional role binding Adding a conditional role binding to a policy + // Changing a conditional role binding in a policy Removing any role binding, + // with or without a condition, from a policy that includes + // conditionsImportant: If you use IAM Conditions, you must include the etag + // field whenever you call setIamPolicy. If you omit this field, then IAM + // allows you to overwrite a version 3 policy with a version 1 policy, and all + // of the conditions in the version 3 policy are lost.If a policy does not + // include any conditions, operations on that policy may specify any valid + // version or leave the field unset.To learn which resources support conditions + // in their IAM policies, see the IAM documentation + // (https://cloud.google.com/iam/help/conditions/resource-policies). + Version int64 `json:"version,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "AuditConfigs") 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. "AuditConfigs") 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 *Policy) MarshalJSON() ([]byte, error) { + type NoMethod Policy + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // RecentQuery: Describes a recent query executed on the Logs Explorer or Log // Analytics page within the last ~ 30 days. type RecentQuery struct { @@ -3717,6 +4082,35 @@ func (s *SavedQuery) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// SetIamPolicyRequest: Request message for SetIamPolicy method. +type SetIamPolicyRequest struct { + // Policy: REQUIRED: The complete policy to be applied to the resource. The + // size of the policy is limited to a few 10s of KB. An empty policy is a valid + // policy but certain Google Cloud services (such as Projects) might reject + // them. + Policy *Policy `json:"policy,omitempty"` + // UpdateMask: OPTIONAL: A FieldMask specifying which fields of the policy to + // modify. Only the fields in the mask will be modified. If no mask is + // provided, the following default mask is used:paths: "bindings, etag" + UpdateMask string `json:"updateMask,omitempty"` + // ForceSendFields is a list of field names (e.g. "Policy") 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. "Policy") 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 *SetIamPolicyRequest) MarshalJSON() ([]byte, error) { + type NoMethod SetIamPolicyRequest + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // Settings: Describes the settings associated with a project, folder, // organization, or billing account. type Settings struct { @@ -4013,6 +4407,57 @@ func (s *TailLogEntriesResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// TestIamPermissionsRequest: Request message for TestIamPermissions method. +type TestIamPermissionsRequest struct { + // Permissions: The set of permissions to check for the resource. Permissions + // with wildcards (such as * or storage.*) are not allowed. For more + // information see IAM Overview + // (https://cloud.google.com/iam/docs/overview#permissions). + Permissions []string `json:"permissions,omitempty"` + // ForceSendFields is a list of field names (e.g. "Permissions") 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. "Permissions") 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 *TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { + type NoMethod TestIamPermissionsRequest + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// TestIamPermissionsResponse: Response message for TestIamPermissions method. +type TestIamPermissionsResponse struct { + // Permissions: A subset of TestPermissionsRequest.permissions that the caller + // is allowed. + Permissions []string `json:"permissions,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Permissions") 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. "Permissions") 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 *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod TestIamPermissionsResponse + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // UndeleteBucketRequest: The parameters to UndeleteBucket. type UndeleteBucketRequest struct { } @@ -13349,6 +13794,110 @@ func (c *FoldersLocationsBucketsViewsGetCall) Do(opts ...googleapi.CallOption) ( return ret, nil } +type FoldersLocationsBucketsViewsGetIamPolicyCall struct { + s *Service + resource string + getiampolicyrequest *GetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// GetIamPolicy: Gets the access control policy for a resource. Returns an +// empty policy if the resource exists and does not have a policy set. +// +// - resource: REQUIRED: The resource for which the policy is being requested. +// See Resource names (https://cloud.google.com/apis/design/resource_names) +// for the appropriate value for this field. +func (r *FoldersLocationsBucketsViewsService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *FoldersLocationsBucketsViewsGetIamPolicyCall { + c := &FoldersLocationsBucketsViewsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.getiampolicyrequest = getiampolicyrequest + 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 *FoldersLocationsBucketsViewsGetIamPolicyCall) Fields(s ...googleapi.Field) *FoldersLocationsBucketsViewsGetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *FoldersLocationsBucketsViewsGetIamPolicyCall) Context(ctx context.Context) *FoldersLocationsBucketsViewsGetIamPolicyCall { + 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 *FoldersLocationsBucketsViewsGetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *FoldersLocationsBucketsViewsGetIamPolicyCall) 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.getiampolicyrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+resource}:getIamPolicy") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "logging.folders.locations.buckets.views.getIamPolicy" call. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.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 *FoldersLocationsBucketsViewsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, 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 := &Policy{ + 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 FoldersLocationsBucketsViewsListCall struct { s *Service parent string @@ -13617,37 +14166,251 @@ func (c *FoldersLocationsBucketsViewsPatchCall) Do(opts ...googleapi.CallOption) return ret, nil } -type FoldersLocationsBucketsViewsLogsListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type FoldersLocationsBucketsViewsSetIamPolicyCall struct { + s *Service + resource string + setiampolicyrequest *SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists the logs in projects, organizations, folders, or billing -// accounts. Only logs that have entries are listed. +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and +// PERMISSION_DENIED errors. // -// - parent: The resource name to list logs for: projects/[PROJECT_ID] -// organizations/[ORGANIZATION_ID] billingAccounts/[BILLING_ACCOUNT_ID] -// folders/[FOLDER_ID]. -func (r *FoldersLocationsBucketsViewsLogsService) List(parent string) *FoldersLocationsBucketsViewsLogsListCall { - c := &FoldersLocationsBucketsViewsLogsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent +// - resource: REQUIRED: The resource for which the policy is being specified. +// See Resource names (https://cloud.google.com/apis/design/resource_names) +// for the appropriate value for this field. +func (r *FoldersLocationsBucketsViewsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *FoldersLocationsBucketsViewsSetIamPolicyCall { + c := &FoldersLocationsBucketsViewsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.setiampolicyrequest = setiampolicyrequest return c } -// PageSize sets the optional parameter "pageSize": The maximum number of -// results to return from this request. Non-positive values are ignored. The -// presence of nextPageToken in the response indicates that more results might -// be available. -func (c *FoldersLocationsBucketsViewsLogsListCall) PageSize(pageSize int64) *FoldersLocationsBucketsViewsLogsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *FoldersLocationsBucketsViewsSetIamPolicyCall) Fields(s ...googleapi.Field) *FoldersLocationsBucketsViewsSetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// PageToken sets the optional parameter "pageToken": If present, then retrieve +// Context sets the context to be used in this call's Do method. +func (c *FoldersLocationsBucketsViewsSetIamPolicyCall) Context(ctx context.Context) *FoldersLocationsBucketsViewsSetIamPolicyCall { + 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 *FoldersLocationsBucketsViewsSetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *FoldersLocationsBucketsViewsSetIamPolicyCall) 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.setiampolicyrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+resource}:setIamPolicy") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "logging.folders.locations.buckets.views.setIamPolicy" call. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.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 *FoldersLocationsBucketsViewsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, 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 := &Policy{ + 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 FoldersLocationsBucketsViewsTestIamPermissionsCall struct { + s *Service + resource string + testiampermissionsrequest *TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. If the resource does not exist, this will return an empty set of +// permissions, not a NOT_FOUND error.Note: This operation is designed to be +// used for building permission-aware UIs and command-line tools, not for +// authorization checking. This operation may "fail open" without warning. +// +// - resource: REQUIRED: The resource for which the policy detail is being +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the appropriate +// value for this field. +func (r *FoldersLocationsBucketsViewsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *FoldersLocationsBucketsViewsTestIamPermissionsCall { + c := &FoldersLocationsBucketsViewsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.testiampermissionsrequest = testiampermissionsrequest + 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 *FoldersLocationsBucketsViewsTestIamPermissionsCall) Fields(s ...googleapi.Field) *FoldersLocationsBucketsViewsTestIamPermissionsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *FoldersLocationsBucketsViewsTestIamPermissionsCall) Context(ctx context.Context) *FoldersLocationsBucketsViewsTestIamPermissionsCall { + 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 *FoldersLocationsBucketsViewsTestIamPermissionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *FoldersLocationsBucketsViewsTestIamPermissionsCall) 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.testiampermissionsrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+resource}:testIamPermissions") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "logging.folders.locations.buckets.views.testIamPermissions" call. +// Any non-2xx status code is an error. Response headers are in either +// *TestIamPermissionsResponse.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 *FoldersLocationsBucketsViewsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, 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 := &TestIamPermissionsResponse{ + 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 FoldersLocationsBucketsViewsLogsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists the logs in projects, organizations, folders, or billing +// accounts. Only logs that have entries are listed. +// +// - parent: The resource name to list logs for: projects/[PROJECT_ID] +// organizations/[ORGANIZATION_ID] billingAccounts/[BILLING_ACCOUNT_ID] +// folders/[FOLDER_ID]. +func (r *FoldersLocationsBucketsViewsLogsService) List(parent string) *FoldersLocationsBucketsViewsLogsListCall { + c := &FoldersLocationsBucketsViewsLogsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of +// results to return from this request. Non-positive values are ignored. The +// presence of nextPageToken in the response indicates that more results might +// be available. +func (c *FoldersLocationsBucketsViewsLogsListCall) PageSize(pageSize int64) *FoldersLocationsBucketsViewsLogsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": If present, then retrieve // the next batch of results from the preceding call to this method. pageToken // must be the value of nextPageToken from the previous response. The values of // other method parameters should be identical to those in the previous call. @@ -17786,6 +18549,110 @@ func (c *LocationsBucketsViewsGetCall) Do(opts ...googleapi.CallOption) (*LogVie return ret, nil } +type LocationsBucketsViewsGetIamPolicyCall struct { + s *Service + resource string + getiampolicyrequest *GetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// GetIamPolicy: Gets the access control policy for a resource. Returns an +// empty policy if the resource exists and does not have a policy set. +// +// - resource: REQUIRED: The resource for which the policy is being requested. +// See Resource names (https://cloud.google.com/apis/design/resource_names) +// for the appropriate value for this field. +func (r *LocationsBucketsViewsService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *LocationsBucketsViewsGetIamPolicyCall { + c := &LocationsBucketsViewsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.getiampolicyrequest = getiampolicyrequest + 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 *LocationsBucketsViewsGetIamPolicyCall) Fields(s ...googleapi.Field) *LocationsBucketsViewsGetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *LocationsBucketsViewsGetIamPolicyCall) Context(ctx context.Context) *LocationsBucketsViewsGetIamPolicyCall { + 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 *LocationsBucketsViewsGetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *LocationsBucketsViewsGetIamPolicyCall) 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.getiampolicyrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+resource}:getIamPolicy") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "logging.locations.buckets.views.getIamPolicy" call. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.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 *LocationsBucketsViewsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, 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 := &Policy{ + 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 LocationsBucketsViewsListCall struct { s *Service parent string @@ -18054,12 +18921,226 @@ func (c *LocationsBucketsViewsPatchCall) Do(opts ...googleapi.CallOption) (*LogV return ret, nil } -type LocationsOperationsCancelCall struct { - s *Service - name string - canceloperationrequest *CancelOperationRequest - urlParams_ gensupport.URLParams - ctx_ context.Context +type LocationsBucketsViewsSetIamPolicyCall struct { + s *Service + resource string + setiampolicyrequest *SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and +// PERMISSION_DENIED errors. +// +// - resource: REQUIRED: The resource for which the policy is being specified. +// See Resource names (https://cloud.google.com/apis/design/resource_names) +// for the appropriate value for this field. +func (r *LocationsBucketsViewsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *LocationsBucketsViewsSetIamPolicyCall { + c := &LocationsBucketsViewsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.setiampolicyrequest = setiampolicyrequest + 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 *LocationsBucketsViewsSetIamPolicyCall) Fields(s ...googleapi.Field) *LocationsBucketsViewsSetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *LocationsBucketsViewsSetIamPolicyCall) Context(ctx context.Context) *LocationsBucketsViewsSetIamPolicyCall { + 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 *LocationsBucketsViewsSetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *LocationsBucketsViewsSetIamPolicyCall) 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.setiampolicyrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+resource}:setIamPolicy") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "logging.locations.buckets.views.setIamPolicy" call. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.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 *LocationsBucketsViewsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, 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 := &Policy{ + 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 LocationsBucketsViewsTestIamPermissionsCall struct { + s *Service + resource string + testiampermissionsrequest *TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. If the resource does not exist, this will return an empty set of +// permissions, not a NOT_FOUND error.Note: This operation is designed to be +// used for building permission-aware UIs and command-line tools, not for +// authorization checking. This operation may "fail open" without warning. +// +// - resource: REQUIRED: The resource for which the policy detail is being +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the appropriate +// value for this field. +func (r *LocationsBucketsViewsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *LocationsBucketsViewsTestIamPermissionsCall { + c := &LocationsBucketsViewsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.testiampermissionsrequest = testiampermissionsrequest + 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 *LocationsBucketsViewsTestIamPermissionsCall) Fields(s ...googleapi.Field) *LocationsBucketsViewsTestIamPermissionsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *LocationsBucketsViewsTestIamPermissionsCall) Context(ctx context.Context) *LocationsBucketsViewsTestIamPermissionsCall { + 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 *LocationsBucketsViewsTestIamPermissionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *LocationsBucketsViewsTestIamPermissionsCall) 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.testiampermissionsrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+resource}:testIamPermissions") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "logging.locations.buckets.views.testIamPermissions" call. +// Any non-2xx status code is an error. Response headers are in either +// *TestIamPermissionsResponse.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 *LocationsBucketsViewsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, 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 := &TestIamPermissionsResponse{ + 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 LocationsOperationsCancelCall struct { + s *Service + name string + canceloperationrequest *CancelOperationRequest + urlParams_ gensupport.URLParams + ctx_ context.Context header_ http.Header } @@ -21922,6 +23003,110 @@ func (c *OrganizationsLocationsBucketsViewsGetCall) Do(opts ...googleapi.CallOpt return ret, nil } +type OrganizationsLocationsBucketsViewsGetIamPolicyCall struct { + s *Service + resource string + getiampolicyrequest *GetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// GetIamPolicy: Gets the access control policy for a resource. Returns an +// empty policy if the resource exists and does not have a policy set. +// +// - resource: REQUIRED: The resource for which the policy is being requested. +// See Resource names (https://cloud.google.com/apis/design/resource_names) +// for the appropriate value for this field. +func (r *OrganizationsLocationsBucketsViewsService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *OrganizationsLocationsBucketsViewsGetIamPolicyCall { + c := &OrganizationsLocationsBucketsViewsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.getiampolicyrequest = getiampolicyrequest + 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 *OrganizationsLocationsBucketsViewsGetIamPolicyCall) Fields(s ...googleapi.Field) *OrganizationsLocationsBucketsViewsGetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *OrganizationsLocationsBucketsViewsGetIamPolicyCall) Context(ctx context.Context) *OrganizationsLocationsBucketsViewsGetIamPolicyCall { + 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 *OrganizationsLocationsBucketsViewsGetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsBucketsViewsGetIamPolicyCall) 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.getiampolicyrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+resource}:getIamPolicy") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "logging.organizations.locations.buckets.views.getIamPolicy" call. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.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 *OrganizationsLocationsBucketsViewsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, 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 := &Policy{ + 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 OrganizationsLocationsBucketsViewsListCall struct { s *Service parent string @@ -22111,54 +23296,268 @@ func (c *OrganizationsLocationsBucketsViewsPatchCall) UpdateMask(updateMask stri // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *OrganizationsLocationsBucketsViewsPatchCall) Fields(s ...googleapi.Field) *OrganizationsLocationsBucketsViewsPatchCall { +func (c *OrganizationsLocationsBucketsViewsPatchCall) Fields(s ...googleapi.Field) *OrganizationsLocationsBucketsViewsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *OrganizationsLocationsBucketsViewsPatchCall) Context(ctx context.Context) *OrganizationsLocationsBucketsViewsPatchCall { + 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 *OrganizationsLocationsBucketsViewsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsBucketsViewsPatchCall) 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.logview) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("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 "logging.organizations.locations.buckets.views.patch" call. +// Any non-2xx status code is an error. Response headers are in either +// *LogView.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 *OrganizationsLocationsBucketsViewsPatchCall) Do(opts ...googleapi.CallOption) (*LogView, 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 := &LogView{ + 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 OrganizationsLocationsBucketsViewsSetIamPolicyCall struct { + s *Service + resource string + setiampolicyrequest *SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and +// PERMISSION_DENIED errors. +// +// - resource: REQUIRED: The resource for which the policy is being specified. +// See Resource names (https://cloud.google.com/apis/design/resource_names) +// for the appropriate value for this field. +func (r *OrganizationsLocationsBucketsViewsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *OrganizationsLocationsBucketsViewsSetIamPolicyCall { + c := &OrganizationsLocationsBucketsViewsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.setiampolicyrequest = setiampolicyrequest + 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 *OrganizationsLocationsBucketsViewsSetIamPolicyCall) Fields(s ...googleapi.Field) *OrganizationsLocationsBucketsViewsSetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *OrganizationsLocationsBucketsViewsSetIamPolicyCall) Context(ctx context.Context) *OrganizationsLocationsBucketsViewsSetIamPolicyCall { + 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 *OrganizationsLocationsBucketsViewsSetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsBucketsViewsSetIamPolicyCall) 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.setiampolicyrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+resource}:setIamPolicy") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "logging.organizations.locations.buckets.views.setIamPolicy" call. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.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 *OrganizationsLocationsBucketsViewsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, 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 := &Policy{ + 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 OrganizationsLocationsBucketsViewsTestIamPermissionsCall struct { + s *Service + resource string + testiampermissionsrequest *TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. If the resource does not exist, this will return an empty set of +// permissions, not a NOT_FOUND error.Note: This operation is designed to be +// used for building permission-aware UIs and command-line tools, not for +// authorization checking. This operation may "fail open" without warning. +// +// - resource: REQUIRED: The resource for which the policy detail is being +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the appropriate +// value for this field. +func (r *OrganizationsLocationsBucketsViewsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *OrganizationsLocationsBucketsViewsTestIamPermissionsCall { + c := &OrganizationsLocationsBucketsViewsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.testiampermissionsrequest = testiampermissionsrequest + 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 *OrganizationsLocationsBucketsViewsTestIamPermissionsCall) Fields(s ...googleapi.Field) *OrganizationsLocationsBucketsViewsTestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *OrganizationsLocationsBucketsViewsPatchCall) Context(ctx context.Context) *OrganizationsLocationsBucketsViewsPatchCall { +func (c *OrganizationsLocationsBucketsViewsTestIamPermissionsCall) Context(ctx context.Context) *OrganizationsLocationsBucketsViewsTestIamPermissionsCall { 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 *OrganizationsLocationsBucketsViewsPatchCall) Header() http.Header { +func (c *OrganizationsLocationsBucketsViewsTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsBucketsViewsPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsLocationsBucketsViewsTestIamPermissionsCall) 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.logview) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+resource}:testIamPermissions") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "logging.organizations.locations.buckets.views.patch" call. +// Do executes the "logging.organizations.locations.buckets.views.testIamPermissions" call. // Any non-2xx status code is an error. Response headers are in either -// *LogView.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 *OrganizationsLocationsBucketsViewsPatchCall) Do(opts ...googleapi.CallOption) (*LogView, error) { +// *TestIamPermissionsResponse.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 *OrganizationsLocationsBucketsViewsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -22177,7 +23576,7 @@ func (c *OrganizationsLocationsBucketsViewsPatchCall) Do(opts ...googleapi.CallO if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &LogView{ + ret := &TestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -27182,6 +28581,110 @@ func (c *ProjectsLocationsBucketsViewsGetCall) Do(opts ...googleapi.CallOption) return ret, nil } +type ProjectsLocationsBucketsViewsGetIamPolicyCall struct { + s *Service + resource string + getiampolicyrequest *GetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// GetIamPolicy: Gets the access control policy for a resource. Returns an +// empty policy if the resource exists and does not have a policy set. +// +// - resource: REQUIRED: The resource for which the policy is being requested. +// See Resource names (https://cloud.google.com/apis/design/resource_names) +// for the appropriate value for this field. +func (r *ProjectsLocationsBucketsViewsService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsLocationsBucketsViewsGetIamPolicyCall { + c := &ProjectsLocationsBucketsViewsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.getiampolicyrequest = getiampolicyrequest + 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 *ProjectsLocationsBucketsViewsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsBucketsViewsGetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsBucketsViewsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsBucketsViewsGetIamPolicyCall { + 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 *ProjectsLocationsBucketsViewsGetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBucketsViewsGetIamPolicyCall) 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.getiampolicyrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+resource}:getIamPolicy") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "logging.projects.locations.buckets.views.getIamPolicy" call. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.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 *ProjectsLocationsBucketsViewsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, 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 := &Policy{ + 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 ProjectsLocationsBucketsViewsListCall struct { s *Service parent string @@ -27450,6 +28953,220 @@ func (c *ProjectsLocationsBucketsViewsPatchCall) Do(opts ...googleapi.CallOption return ret, nil } +type ProjectsLocationsBucketsViewsSetIamPolicyCall struct { + s *Service + resource string + setiampolicyrequest *SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and +// PERMISSION_DENIED errors. +// +// - resource: REQUIRED: The resource for which the policy is being specified. +// See Resource names (https://cloud.google.com/apis/design/resource_names) +// for the appropriate value for this field. +func (r *ProjectsLocationsBucketsViewsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsBucketsViewsSetIamPolicyCall { + c := &ProjectsLocationsBucketsViewsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.setiampolicyrequest = setiampolicyrequest + 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 *ProjectsLocationsBucketsViewsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsBucketsViewsSetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsBucketsViewsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsBucketsViewsSetIamPolicyCall { + 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 *ProjectsLocationsBucketsViewsSetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBucketsViewsSetIamPolicyCall) 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.setiampolicyrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+resource}:setIamPolicy") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "logging.projects.locations.buckets.views.setIamPolicy" call. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.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 *ProjectsLocationsBucketsViewsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, 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 := &Policy{ + 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 ProjectsLocationsBucketsViewsTestIamPermissionsCall struct { + s *Service + resource string + testiampermissionsrequest *TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// TestIamPermissions: Returns permissions that a caller has on the specified +// resource. If the resource does not exist, this will return an empty set of +// permissions, not a NOT_FOUND error.Note: This operation is designed to be +// used for building permission-aware UIs and command-line tools, not for +// authorization checking. This operation may "fail open" without warning. +// +// - resource: REQUIRED: The resource for which the policy detail is being +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the appropriate +// value for this field. +func (r *ProjectsLocationsBucketsViewsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsBucketsViewsTestIamPermissionsCall { + c := &ProjectsLocationsBucketsViewsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.testiampermissionsrequest = testiampermissionsrequest + 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 *ProjectsLocationsBucketsViewsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsBucketsViewsTestIamPermissionsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsBucketsViewsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsBucketsViewsTestIamPermissionsCall { + 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 *ProjectsLocationsBucketsViewsTestIamPermissionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBucketsViewsTestIamPermissionsCall) 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.testiampermissionsrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+resource}:testIamPermissions") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "logging.projects.locations.buckets.views.testIamPermissions" call. +// Any non-2xx status code is an error. Response headers are in either +// *TestIamPermissionsResponse.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 *ProjectsLocationsBucketsViewsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, 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 := &TestIamPermissionsResponse{ + 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 ProjectsLocationsBucketsViewsLogsListCall struct { s *Service parent string diff --git a/run/v1/run-api.json b/run/v1/run-api.json index 473bd0f4100..3edd1197163 100644 --- a/run/v1/run-api.json +++ b/run/v1/run-api.json @@ -2614,7 +2614,7 @@ } } }, - "revision": "20240412", + "revision": "20240426", "rootUrl": "https://run.googleapis.com/", "schemas": { "Addressable": { @@ -3563,6 +3563,10 @@ "readOnly": true, "type": "string" }, + "gitConfig": { + "$ref": "GoogleDevtoolsCloudbuildV1GitConfig", + "description": "Optional. Configuration for git operations." + }, "id": { "description": "Output only. Unique identifier of the build.", "readOnly": true, @@ -4102,6 +4106,25 @@ }, "type": "object" }, + "GoogleDevtoolsCloudbuildV1DeveloperConnectConfig": { + "description": "This config defines the location of a source through Developer Connect.", + "id": "GoogleDevtoolsCloudbuildV1DeveloperConnectConfig", + "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" + }, "GoogleDevtoolsCloudbuildV1FailureInfo": { "description": "A fatal problem encountered during the execution of the build.", "id": "GoogleDevtoolsCloudbuildV1FailureInfo", @@ -4149,6 +4172,17 @@ }, "type": "object" }, + "GoogleDevtoolsCloudbuildV1GitConfig": { + "description": "GitConfig is a configuration for git operations.", + "id": "GoogleDevtoolsCloudbuildV1GitConfig", + "properties": { + "http": { + "$ref": "GoogleDevtoolsCloudbuildV1HttpConfig", + "description": "Configuration for HTTP related git operations." + } + }, + "type": "object" + }, "GoogleDevtoolsCloudbuildV1GitSource": { "description": "Location of the source in any accessible Git repository.", "id": "GoogleDevtoolsCloudbuildV1GitSource", @@ -4196,6 +4230,17 @@ }, "type": "object" }, + "GoogleDevtoolsCloudbuildV1HttpConfig": { + "description": "HttpConfig is a configuration for HTTP related git operations.", + "id": "GoogleDevtoolsCloudbuildV1HttpConfig", + "properties": { + "proxySecretVersionName": { + "description": "SecretVersion resource of the HTTP proxy URL. The proxy URL should be in format protocol://@]proxyhost[:port].", + "type": "string" + } + }, + "type": "object" + }, "GoogleDevtoolsCloudbuildV1InlineSecret": { "description": "Pairs a set of secret environment variables mapped to encrypted values with the Cloud KMS key to use to decrypt the value.", "id": "GoogleDevtoolsCloudbuildV1InlineSecret", @@ -4454,6 +4499,10 @@ "$ref": "GoogleDevtoolsCloudbuildV1ConnectedRepository", "description": "Optional. If provided, get the source from this 2nd-gen Google Cloud Build repository resource." }, + "developerConnectConfig": { + "$ref": "GoogleDevtoolsCloudbuildV1DeveloperConnectConfig", + "description": "If provided, get the source from this Developer Connect config." + }, "gitSource": { "$ref": "GoogleDevtoolsCloudbuildV1GitSource", "description": "If provided, get the source from this Git repository." @@ -5622,6 +5671,13 @@ }, "type": "array" }, + "nodeSelector": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. The Node Selector configuration. Map of selector key to a value which matches a node.", + "type": "object" + }, "serviceAccountName": { "description": "Email address of the IAM service account associated with the revision of the service. The service account represents the identity of the running revision, and determines what permissions the revision has. If not provided, the revision will use the project's default service account.", "type": "string" diff --git a/run/v1/run-gen.go b/run/v1/run-gen.go index db914621c29..cd8e8fe1390 100644 --- a/run/v1/run-gen.go +++ b/run/v1/run-gen.go @@ -1775,6 +1775,8 @@ type GoogleDevtoolsCloudbuildV1Build 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 *GoogleDevtoolsCloudbuildV1GitConfig `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 @@ -2239,6 +2241,36 @@ func (s *GoogleDevtoolsCloudbuildV1ConnectedRepository) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// GoogleDevtoolsCloudbuildV1DeveloperConnectConfig: This config defines the +// location of a source through Developer Connect. +type GoogleDevtoolsCloudbuildV1DeveloperConnectConfig 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 *GoogleDevtoolsCloudbuildV1DeveloperConnectConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleDevtoolsCloudbuildV1DeveloperConnectConfig + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // GoogleDevtoolsCloudbuildV1FailureInfo: A fatal problem encountered during // the execution of the build. type GoogleDevtoolsCloudbuildV1FailureInfo struct { @@ -2297,6 +2329,29 @@ func (s *GoogleDevtoolsCloudbuildV1FileHashes) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// GoogleDevtoolsCloudbuildV1GitConfig: GitConfig is a configuration for git +// operations. +type GoogleDevtoolsCloudbuildV1GitConfig struct { + // Http: Configuration for HTTP related git operations. + Http *GoogleDevtoolsCloudbuildV1HttpConfig `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 *GoogleDevtoolsCloudbuildV1GitConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleDevtoolsCloudbuildV1GitConfig + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // GoogleDevtoolsCloudbuildV1GitSource: Location of the source in any // accessible Git repository. type GoogleDevtoolsCloudbuildV1GitSource struct { @@ -2363,6 +2418,30 @@ func (s *GoogleDevtoolsCloudbuildV1Hash) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// GoogleDevtoolsCloudbuildV1HttpConfig: HttpConfig is a configuration for HTTP +// related git operations. +type GoogleDevtoolsCloudbuildV1HttpConfig 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 *GoogleDevtoolsCloudbuildV1HttpConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleDevtoolsCloudbuildV1HttpConfig + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // GoogleDevtoolsCloudbuildV1InlineSecret: Pairs a set of secret environment // variables mapped to encrypted values with the Cloud KMS key to use to // decrypt the value. @@ -2706,6 +2785,9 @@ type GoogleDevtoolsCloudbuildV1Source struct { // ConnectedRepository: Optional. If provided, get the source from this 2nd-gen // Google Cloud Build repository resource. ConnectedRepository *GoogleDevtoolsCloudbuildV1ConnectedRepository `json:"connectedRepository,omitempty"` + // DeveloperConnectConfig: If provided, get the source from this Developer + // Connect config. + DeveloperConnectConfig *GoogleDevtoolsCloudbuildV1DeveloperConnectConfig `json:"developerConnectConfig,omitempty"` // GitSource: If provided, get the source from this Git repository. GitSource *GoogleDevtoolsCloudbuildV1GitSource `json:"gitSource,omitempty"` // RepoSource: If provided, get the source from this location in a Cloud Source @@ -4223,6 +4305,9 @@ type RevisionSpec struct { EnableServiceLinks bool `json:"enableServiceLinks,omitempty"` // ImagePullSecrets: Not supported by Cloud Run. ImagePullSecrets []*LocalObjectReference `json:"imagePullSecrets,omitempty"` + // NodeSelector: Optional. The Node Selector configuration. Map of selector key + // to a value which matches a node. + NodeSelector map[string]string `json:"nodeSelector,omitempty"` // ServiceAccountName: Email address of the IAM service account associated with // the revision of the service. The service account represents the identity of // the running revision, and determines what permissions the revision has. If diff --git a/run/v2/run-api.json b/run/v2/run-api.json index a51474098d6..2633481ef0e 100644 --- a/run/v2/run-api.json +++ b/run/v2/run-api.json @@ -1469,7 +1469,7 @@ } } }, - "revision": "20240412", + "revision": "20240426", "rootUrl": "https://run.googleapis.com/", "schemas": { "GoogleCloudRunV2BinaryAuthorization": { @@ -2540,6 +2540,17 @@ }, "type": "object" }, + "GoogleCloudRunV2NodeSelector": { + "description": "Hardware constraints configuration.", + "id": "GoogleCloudRunV2NodeSelector", + "properties": { + "accelerator": { + "description": "Required. GPU accelerator type to attach to an instance.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudRunV2Overrides": { "description": "RunJob Overrides that contains Execution fields to be overridden.", "id": "GoogleCloudRunV2Overrides", @@ -2765,6 +2776,10 @@ "readOnly": true, "type": "string" }, + "nodeSelector": { + "$ref": "GoogleCloudRunV2NodeSelector", + "description": "The node selector for the revision." + }, "observedGeneration": { "description": "Output only. The generation of this Revision currently serving traffic. See comments in `reconciling` for additional information on reconciliation process in Cloud Run.", "format": "int64", @@ -2914,6 +2929,10 @@ "format": "int32", "type": "integer" }, + "nodeSelector": { + "$ref": "GoogleCloudRunV2NodeSelector", + "description": "Optional. The node selector for the revision template." + }, "revision": { "description": "Optional. The unique name for the revision. If this field is omitted, it will be automatically generated based on the Service name.", "type": "string" @@ -3832,6 +3851,10 @@ "readOnly": true, "type": "string" }, + "gitConfig": { + "$ref": "GoogleDevtoolsCloudbuildV1GitConfig", + "description": "Optional. Configuration for git operations." + }, "id": { "description": "Output only. Unique identifier of the build.", "readOnly": true, @@ -4371,6 +4394,25 @@ }, "type": "object" }, + "GoogleDevtoolsCloudbuildV1DeveloperConnectConfig": { + "description": "This config defines the location of a source through Developer Connect.", + "id": "GoogleDevtoolsCloudbuildV1DeveloperConnectConfig", + "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" + }, "GoogleDevtoolsCloudbuildV1FailureInfo": { "description": "A fatal problem encountered during the execution of the build.", "id": "GoogleDevtoolsCloudbuildV1FailureInfo", @@ -4418,6 +4460,17 @@ }, "type": "object" }, + "GoogleDevtoolsCloudbuildV1GitConfig": { + "description": "GitConfig is a configuration for git operations.", + "id": "GoogleDevtoolsCloudbuildV1GitConfig", + "properties": { + "http": { + "$ref": "GoogleDevtoolsCloudbuildV1HttpConfig", + "description": "Configuration for HTTP related git operations." + } + }, + "type": "object" + }, "GoogleDevtoolsCloudbuildV1GitSource": { "description": "Location of the source in any accessible Git repository.", "id": "GoogleDevtoolsCloudbuildV1GitSource", @@ -4465,6 +4518,17 @@ }, "type": "object" }, + "GoogleDevtoolsCloudbuildV1HttpConfig": { + "description": "HttpConfig is a configuration for HTTP related git operations.", + "id": "GoogleDevtoolsCloudbuildV1HttpConfig", + "properties": { + "proxySecretVersionName": { + "description": "SecretVersion resource of the HTTP proxy URL. The proxy URL should be in format protocol://@]proxyhost[:port].", + "type": "string" + } + }, + "type": "object" + }, "GoogleDevtoolsCloudbuildV1InlineSecret": { "description": "Pairs a set of secret environment variables mapped to encrypted values with the Cloud KMS key to use to decrypt the value.", "id": "GoogleDevtoolsCloudbuildV1InlineSecret", @@ -4723,6 +4787,10 @@ "$ref": "GoogleDevtoolsCloudbuildV1ConnectedRepository", "description": "Optional. If provided, get the source from this 2nd-gen Google Cloud Build repository resource." }, + "developerConnectConfig": { + "$ref": "GoogleDevtoolsCloudbuildV1DeveloperConnectConfig", + "description": "If provided, get the source from this Developer Connect config." + }, "gitSource": { "$ref": "GoogleDevtoolsCloudbuildV1GitSource", "description": "If provided, get the source from this Git repository." diff --git a/run/v2/run-gen.go b/run/v2/run-gen.go index 135c5539d12..49b6767af16 100644 --- a/run/v2/run-gen.go +++ b/run/v2/run-gen.go @@ -1525,6 +1525,28 @@ func (s *GoogleCloudRunV2NetworkInterface) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// GoogleCloudRunV2NodeSelector: Hardware constraints configuration. +type GoogleCloudRunV2NodeSelector struct { + // Accelerator: Required. GPU accelerator type to attach to an instance. + Accelerator string `json:"accelerator,omitempty"` + // ForceSendFields is a list of field names (e.g. "Accelerator") 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. "Accelerator") 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 *GoogleCloudRunV2NodeSelector) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRunV2NodeSelector + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudRunV2Overrides: RunJob Overrides that contains Execution fields // to be overridden. type GoogleCloudRunV2Overrides struct { @@ -1748,6 +1770,8 @@ type GoogleCloudRunV2Revision struct { MaxInstanceRequestConcurrency int64 `json:"maxInstanceRequestConcurrency,omitempty"` // Name: Output only. The unique name of this Revision. Name string `json:"name,omitempty"` + // NodeSelector: The node selector for the revision. + NodeSelector *GoogleCloudRunV2NodeSelector `json:"nodeSelector,omitempty"` // ObservedGeneration: Output only. The generation of this Revision currently // serving traffic. See comments in `reconciling` for additional information on // reconciliation process in Cloud Run. @@ -1900,6 +1924,8 @@ type GoogleCloudRunV2RevisionTemplate struct { // MaxInstanceRequestConcurrency: Optional. Sets the maximum number of requests // that each serving instance can receive. MaxInstanceRequestConcurrency int64 `json:"maxInstanceRequestConcurrency,omitempty"` + // NodeSelector: Optional. The node selector for the revision template. + NodeSelector *GoogleCloudRunV2NodeSelector `json:"nodeSelector,omitempty"` // Revision: Optional. The unique name for the revision. If this field is // omitted, it will be automatically generated based on the Service name. Revision string `json:"revision,omitempty"` @@ -2923,6 +2949,8 @@ type GoogleDevtoolsCloudbuildV1Build 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 *GoogleDevtoolsCloudbuildV1GitConfig `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 @@ -3387,6 +3415,36 @@ func (s *GoogleDevtoolsCloudbuildV1ConnectedRepository) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// GoogleDevtoolsCloudbuildV1DeveloperConnectConfig: This config defines the +// location of a source through Developer Connect. +type GoogleDevtoolsCloudbuildV1DeveloperConnectConfig 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 *GoogleDevtoolsCloudbuildV1DeveloperConnectConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleDevtoolsCloudbuildV1DeveloperConnectConfig + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // GoogleDevtoolsCloudbuildV1FailureInfo: A fatal problem encountered during // the execution of the build. type GoogleDevtoolsCloudbuildV1FailureInfo struct { @@ -3445,6 +3503,29 @@ func (s *GoogleDevtoolsCloudbuildV1FileHashes) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// GoogleDevtoolsCloudbuildV1GitConfig: GitConfig is a configuration for git +// operations. +type GoogleDevtoolsCloudbuildV1GitConfig struct { + // Http: Configuration for HTTP related git operations. + Http *GoogleDevtoolsCloudbuildV1HttpConfig `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 *GoogleDevtoolsCloudbuildV1GitConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleDevtoolsCloudbuildV1GitConfig + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // GoogleDevtoolsCloudbuildV1GitSource: Location of the source in any // accessible Git repository. type GoogleDevtoolsCloudbuildV1GitSource struct { @@ -3511,6 +3592,30 @@ func (s *GoogleDevtoolsCloudbuildV1Hash) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// GoogleDevtoolsCloudbuildV1HttpConfig: HttpConfig is a configuration for HTTP +// related git operations. +type GoogleDevtoolsCloudbuildV1HttpConfig 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 *GoogleDevtoolsCloudbuildV1HttpConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleDevtoolsCloudbuildV1HttpConfig + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // GoogleDevtoolsCloudbuildV1InlineSecret: Pairs a set of secret environment // variables mapped to encrypted values with the Cloud KMS key to use to // decrypt the value. @@ -3854,6 +3959,9 @@ type GoogleDevtoolsCloudbuildV1Source struct { // ConnectedRepository: Optional. If provided, get the source from this 2nd-gen // Google Cloud Build repository resource. ConnectedRepository *GoogleDevtoolsCloudbuildV1ConnectedRepository `json:"connectedRepository,omitempty"` + // DeveloperConnectConfig: If provided, get the source from this Developer + // Connect config. + DeveloperConnectConfig *GoogleDevtoolsCloudbuildV1DeveloperConnectConfig `json:"developerConnectConfig,omitempty"` // GitSource: If provided, get the source from this Git repository. GitSource *GoogleDevtoolsCloudbuildV1GitSource `json:"gitSource,omitempty"` // RepoSource: If provided, get the source from this location in a Cloud Source diff --git a/servicemanagement/v1/servicemanagement-api.json b/servicemanagement/v1/servicemanagement-api.json index 6d0e5dfe199..bd183abc69e 100644 --- a/servicemanagement/v1/servicemanagement-api.json +++ b/servicemanagement/v1/servicemanagement-api.json @@ -830,7 +830,7 @@ } } }, - "revision": "20240412", + "revision": "20240426", "rootUrl": "https://servicemanagement.googleapis.com/", "schemas": { "Advice": { @@ -1684,8 +1684,7 @@ "id": "Endpoint", "properties": { "aliases": { - "deprecated": true, - "description": "Unimplemented. Dot not use. DEPRECATED: This field is no longer supported. Instead of using aliases, please specify multiple google.api.Endpoint for each of the intended aliases. Additional names that this endpoint will be hosted on.", + "description": "Aliases for this endpoint, these will be served by the same UrlMap as the parent endpoint, and will be provisioned in the GCP stack for the Regional Endpoints.", "items": { "type": "string" }, diff --git a/servicemanagement/v1/servicemanagement-gen.go b/servicemanagement/v1/servicemanagement-gen.go index 90bb86dd1ae..4e1aa7424fa 100644 --- a/servicemanagement/v1/servicemanagement-gen.go +++ b/servicemanagement/v1/servicemanagement-gen.go @@ -1551,10 +1551,9 @@ type EnableServiceResponse struct { // to be passed to the API frontend, for it # to decide whether the subsequent // cross-origin request is allowed # to proceed. allow_cors: true type Endpoint struct { - // Aliases: Unimplemented. Dot not use. DEPRECATED: This field is no longer - // supported. Instead of using aliases, please specify multiple - // google.api.Endpoint for each of the intended aliases. Additional names that - // this endpoint will be hosted on. + // Aliases: Aliases for this endpoint, these will be served by the same UrlMap + // as the parent endpoint, and will be provisioned in the GCP stack for the + // Regional Endpoints. Aliases []string `json:"aliases,omitempty"` // AllowCors: Allowing CORS // (https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka diff --git a/solar/v1/solar-api.json b/solar/v1/solar-api.json index 345b9ef66e2..db36e7413a5 100644 --- a/solar/v1/solar-api.json +++ b/solar/v1/solar-api.json @@ -163,6 +163,11 @@ "id": "solar.dataLayers.get", "parameterOrder": [], "parameters": { + "exactQualityRequired": { + "description": "Optional. Whether to require exact quality of the imagery. If set to false, the `required_quality` field is interpreted as the minimum required quality, such that HIGH quality imagery may be returned when `required_quality` is set to MEDIUM. If set to true, `required_quality` is interpreted as the exact required quality and only `MEDIUM` quality imagery is returned if `required_quality` is set to `MEDIUM`.", + "location": "query", + "type": "boolean" + }, "location.latitude": { "description": "The latitude in degrees. It must be in the range [-90.0, +90.0].", "format": "double", @@ -262,7 +267,7 @@ } } }, - "revision": "20240327", + "revision": "20240430", "rootUrl": "https://solar.googleapis.com/", "schemas": { "BuildingInsights": { diff --git a/solar/v1/solar-gen.go b/solar/v1/solar-gen.go index 563cd99d447..55c3304c599 100644 --- a/solar/v1/solar-gen.go +++ b/solar/v1/solar-gen.go @@ -1347,6 +1347,18 @@ func (r *DataLayersService) Get() *DataLayersGetCall { return c } +// ExactQualityRequired sets the optional parameter "exactQualityRequired": +// Whether to require exact quality of the imagery. If set to false, the +// `required_quality` field is interpreted as the minimum required quality, +// such that HIGH quality imagery may be returned when `required_quality` is +// set to MEDIUM. If set to true, `required_quality` is interpreted as the +// exact required quality and only `MEDIUM` quality imagery is returned if +// `required_quality` is set to `MEDIUM`. +func (c *DataLayersGetCall) ExactQualityRequired(exactQualityRequired bool) *DataLayersGetCall { + c.urlParams_.Set("exactQualityRequired", fmt.Sprint(exactQualityRequired)) + return c +} + // LocationLatitude sets the optional parameter "location.latitude": The // latitude in degrees. It must be in the range [-90.0, +90.0]. func (c *DataLayersGetCall) LocationLatitude(locationLatitude float64) *DataLayersGetCall { diff --git a/sqladmin/v1/sqladmin-api.json b/sqladmin/v1/sqladmin-api.json index 4c1481f8fe1..c5e497aa490 100644 --- a/sqladmin/v1/sqladmin-api.json +++ b/sqladmin/v1/sqladmin-api.json @@ -1084,7 +1084,7 @@ ] }, "promoteReplica": { - "description": "Promotes the read replica instance to be a stand-alone Cloud SQL instance. Using this operation might cause your instance to restart.", + "description": "Promotes the read replica instance to be an independent Cloud SQL primary instance. Using this operation might cause your instance to restart.", "flatPath": "v1/projects/{project}/instances/{instance}/promoteReplica", "httpMethod": "POST", "id": "sql.instances.promoteReplica", @@ -1094,7 +1094,7 @@ ], "parameters": { "failover": { - "description": "Set to true if the promote operation should attempt to re-add the original primary as a replica when it comes back online. Otherwise, if this value is false or not set, the original primary will be a standalone instance.", + "description": "Set to true to invoke a replica failover to the designated DR replica. As part of replica failover, the promote operation attempts to add the original primary instance as a replica of the promoted DR replica when the original primary instance comes back online. If set to false or not specified, then the original primary instance becomes an independent Cloud SQL primary instance. Only applicable to MySQL.", "location": "query", "type": "boolean" }, @@ -1386,7 +1386,7 @@ ] }, "switchover": { - "description": "Switches over from the primary instance to the replica instance.", + "description": "Switches over from the primary instance to the designated DR replica instance.", "flatPath": "v1/projects/{project}/instances/{instance}/switchover", "httpMethod": "POST", "id": "sql.instances.switchover", @@ -2267,7 +2267,7 @@ } } }, - "revision": "20240324", + "revision": "20240425", "rootUrl": "https://sqladmin.googleapis.com/", "schemas": { "AclEntry": { @@ -2405,7 +2405,7 @@ "type": "integer" }, "transactionalLogStorageState": { - "description": "Output only. This value contains the storage location of transactional logs for the database for point-in-time recovery.", + "description": "Output only. This value contains the storage location of transactional logs used to perform point-in-time recovery (PITR) for the database.", "enum": [ "TRANSACTIONAL_LOG_STORAGE_STATE_UNSPECIFIED", "DISK", @@ -2415,10 +2415,10 @@ ], "enumDescriptions": [ "Unspecified.", - "The transaction logs for the instance are stored on a data disk.", - "The transaction logs for the instance are switching from being stored on a data disk to being stored in Cloud Storage.", - "The transaction logs for the instance are now stored in Cloud Storage. Previously, they were stored on a data disk.", - "The transaction logs for the instance are stored in Cloud Storage." + "The transaction logs used for PITR for the instance are stored on a data disk.", + "The transaction logs used for PITR for the instance are switching from being stored on a data disk to being stored in Cloud Storage. Only applicable to MySQL.", + "The transaction logs used for PITR for the instance are now stored in Cloud Storage. Previously, they were stored on a data disk. Only applicable to MySQL.", + "The transaction logs used for PITR for the instance are stored in Cloud Storage. Only applicable to MySQL and PostgreSQL." ], "readOnly": true, "type": "string" @@ -3184,7 +3184,7 @@ }, "geminiConfig": { "$ref": "GeminiInstanceConfig", - "description": "Gemini configuration." + "description": "Gemini instance configuration." }, "instanceType": { "description": "The instance type.", @@ -3276,7 +3276,7 @@ }, "replicationCluster": { "$ref": "ReplicationCluster", - "description": "Optional. The pair of a primary instance and disaster recovery (DR) replica. A DR replica is a cross-region replica that you designate for failover in the event that the primary instance has regional failure." + "description": "Optional. A primary instance and disaster recovery (DR) replica pair. A DR replica is a cross-region replica that you designate for failover in the event that the primary instance experiences regional failure. Only applicable to MySQL." }, "rootPassword": { "description": "Initial root password. Use only on creation. You must set root passwords before you can connect to PostgreSQL instances.", @@ -3935,36 +3935,36 @@ "type": "object" }, "GeminiInstanceConfig": { - "description": "Gemini configuration.", + "description": "Gemini instance configuration.", "id": "GeminiInstanceConfig", "properties": { "activeQueryEnabled": { - "description": "Output only. Whether active query is enabled.", + "description": "Output only. Whether the active query is enabled.", "readOnly": true, "type": "boolean" }, "entitled": { - "description": "Output only. Whether gemini is enabled.", + "description": "Output only. Whether Gemini is enabled.", "readOnly": true, "type": "boolean" }, "flagRecommenderEnabled": { - "description": "Output only. Whether flag recommender is enabled.", + "description": "Output only. Whether the flag recommender is enabled.", "readOnly": true, "type": "boolean" }, "googleVacuumMgmtEnabled": { - "description": "Output only. Whether vacuum management is enabled.", + "description": "Output only. Whether the vacuum management is enabled.", "readOnly": true, "type": "boolean" }, "indexAdvisorEnabled": { - "description": "Output only. Whether index advisor is enabled.", + "description": "Output only. Whether the index advisor is enabled.", "readOnly": true, "type": "boolean" }, "oomSessionCancelEnabled": { - "description": "Output only. Whether oom session cancel is enabled.", + "description": "Output only. Whether canceling the out-of-memory (OOM) session is enabled.", "readOnly": true, "type": "boolean" } @@ -4409,7 +4409,7 @@ "type": "boolean" }, "sslMode": { - "description": "Specify how SSL/TLS is enforced in database connections. If you must use the `require_ssl` flag for backward compatibility, then only the following value pairs are valid: For PostgreSQL and MySQL: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false` * `ssl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIRED` and `require_ssl=true` For SQL Server: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=true` The value of `ssl_mode` gets priority over the value of `require_ssl`. For example, for the pair `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false`, the `ssl_mode=ENCRYPTED_ONLY` means only accept SSL connections, while the `require_ssl=false` means accept both non-SSL and SSL connections. MySQL and PostgreSQL databases respect `ssl_mode` in this case and accept only SSL connections.", + "description": "Specify how SSL/TLS is enforced in database connections. If you must use the `require_ssl` flag for backward compatibility, then only the following value pairs are valid: For PostgreSQL and MySQL: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false` * `ssl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIRED` and `require_ssl=true` For SQL Server: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=true` The value of `ssl_mode` has priority over the value of `require_ssl`. For example, for the pair `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false`, `ssl_mode=ENCRYPTED_ONLY` means accept only SSL connections, while `require_ssl=false` means accept both non-SSL and SSL connections. In this case, MySQL and PostgreSQL databases respect `ssl_mode` and accepts only SSL connections.", "enum": [ "SSL_MODE_UNSPECIFIED", "ALLOW_UNENCRYPTED_AND_ENCRYPTED", @@ -4418,9 +4418,9 @@ ], "enumDescriptions": [ "The SSL mode is unknown.", - "Allow non-SSL/non-TLS and SSL/TLS connections. For SSL/TLS connections, the client certificate won't be verified. When this value is used, the legacy `require_ssl` flag must be false or cleared to avoid the conflict between values of two flags.", - "Only allow connections encrypted with SSL/TLS. When this value is used, the legacy `require_ssl` flag must be false or cleared to avoid the conflict between values of two flags.", - "Only allow connections encrypted with SSL/TLS and with valid client certificates. When this value is used, the legacy `require_ssl` flag must be true or cleared to avoid the conflict between values of two flags. PostgreSQL clients or users that connect using IAM database authentication must use either the [Cloud SQL Auth Proxy](https://cloud.google.com/sql/docs/postgres/connect-auth-proxy) or [Cloud SQL Connectors](https://cloud.google.com/sql/docs/postgres/connect-connectors) to enforce client identity verification." + "Allow non-SSL/non-TLS and SSL/TLS connections. For SSL connections to MySQL and PostgreSQL, the client certificate isn't verified. When this value is used, the legacy `require_ssl` flag must be false or cleared to avoid a conflict between the values of the two flags.", + "Only allow connections encrypted with SSL/TLS. For SSL connections to MySQL and PostgreSQL, the client certificate isn't verified. When this value is used, the legacy `require_ssl` flag must be false or cleared to avoid a conflict between the values of the two flags.", + "Only allow connections encrypted with SSL/TLS and with valid client certificates. When this value is used, the legacy `require_ssl` flag must be true or cleared to avoid the conflict between values of two flags. PostgreSQL clients or users that connect using IAM database authentication must use either the [Cloud SQL Auth Proxy](https://cloud.google.com/sql/docs/postgres/connect-auth-proxy) or [Cloud SQL Connectors](https://cloud.google.com/sql/docs/postgres/connect-connectors) to enforce client identity verification. Only applicable to MySQL and PostgreSQL. Not applicable to SQL Server." ], "type": "string" } @@ -5077,16 +5077,16 @@ "type": "object" }, "ReplicationCluster": { - "description": "Primary-DR replica pair", + "description": "A primary instance and disaster recovery (DR) replica pair. A DR replica is a cross-region replica that you designate for failover in the event that the primary instance experiences regional failure. Only applicable to MySQL.", "id": "ReplicationCluster", "properties": { "drReplica": { - "description": "Output only. read-only field that indicates if the replica is a dr_replica; not set for a primary.", + "description": "Output only. Read-only field that indicates whether the replica is a DR replica. This field is not set if the instance is a primary instance.", "readOnly": true, "type": "boolean" }, "failoverDrReplicaName": { - "description": "Optional. If the instance is a primary instance, then this field identifies the disaster recovery (DR) replica. A DR replica is an optional configuration for Enterprise Plus edition instances. If the instance is a read replica, then the field is not set. Users can set this field to set a designated DR replica for a primary. Removing this field removes the DR replica.", + "description": "Optional. If the instance is a primary instance, then this field identifies the disaster recovery (DR) replica. A DR replica is an optional configuration for Enterprise Plus edition instances. If the instance is a read replica, then the field is not set. Set this field to a replica name to designate a DR replica for a primary instance. Remove the replica name to remove the DR replica designation.", "type": "string" } }, @@ -5609,16 +5609,16 @@ "id": "SqlInstancesStartExternalSyncRequest", "properties": { "migrationType": { - "description": "Optional. MigrationType decides if the migration is a physical file based migration or logical migration.", + "description": "Optional. MigrationType configures the migration to use physical files or logical dump files. If not set, then the logical dump file configuration is used. Valid values are `LOGICAL` or `PHYSICAL`. Only applicable to MySQL.", "enum": [ "MIGRATION_TYPE_UNSPECIFIED", "LOGICAL", "PHYSICAL" ], "enumDescriptions": [ - "Default value is logical migration", - "Logical Migrations", - "Physical file based Migrations" + "Default value is a logical dump file-based migration", + "Logical dump file-based migration", + "Physical file-based migration" ], "type": "string" }, @@ -5668,16 +5668,16 @@ "id": "SqlInstancesVerifyExternalSyncSettingsRequest", "properties": { "migrationType": { - "description": "Optional. MigrationType decides if the migration is a physical file based migration or logical migration", + "description": "Optional. MigrationType configures the migration to use physical files or logical dump files. If not set, then the logical dump file configuration is used. Valid values are `LOGICAL` or `PHYSICAL`. Only applicable to MySQL.", "enum": [ "MIGRATION_TYPE_UNSPECIFIED", "LOGICAL", "PHYSICAL" ], "enumDescriptions": [ - "Default value is logical migration", - "Logical Migrations", - "Physical file based Migrations" + "Default value is a logical dump file-based migration", + "Logical dump file-based migration", + "Physical file-based migration" ], "type": "string" }, @@ -5700,7 +5700,7 @@ "type": "string" }, "syncParallelLevel": { - "description": "Optional. Parallel level for initial data sync. Currently only applicable for PostgreSQL.", + "description": "Optional. Parallel level for initial data sync. Only applicable for PostgreSQL.", "enum": [ "EXTERNAL_SYNC_PARALLEL_LEVEL_UNSPECIFIED", "MIN", diff --git a/sqladmin/v1/sqladmin-gen.go b/sqladmin/v1/sqladmin-gen.go index 243f8e283f6..90530cc2d49 100644 --- a/sqladmin/v1/sqladmin-gen.go +++ b/sqladmin/v1/sqladmin-gen.go @@ -439,17 +439,21 @@ type BackupConfiguration struct { // retain for point in time restore, from 1-7. TransactionLogRetentionDays int64 `json:"transactionLogRetentionDays,omitempty"` // TransactionalLogStorageState: Output only. This value contains the storage - // location of transactional logs for the database for point-in-time recovery. + // location of transactional logs used to perform point-in-time recovery (PITR) + // for the database. // // Possible values: // "TRANSACTIONAL_LOG_STORAGE_STATE_UNSPECIFIED" - Unspecified. - // "DISK" - The transaction logs for the instance are stored on a data disk. - // "SWITCHING_TO_CLOUD_STORAGE" - The transaction logs for the instance are - // switching from being stored on a data disk to being stored in Cloud Storage. - // "SWITCHED_TO_CLOUD_STORAGE" - The transaction logs for the instance are - // now stored in Cloud Storage. Previously, they were stored on a data disk. - // "CLOUD_STORAGE" - The transaction logs for the instance are stored in - // Cloud Storage. + // "DISK" - The transaction logs used for PITR for the instance are stored on + // a data disk. + // "SWITCHING_TO_CLOUD_STORAGE" - The transaction logs used for PITR for the + // instance are switching from being stored on a data disk to being stored in + // Cloud Storage. Only applicable to MySQL. + // "SWITCHED_TO_CLOUD_STORAGE" - The transaction logs used for PITR for the + // instance are now stored in Cloud Storage. Previously, they were stored on a + // data disk. Only applicable to MySQL. + // "CLOUD_STORAGE" - The transaction logs used for PITR for the instance are + // stored in Cloud Storage. Only applicable to MySQL and PostgreSQL. TransactionalLogStorageState string `json:"transactionalLogStorageState,omitempty"` // ForceSendFields is a list of field names (e.g. "BackupRetentionSettings") to // unconditionally include in API requests. By default, fields with empty or @@ -1102,7 +1106,7 @@ type DatabaseInstance struct { // the instance was created if the instance has failed over to its secondary // zone. WARNING: Changing this might restart the instance. GceZone string `json:"gceZone,omitempty"` - // GeminiConfig: Gemini configuration. + // GeminiConfig: Gemini instance configuration. GeminiConfig *GeminiInstanceConfig `json:"geminiConfig,omitempty"` // InstanceType: The instance type. // @@ -1156,10 +1160,10 @@ type DatabaseInstance struct { ReplicaConfiguration *ReplicaConfiguration `json:"replicaConfiguration,omitempty"` // ReplicaNames: The replicas of the instance. ReplicaNames []string `json:"replicaNames,omitempty"` - // ReplicationCluster: Optional. The pair of a primary instance and disaster - // recovery (DR) replica. A DR replica is a cross-region replica that you - // designate for failover in the event that the primary instance has regional - // failure. + // ReplicationCluster: Optional. A primary instance and disaster recovery (DR) + // replica pair. A DR replica is a cross-region replica that you designate for + // failover in the event that the primary instance experiences regional + // failure. Only applicable to MySQL. ReplicationCluster *ReplicationCluster `json:"replicationCluster,omitempty"` // RootPassword: Initial root password. Use only on creation. You must set root // passwords before you can connect to PostgreSQL instances. @@ -1895,19 +1899,22 @@ func (s *FlagsListResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } -// GeminiInstanceConfig: Gemini configuration. +// GeminiInstanceConfig: Gemini instance configuration. type GeminiInstanceConfig struct { - // ActiveQueryEnabled: Output only. Whether active query is enabled. + // ActiveQueryEnabled: Output only. Whether the active query is enabled. ActiveQueryEnabled bool `json:"activeQueryEnabled,omitempty"` - // Entitled: Output only. Whether gemini is enabled. + // Entitled: Output only. Whether Gemini is enabled. Entitled bool `json:"entitled,omitempty"` - // FlagRecommenderEnabled: Output only. Whether flag recommender is enabled. + // FlagRecommenderEnabled: Output only. Whether the flag recommender is + // enabled. FlagRecommenderEnabled bool `json:"flagRecommenderEnabled,omitempty"` - // GoogleVacuumMgmtEnabled: Output only. Whether vacuum management is enabled. + // GoogleVacuumMgmtEnabled: Output only. Whether the vacuum management is + // enabled. GoogleVacuumMgmtEnabled bool `json:"googleVacuumMgmtEnabled,omitempty"` - // IndexAdvisorEnabled: Output only. Whether index advisor is enabled. + // IndexAdvisorEnabled: Output only. Whether the index advisor is enabled. IndexAdvisorEnabled bool `json:"indexAdvisorEnabled,omitempty"` - // OomSessionCancelEnabled: Output only. Whether oom session cancel is enabled. + // OomSessionCancelEnabled: Output only. Whether canceling the out-of-memory + // (OOM) session is enabled. OomSessionCancelEnabled bool `json:"oomSessionCancelEnabled,omitempty"` // ForceSendFields is a list of field names (e.g. "ActiveQueryEnabled") to // unconditionally include in API requests. By default, fields with empty or @@ -2586,22 +2593,24 @@ type IpConfiguration struct { // `ssl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIRED` and `require_ssl=true` For // SQL Server: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and // `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=true` The - // value of `ssl_mode` gets priority over the value of `require_ssl`. For - // example, for the pair `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false`, the - // `ssl_mode=ENCRYPTED_ONLY` means only accept SSL connections, while the - // `require_ssl=false` means accept both non-SSL and SSL connections. MySQL and - // PostgreSQL databases respect `ssl_mode` in this case and accept only SSL + // value of `ssl_mode` has priority over the value of `require_ssl`. For + // example, for the pair `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false`, + // `ssl_mode=ENCRYPTED_ONLY` means accept only SSL connections, while + // `require_ssl=false` means accept both non-SSL and SSL connections. In this + // case, MySQL and PostgreSQL databases respect `ssl_mode` and accepts only SSL // connections. // // Possible values: // "SSL_MODE_UNSPECIFIED" - The SSL mode is unknown. // "ALLOW_UNENCRYPTED_AND_ENCRYPTED" - Allow non-SSL/non-TLS and SSL/TLS - // connections. For SSL/TLS connections, the client certificate won't be - // verified. When this value is used, the legacy `require_ssl` flag must be - // false or cleared to avoid the conflict between values of two flags. - // "ENCRYPTED_ONLY" - Only allow connections encrypted with SSL/TLS. When - // this value is used, the legacy `require_ssl` flag must be false or cleared - // to avoid the conflict between values of two flags. + // connections. For SSL connections to MySQL and PostgreSQL, the client + // certificate isn't verified. When this value is used, the legacy + // `require_ssl` flag must be false or cleared to avoid a conflict between the + // values of the two flags. + // "ENCRYPTED_ONLY" - Only allow connections encrypted with SSL/TLS. For SSL + // connections to MySQL and PostgreSQL, the client certificate isn't verified. + // When this value is used, the legacy `require_ssl` flag must be false or + // cleared to avoid a conflict between the values of the two flags. // "TRUSTED_CLIENT_CERTIFICATE_REQUIRED" - Only allow connections encrypted // with SSL/TLS and with valid client certificates. When this value is used, // the legacy `require_ssl` flag must be true or cleared to avoid the conflict @@ -2610,7 +2619,8 @@ type IpConfiguration struct { // Proxy](https://cloud.google.com/sql/docs/postgres/connect-auth-proxy) or // [Cloud SQL // Connectors](https://cloud.google.com/sql/docs/postgres/connect-connectors) - // to enforce client identity verification. + // to enforce client identity verification. Only applicable to MySQL and + // PostgreSQL. Not applicable to SQL Server. SslMode string `json:"sslMode,omitempty"` // ForceSendFields is a list of field names (e.g. "AllocatedIpRange") to // unconditionally include in API requests. By default, fields with empty or @@ -3282,17 +3292,21 @@ func (s *ReplicaConfiguration) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } -// ReplicationCluster: Primary-DR replica pair +// ReplicationCluster: A primary instance and disaster recovery (DR) replica +// pair. A DR replica is a cross-region replica that you designate for failover +// in the event that the primary instance experiences regional failure. Only +// applicable to MySQL. type ReplicationCluster struct { - // DrReplica: Output only. read-only field that indicates if the replica is a - // dr_replica; not set for a primary. + // DrReplica: Output only. Read-only field that indicates whether the replica + // is a DR replica. This field is not set if the instance is a primary + // instance. DrReplica bool `json:"drReplica,omitempty"` // FailoverDrReplicaName: Optional. If the instance is a primary instance, then // this field identifies the disaster recovery (DR) replica. A DR replica is an // optional configuration for Enterprise Plus edition instances. If the - // instance is a read replica, then the field is not set. Users can set this - // field to set a designated DR replica for a primary. Removing this field - // removes the DR replica. + // instance is a read replica, then the field is not set. Set this field to a + // replica name to designate a DR replica for a primary instance. Remove the + // replica name to remove the DR replica designation. FailoverDrReplicaName string `json:"failoverDrReplicaName,omitempty"` // ForceSendFields is a list of field names (e.g. "DrReplica") to // unconditionally include in API requests. By default, fields with empty or @@ -3865,13 +3879,16 @@ type SqlInstancesResetReplicaSizeRequest struct { // SqlInstancesStartExternalSyncRequest: Instance start external sync request. type SqlInstancesStartExternalSyncRequest struct { - // MigrationType: Optional. MigrationType decides if the migration is a - // physical file based migration or logical migration. + // MigrationType: Optional. MigrationType configures the migration to use + // physical files or logical dump files. If not set, then the logical dump file + // configuration is used. Valid values are `LOGICAL` or `PHYSICAL`. Only + // applicable to MySQL. // // Possible values: - // "MIGRATION_TYPE_UNSPECIFIED" - Default value is logical migration - // "LOGICAL" - Logical Migrations - // "PHYSICAL" - Physical file based Migrations + // "MIGRATION_TYPE_UNSPECIFIED" - Default value is a logical dump file-based + // migration + // "LOGICAL" - Logical dump file-based migration + // "PHYSICAL" - Physical file-based migration MigrationType string `json:"migrationType,omitempty"` // MysqlSyncConfig: MySQL-specific settings for start external sync. MysqlSyncConfig *MySqlSyncConfig `json:"mysqlSyncConfig,omitempty"` @@ -3918,13 +3935,16 @@ func (s *SqlInstancesStartExternalSyncRequest) MarshalJSON() ([]byte, error) { // SqlInstancesVerifyExternalSyncSettingsRequest: Instance verify external sync // settings request. type SqlInstancesVerifyExternalSyncSettingsRequest struct { - // MigrationType: Optional. MigrationType decides if the migration is a - // physical file based migration or logical migration + // MigrationType: Optional. MigrationType configures the migration to use + // physical files or logical dump files. If not set, then the logical dump file + // configuration is used. Valid values are `LOGICAL` or `PHYSICAL`. Only + // applicable to MySQL. // // Possible values: - // "MIGRATION_TYPE_UNSPECIFIED" - Default value is logical migration - // "LOGICAL" - Logical Migrations - // "PHYSICAL" - Physical file based Migrations + // "MIGRATION_TYPE_UNSPECIFIED" - Default value is a logical dump file-based + // migration + // "LOGICAL" - Logical dump file-based migration + // "PHYSICAL" - Physical file-based migration MigrationType string `json:"migrationType,omitempty"` // MysqlSyncConfig: Optional. MySQL-specific settings for start external sync. MysqlSyncConfig *MySqlSyncConfig `json:"mysqlSyncConfig,omitempty"` @@ -3938,8 +3958,8 @@ type SqlInstancesVerifyExternalSyncSettingsRequest struct { // "OFFLINE" - Offline external sync only dumps and loads a one-time snapshot // of the primary instance's data SyncMode string `json:"syncMode,omitempty"` - // SyncParallelLevel: Optional. Parallel level for initial data sync. Currently - // only applicable for PostgreSQL. + // SyncParallelLevel: Optional. Parallel level for initial data sync. Only + // applicable for PostgreSQL. // // Possible values: // "EXTERNAL_SYNC_PARALLEL_LEVEL_UNSPECIFIED" - Unknown sync parallel level. @@ -7598,8 +7618,9 @@ type InstancesPromoteReplicaCall struct { header_ http.Header } -// PromoteReplica: Promotes the read replica instance to be a stand-alone Cloud -// SQL instance. Using this operation might cause your instance to restart. +// PromoteReplica: Promotes the read replica instance to be an independent +// Cloud SQL primary instance. Using this operation might cause your instance +// to restart. // // - instance: Cloud SQL read replica instance name. // - project: ID of the project that contains the read replica. @@ -7610,10 +7631,13 @@ func (r *InstancesService) PromoteReplica(project string, instance string) *Inst return c } -// Failover sets the optional parameter "failover": Set to true if the promote -// operation should attempt to re-add the original primary as a replica when it -// comes back online. Otherwise, if this value is false or not set, the -// original primary will be a standalone instance. +// Failover sets the optional parameter "failover": Set to true to invoke a +// replica failover to the designated DR replica. As part of replica failover, +// the promote operation attempts to add the original primary instance as a +// replica of the promoted DR replica when the original primary instance comes +// back online. If set to false or not specified, then the original primary +// instance becomes an independent Cloud SQL primary instance. Only applicable +// to MySQL. func (c *InstancesPromoteReplicaCall) Failover(failover bool) *InstancesPromoteReplicaCall { c.urlParams_.Set("failover", fmt.Sprint(failover)) return c @@ -8527,7 +8551,8 @@ type InstancesSwitchoverCall struct { header_ http.Header } -// Switchover: Switches over from the primary instance to the replica instance. +// Switchover: Switches over from the primary instance to the designated DR +// replica instance. // // - instance: Cloud SQL read replica instance name. // - project: ID of the project that contains the replica. diff --git a/sqladmin/v1beta4/sqladmin-api.json b/sqladmin/v1beta4/sqladmin-api.json index c3e27ccffb1..12fc8bf5eec 100644 --- a/sqladmin/v1beta4/sqladmin-api.json +++ b/sqladmin/v1beta4/sqladmin-api.json @@ -1084,7 +1084,7 @@ ] }, "promoteReplica": { - "description": "Promotes the read replica instance to be a stand-alone Cloud SQL instance. Using this operation might cause your instance to restart.", + "description": "Promotes the read replica instance to be an independent Cloud SQL primary instance. Using this operation might cause your instance to restart.", "flatPath": "sql/v1beta4/projects/{project}/instances/{instance}/promoteReplica", "httpMethod": "POST", "id": "sql.instances.promoteReplica", @@ -1094,7 +1094,7 @@ ], "parameters": { "failover": { - "description": "Set to true if the promote operation should attempt to re-add the original primary as a replica when it comes back online. Otherwise, if this value is false or not set, the original primary will be a standalone instance.", + "description": "Set to true to invoke a replica failover to the designated DR replica. As part of replica failover, the promote operation attempts to add the original primary instance as a replica of the promoted DR replica when the original primary instance comes back online. If set to false or not specified, then the original primary instance becomes an independent Cloud SQL primary instance. Only applicable to MySQL.", "location": "query", "type": "boolean" }, @@ -1386,7 +1386,7 @@ ] }, "switchover": { - "description": "Switches over from the primary instance to a replica instance.", + "description": "Switches over from the primary instance to the designated DR replica instance.", "flatPath": "sql/v1beta4/projects/{project}/instances/{instance}/switchover", "httpMethod": "POST", "id": "sql.instances.switchover", @@ -2267,7 +2267,7 @@ } } }, - "revision": "20240324", + "revision": "20240425", "rootUrl": "https://sqladmin.googleapis.com/", "schemas": { "AclEntry": { @@ -2415,10 +2415,10 @@ ], "enumDescriptions": [ "Unspecified.", - "The transaction logs for the instance are stored on a data disk.", - "The transaction logs for the instance are switching from being stored on a data disk to being stored in Cloud Storage.", - "The transaction logs for the instance are now stored in Cloud Storage. Previously, they were stored on a data disk.", - "The transaction logs for the instance are stored in Cloud Storage." + "The transaction logs used for PITR for the instance are stored on a data disk.", + "The transaction logs used for PITR for the instance are switching from being stored on a data disk to being stored in Cloud Storage. Only applicable to MySQL.", + "The transaction logs used for PITR for the instance are now stored in Cloud Storage. Previously, they were stored on a data disk. Only applicable to MySQL.", + "The transaction logs used for PITR for the instance are stored in Cloud Storage. Only applicable to MySQL and PostgreSQL." ], "readOnly": true, "type": "string" @@ -3276,7 +3276,7 @@ }, "replicationCluster": { "$ref": "ReplicationCluster", - "description": "The pair of a primary instance and disaster recovery (DR) replica. A DR replica is a cross-region replica that you designate for failover in the event that the primary instance has regional failure." + "description": "A primary instance and disaster recovery (DR) replica pair. A DR replica is a cross-region replica that you designate for failover in the event that the primary instance experiences regional failure. Only applicable to MySQL." }, "rootPassword": { "description": "Initial root password. Use only on creation. You must set root passwords before you can connect to PostgreSQL instances.", @@ -3936,11 +3936,11 @@ "type": "object" }, "GeminiInstanceConfig": { - "description": "Gemini configuration.", + "description": "Gemini instance configuration.", "id": "GeminiInstanceConfig", "properties": { "activeQueryEnabled": { - "description": "Output only. Whether active query is enabled.", + "description": "Output only. Whether the active query is enabled.", "readOnly": true, "type": "boolean" }, @@ -3950,22 +3950,22 @@ "type": "boolean" }, "flagRecommenderEnabled": { - "description": "Output only. Whether flag recommender is enabled.", + "description": "Output only. Whether the flag recommender is enabled.", "readOnly": true, "type": "boolean" }, "googleVacuumMgmtEnabled": { - "description": "Output only. Whether vacuum management is enabled.", + "description": "Output only. Whether the vacuum management is enabled.", "readOnly": true, "type": "boolean" }, "indexAdvisorEnabled": { - "description": "Output only. Whether index advisor is enabled.", + "description": "Output only. Whether the index advisor is enabled.", "readOnly": true, "type": "boolean" }, "oomSessionCancelEnabled": { - "description": "Output only. Whether oom session cancel is enabled.", + "description": "Output only. Whether canceling the out-of-memory (OOM) session is enabled.", "readOnly": true, "type": "boolean" } @@ -4410,7 +4410,7 @@ "type": "boolean" }, "sslMode": { - "description": "Specify how SSL/TLS is enforced in database connections. If you must use the `require_ssl` flag for backward compatibility, then only the following value pairs are valid: For PostgreSQL and MySQL: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false` * `ssl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIRED` and `require_ssl=true` For SQL Server: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=true` The value of `ssl_mode` gets priority over the value of `require_ssl`. For example, for the pair `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false`, the `ssl_mode=ENCRYPTED_ONLY` means only accept SSL connections, while the `require_ssl=false` means accept both non-SSL and SSL connections. MySQL and PostgreSQL databases respect `ssl_mode` in this case and accept only SSL connections.", + "description": "Specify how SSL/TLS is enforced in database connections. If you must use the `require_ssl` flag for backward compatibility, then only the following value pairs are valid: For PostgreSQL and MySQL: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false` * `ssl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIRED` and `require_ssl=true` For SQL Server: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=true` The value of `ssl_mode` has priority over the value of `require_ssl`. For example, for the pair `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false`, `ssl_mode=ENCRYPTED_ONLY` means accept only SSL connections, while `require_ssl=false` means accept both non-SSL and SSL connections. In this case, MySQL and PostgreSQL databases respect `ssl_mode` and accepts only SSL connections.", "enum": [ "SSL_MODE_UNSPECIFIED", "ALLOW_UNENCRYPTED_AND_ENCRYPTED", @@ -4419,9 +4419,9 @@ ], "enumDescriptions": [ "The SSL mode is unknown.", - "Allow non-SSL/non-TLS and SSL/TLS connections. For SSL/TLS connections, the client certificate won't be verified. When this value is used, the legacy `require_ssl` flag must be false or cleared to avoid the conflict between values of two flags.", - "Only allow connections encrypted with SSL/TLS. When this value is used, the legacy `require_ssl` flag must be false or cleared to avoid the conflict between values of two flags.", - "Only allow connections encrypted with SSL/TLS and with valid client certificates. When this value is used, the legacy `require_ssl` flag must be true or cleared to avoid the conflict between values of two flags. PostgreSQL clients or users that connect using IAM database authentication must use either the [Cloud SQL Auth Proxy](https://cloud.google.com/sql/docs/postgres/connect-auth-proxy) or [Cloud SQL Connectors](https://cloud.google.com/sql/docs/postgres/connect-connectors) to enforce client identity verification. This value is not applicable to SQL Server." + "Allow non-SSL/non-TLS and SSL/TLS connections. For SSL connections to MySQL and PostgreSQL, the client certificate isn't verified. When this value is used, the legacy `require_ssl` flag must be false or cleared to avoid a conflict between the values of the two flags.", + "Only allow connections encrypted with SSL/TLS. For SSL connections to MySQL and PostgreSQL, the client certificate isn't verified. When this value is used, the legacy `require_ssl` flag must be false or cleared to avoid a conflict between the values of the two flags.", + "Only allow connections encrypted with SSL/TLS and with valid client certificates. When this value is used, the legacy `require_ssl` flag must be true or cleared to avoid the conflict between values of two flags. PostgreSQL clients or users that connect using IAM database authentication must use either the [Cloud SQL Auth Proxy](https://cloud.google.com/sql/docs/postgres/connect-auth-proxy) or [Cloud SQL Connectors](https://cloud.google.com/sql/docs/postgres/connect-connectors) to enforce client identity verification. Only applicable to MySQL and PostgreSQL. Not applicable to SQL Server." ], "type": "string" } @@ -5078,16 +5078,16 @@ "type": "object" }, "ReplicationCluster": { - "description": "Primary-DR replica pair", + "description": "A primary instance and disaster recovery (DR) replica pair. A DR replica is a cross-region replica that you designate for failover in the event that the primary instance has regional failure. Only applicable to MySQL.", "id": "ReplicationCluster", "properties": { "drReplica": { - "description": "Output only. read-only field that indicates if the replica is a dr_replica; not set for a primary.", + "description": "Output only. Read-only field that indicates whether the replica is a DR replica. This field is not set if the instance is a primary instance.", "readOnly": true, "type": "boolean" }, "failoverDrReplicaName": { - "description": "Optional. If the instance is a primary instance, then this field identifies the disaster recovery (DR) replica. A DR replica is an optional configuration for Enterprise Plus edition instances. If the instance is a read replica, then the field is not set. Users can set this field to set a designated DR replica for a primary. Removing this field removes the DR replica.", + "description": "Optional. If the instance is a primary instance, then this field identifies the disaster recovery (DR) replica. A DR replica is an optional configuration for Enterprise Plus edition instances. If the instance is a read replica, then the field is not set. Set this field to a replica name to designate a DR replica for a primary instance. Remove the replica name to remove the DR replica designation.", "type": "string" } }, @@ -5609,16 +5609,16 @@ "id": "SqlInstancesStartExternalSyncRequest", "properties": { "migrationType": { - "description": "Optional. MigrationType decides if the migration is a physical file based migration or logical migration.", + "description": "Optional. MigrationType configures the migration to use physical files or logical dump files. If not set, then the logical dump file configuration is used. Valid values are `LOGICAL` or `PHYSICAL`. Only applicable to MySQL.", "enum": [ "MIGRATION_TYPE_UNSPECIFIED", "LOGICAL", "PHYSICAL" ], "enumDescriptions": [ - "If no migration type is specified it will be defaulted to LOGICAL.", - "Logical Migrations", - "Physical file based Migrations" + "Default value is a logical dump file-based migration", + "Logical dump file-based migration", + "Physical file-based migration" ], "type": "string" }, @@ -5667,16 +5667,16 @@ "id": "SqlInstancesVerifyExternalSyncSettingsRequest", "properties": { "migrationType": { - "description": "Optional. MigrationType field decides if the migration is a physical file based migration or logical migration", + "description": "Optional. MigrationType configures the migration to use physical files or logical dump files. If not set, then the logical dump file configuration is used. Valid values are `LOGICAL` or `PHYSICAL`. Only applicable to MySQL.", "enum": [ "MIGRATION_TYPE_UNSPECIFIED", "LOGICAL", "PHYSICAL" ], "enumDescriptions": [ - "If no migration type is specified it will be defaulted to LOGICAL.", - "Logical Migrations", - "Physical file based Migrations" + "Default value is a logical dump file-based migration", + "Logical dump file-based migration", + "Physical file-based migration" ], "type": "string" }, @@ -5699,7 +5699,7 @@ "type": "string" }, "syncParallelLevel": { - "description": "Optional. Parallel level for initial data sync. Currently only applicable for PostgreSQL.", + "description": "Optional. Parallel level for initial data sync. Only applicable for PostgreSQL.", "enum": [ "EXTERNAL_SYNC_PARALLEL_LEVEL_UNSPECIFIED", "MIN", diff --git a/sqladmin/v1beta4/sqladmin-gen.go b/sqladmin/v1beta4/sqladmin-gen.go index 4a566d297cd..50d1d695d01 100644 --- a/sqladmin/v1beta4/sqladmin-gen.go +++ b/sqladmin/v1beta4/sqladmin-gen.go @@ -443,13 +443,16 @@ type BackupConfiguration struct { // // Possible values: // "TRANSACTIONAL_LOG_STORAGE_STATE_UNSPECIFIED" - Unspecified. - // "DISK" - The transaction logs for the instance are stored on a data disk. - // "SWITCHING_TO_CLOUD_STORAGE" - The transaction logs for the instance are - // switching from being stored on a data disk to being stored in Cloud Storage. - // "SWITCHED_TO_CLOUD_STORAGE" - The transaction logs for the instance are - // now stored in Cloud Storage. Previously, they were stored on a data disk. - // "CLOUD_STORAGE" - The transaction logs for the instance are stored in - // Cloud Storage. + // "DISK" - The transaction logs used for PITR for the instance are stored on + // a data disk. + // "SWITCHING_TO_CLOUD_STORAGE" - The transaction logs used for PITR for the + // instance are switching from being stored on a data disk to being stored in + // Cloud Storage. Only applicable to MySQL. + // "SWITCHED_TO_CLOUD_STORAGE" - The transaction logs used for PITR for the + // instance are now stored in Cloud Storage. Previously, they were stored on a + // data disk. Only applicable to MySQL. + // "CLOUD_STORAGE" - The transaction logs used for PITR for the instance are + // stored in Cloud Storage. Only applicable to MySQL and PostgreSQL. TransactionalLogStorageState string `json:"transactionalLogStorageState,omitempty"` // ForceSendFields is a list of field names (e.g. "BackupRetentionSettings") to // unconditionally include in API requests. By default, fields with empty or @@ -1156,9 +1159,10 @@ type DatabaseInstance struct { ReplicaConfiguration *ReplicaConfiguration `json:"replicaConfiguration,omitempty"` // ReplicaNames: The replicas of the instance. ReplicaNames []string `json:"replicaNames,omitempty"` - // ReplicationCluster: The pair of a primary instance and disaster recovery - // (DR) replica. A DR replica is a cross-region replica that you designate for - // failover in the event that the primary instance has regional failure. + // ReplicationCluster: A primary instance and disaster recovery (DR) replica + // pair. A DR replica is a cross-region replica that you designate for failover + // in the event that the primary instance experiences regional failure. Only + // applicable to MySQL. ReplicationCluster *ReplicationCluster `json:"replicationCluster,omitempty"` // RootPassword: Initial root password. Use only on creation. You must set root // passwords before you can connect to PostgreSQL instances. @@ -1896,19 +1900,22 @@ func (s *FlagsListResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } -// GeminiInstanceConfig: Gemini configuration. +// GeminiInstanceConfig: Gemini instance configuration. type GeminiInstanceConfig struct { - // ActiveQueryEnabled: Output only. Whether active query is enabled. + // ActiveQueryEnabled: Output only. Whether the active query is enabled. ActiveQueryEnabled bool `json:"activeQueryEnabled,omitempty"` // Entitled: Output only. Whether Gemini is enabled. Entitled bool `json:"entitled,omitempty"` - // FlagRecommenderEnabled: Output only. Whether flag recommender is enabled. + // FlagRecommenderEnabled: Output only. Whether the flag recommender is + // enabled. FlagRecommenderEnabled bool `json:"flagRecommenderEnabled,omitempty"` - // GoogleVacuumMgmtEnabled: Output only. Whether vacuum management is enabled. + // GoogleVacuumMgmtEnabled: Output only. Whether the vacuum management is + // enabled. GoogleVacuumMgmtEnabled bool `json:"googleVacuumMgmtEnabled,omitempty"` - // IndexAdvisorEnabled: Output only. Whether index advisor is enabled. + // IndexAdvisorEnabled: Output only. Whether the index advisor is enabled. IndexAdvisorEnabled bool `json:"indexAdvisorEnabled,omitempty"` - // OomSessionCancelEnabled: Output only. Whether oom session cancel is enabled. + // OomSessionCancelEnabled: Output only. Whether canceling the out-of-memory + // (OOM) session is enabled. OomSessionCancelEnabled bool `json:"oomSessionCancelEnabled,omitempty"` // ForceSendFields is a list of field names (e.g. "ActiveQueryEnabled") to // unconditionally include in API requests. By default, fields with empty or @@ -2591,22 +2598,24 @@ type IpConfiguration struct { // `ssl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIRED` and `require_ssl=true` For // SQL Server: * `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and // `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=true` The - // value of `ssl_mode` gets priority over the value of `require_ssl`. For - // example, for the pair `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false`, the - // `ssl_mode=ENCRYPTED_ONLY` means only accept SSL connections, while the - // `require_ssl=false` means accept both non-SSL and SSL connections. MySQL and - // PostgreSQL databases respect `ssl_mode` in this case and accept only SSL + // value of `ssl_mode` has priority over the value of `require_ssl`. For + // example, for the pair `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false`, + // `ssl_mode=ENCRYPTED_ONLY` means accept only SSL connections, while + // `require_ssl=false` means accept both non-SSL and SSL connections. In this + // case, MySQL and PostgreSQL databases respect `ssl_mode` and accepts only SSL // connections. // // Possible values: // "SSL_MODE_UNSPECIFIED" - The SSL mode is unknown. // "ALLOW_UNENCRYPTED_AND_ENCRYPTED" - Allow non-SSL/non-TLS and SSL/TLS - // connections. For SSL/TLS connections, the client certificate won't be - // verified. When this value is used, the legacy `require_ssl` flag must be - // false or cleared to avoid the conflict between values of two flags. - // "ENCRYPTED_ONLY" - Only allow connections encrypted with SSL/TLS. When - // this value is used, the legacy `require_ssl` flag must be false or cleared - // to avoid the conflict between values of two flags. + // connections. For SSL connections to MySQL and PostgreSQL, the client + // certificate isn't verified. When this value is used, the legacy + // `require_ssl` flag must be false or cleared to avoid a conflict between the + // values of the two flags. + // "ENCRYPTED_ONLY" - Only allow connections encrypted with SSL/TLS. For SSL + // connections to MySQL and PostgreSQL, the client certificate isn't verified. + // When this value is used, the legacy `require_ssl` flag must be false or + // cleared to avoid a conflict between the values of the two flags. // "TRUSTED_CLIENT_CERTIFICATE_REQUIRED" - Only allow connections encrypted // with SSL/TLS and with valid client certificates. When this value is used, // the legacy `require_ssl` flag must be true or cleared to avoid the conflict @@ -2615,8 +2624,8 @@ type IpConfiguration struct { // Proxy](https://cloud.google.com/sql/docs/postgres/connect-auth-proxy) or // [Cloud SQL // Connectors](https://cloud.google.com/sql/docs/postgres/connect-connectors) - // to enforce client identity verification. This value is not applicable to SQL - // Server. + // to enforce client identity verification. Only applicable to MySQL and + // PostgreSQL. Not applicable to SQL Server. SslMode string `json:"sslMode,omitempty"` // ForceSendFields is a list of field names (e.g. "AllocatedIpRange") to // unconditionally include in API requests. By default, fields with empty or @@ -3288,17 +3297,21 @@ func (s *ReplicaConfiguration) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } -// ReplicationCluster: Primary-DR replica pair +// ReplicationCluster: A primary instance and disaster recovery (DR) replica +// pair. A DR replica is a cross-region replica that you designate for failover +// in the event that the primary instance has regional failure. Only applicable +// to MySQL. type ReplicationCluster struct { - // DrReplica: Output only. read-only field that indicates if the replica is a - // dr_replica; not set for a primary. + // DrReplica: Output only. Read-only field that indicates whether the replica + // is a DR replica. This field is not set if the instance is a primary + // instance. DrReplica bool `json:"drReplica,omitempty"` // FailoverDrReplicaName: Optional. If the instance is a primary instance, then // this field identifies the disaster recovery (DR) replica. A DR replica is an // optional configuration for Enterprise Plus edition instances. If the - // instance is a read replica, then the field is not set. Users can set this - // field to set a designated DR replica for a primary. Removing this field - // removes the DR replica. + // instance is a read replica, then the field is not set. Set this field to a + // replica name to designate a DR replica for a primary instance. Remove the + // replica name to remove the DR replica designation. FailoverDrReplicaName string `json:"failoverDrReplicaName,omitempty"` // ForceSendFields is a list of field names (e.g. "DrReplica") to // unconditionally include in API requests. By default, fields with empty or @@ -3869,14 +3882,16 @@ type SqlInstancesResetReplicaSizeRequest struct { } type SqlInstancesStartExternalSyncRequest struct { - // MigrationType: Optional. MigrationType decides if the migration is a - // physical file based migration or logical migration. + // MigrationType: Optional. MigrationType configures the migration to use + // physical files or logical dump files. If not set, then the logical dump file + // configuration is used. Valid values are `LOGICAL` or `PHYSICAL`. Only + // applicable to MySQL. // // Possible values: - // "MIGRATION_TYPE_UNSPECIFIED" - If no migration type is specified it will - // be defaulted to LOGICAL. - // "LOGICAL" - Logical Migrations - // "PHYSICAL" - Physical file based Migrations + // "MIGRATION_TYPE_UNSPECIFIED" - Default value is a logical dump file-based + // migration + // "LOGICAL" - Logical dump file-based migration + // "PHYSICAL" - Physical file-based migration MigrationType string `json:"migrationType,omitempty"` // MysqlSyncConfig: MySQL-specific settings for start external sync. MysqlSyncConfig *MySqlSyncConfig `json:"mysqlSyncConfig,omitempty"` @@ -3921,14 +3936,16 @@ func (s *SqlInstancesStartExternalSyncRequest) MarshalJSON() ([]byte, error) { } type SqlInstancesVerifyExternalSyncSettingsRequest struct { - // MigrationType: Optional. MigrationType field decides if the migration is a - // physical file based migration or logical migration + // MigrationType: Optional. MigrationType configures the migration to use + // physical files or logical dump files. If not set, then the logical dump file + // configuration is used. Valid values are `LOGICAL` or `PHYSICAL`. Only + // applicable to MySQL. // // Possible values: - // "MIGRATION_TYPE_UNSPECIFIED" - If no migration type is specified it will - // be defaulted to LOGICAL. - // "LOGICAL" - Logical Migrations - // "PHYSICAL" - Physical file based Migrations + // "MIGRATION_TYPE_UNSPECIFIED" - Default value is a logical dump file-based + // migration + // "LOGICAL" - Logical dump file-based migration + // "PHYSICAL" - Physical file-based migration MigrationType string `json:"migrationType,omitempty"` // MysqlSyncConfig: Optional. MySQL-specific settings for start external sync. MysqlSyncConfig *MySqlSyncConfig `json:"mysqlSyncConfig,omitempty"` @@ -3942,8 +3959,8 @@ type SqlInstancesVerifyExternalSyncSettingsRequest struct { // "OFFLINE" - Offline external sync only dumps and loads a one-time snapshot // of the primary instance's data SyncMode string `json:"syncMode,omitempty"` - // SyncParallelLevel: Optional. Parallel level for initial data sync. Currently - // only applicable for PostgreSQL. + // SyncParallelLevel: Optional. Parallel level for initial data sync. Only + // applicable for PostgreSQL. // // Possible values: // "EXTERNAL_SYNC_PARALLEL_LEVEL_UNSPECIFIED" - Unknown sync parallel level. @@ -7602,8 +7619,9 @@ type InstancesPromoteReplicaCall struct { header_ http.Header } -// PromoteReplica: Promotes the read replica instance to be a stand-alone Cloud -// SQL instance. Using this operation might cause your instance to restart. +// PromoteReplica: Promotes the read replica instance to be an independent +// Cloud SQL primary instance. Using this operation might cause your instance +// to restart. // // - instance: Cloud SQL read replica instance name. // - project: ID of the project that contains the read replica. @@ -7614,10 +7632,13 @@ func (r *InstancesService) PromoteReplica(project string, instance string) *Inst return c } -// Failover sets the optional parameter "failover": Set to true if the promote -// operation should attempt to re-add the original primary as a replica when it -// comes back online. Otherwise, if this value is false or not set, the -// original primary will be a standalone instance. +// Failover sets the optional parameter "failover": Set to true to invoke a +// replica failover to the designated DR replica. As part of replica failover, +// the promote operation attempts to add the original primary instance as a +// replica of the promoted DR replica when the original primary instance comes +// back online. If set to false or not specified, then the original primary +// instance becomes an independent Cloud SQL primary instance. Only applicable +// to MySQL. func (c *InstancesPromoteReplicaCall) Failover(failover bool) *InstancesPromoteReplicaCall { c.urlParams_.Set("failover", fmt.Sprint(failover)) return c @@ -8532,7 +8553,8 @@ type InstancesSwitchoverCall struct { header_ http.Header } -// Switchover: Switches over from the primary instance to a replica instance. +// Switchover: Switches over from the primary instance to the designated DR +// replica instance. // // - instance: Cloud SQL read replica instance name. // - project: ID of the project that contains the replica. diff --git a/storagetransfer/v1/storagetransfer-api.json b/storagetransfer/v1/storagetransfer-api.json index 0e60ec996d6..390f8ab6dab 100644 --- a/storagetransfer/v1/storagetransfer-api.json +++ b/storagetransfer/v1/storagetransfer-api.json @@ -632,7 +632,7 @@ } } }, - "revision": "20240427", + "revision": "20240429", "rootUrl": "https://storagetransfer.googleapis.com/", "schemas": { "AgentPool": { @@ -733,10 +733,6 @@ "description": "Optional. The Resource name of a secret in Secret Manager. AWS credentials must be stored in Secret Manager in JSON format: { \"access_key_id\": \"ACCESS_KEY_ID\", \"secret_access_key\": \"SECRET_ACCESS_KEY\" } GoogleServiceAccount must be granted `roles/secretmanager.secretAccessor` for the resource. See [Configure access to a source: Amazon S3] (https://cloud.google.com/storage-transfer/docs/source-amazon-s3#secret_manager) for more information. If `credentials_secret` is specified, do not specify role_arn or aws_access_key. Format: `projects/{project_number}/secrets/{secret_name}`", "type": "string" }, - "managedPrivateNetwork": { - "description": "Egress bytes over a Google-managed private network. This network is shared between other users of Storage Transfer Service.", - "type": "boolean" - }, "path": { "description": "Root path to transfer objects. Must be an empty string or full path name that ends with a '/'. This field is treated as an object prefix. As such, it should generally not begin with a '/'.", "type": "string" diff --git a/storagetransfer/v1/storagetransfer-gen.go b/storagetransfer/v1/storagetransfer-gen.go index 5071bdd8d1c..2d3c2b3ed69 100644 --- a/storagetransfer/v1/storagetransfer-gen.go +++ b/storagetransfer/v1/storagetransfer-gen.go @@ -344,9 +344,6 @@ type AwsS3Data struct { // role_arn or aws_access_key. Format: // `projects/{project_number}/secrets/{secret_name}` CredentialsSecret string `json:"credentialsSecret,omitempty"` - // ManagedPrivateNetwork: Egress bytes over a Google-managed private network. - // This network is shared between other users of Storage Transfer Service. - ManagedPrivateNetwork bool `json:"managedPrivateNetwork,omitempty"` // Path: Root path to transfer objects. Must be an empty string or full path // name that ends with a '/'. This field is treated as an object prefix. As // such, it should generally not begin with a '/'. diff --git a/sts/v1/sts-api.json b/sts/v1/sts-api.json index de96ad41df9..6e0d8608606 100644 --- a/sts/v1/sts-api.json +++ b/sts/v1/sts-api.json @@ -116,7 +116,7 @@ } } }, - "revision": "20240410", + "revision": "20240425", "rootUrl": "https://sts.googleapis.com/", "schemas": { "GoogleIamV1Binding": { @@ -244,13 +244,6 @@ "$ref": "GoogleIdentityStsV1AccessBoundary", "description": "An access boundary that defines the upper bound of permissions the credential may have. The value should be a JSON object of AccessBoundary. The access boundary can include up to 10 rules. The size of the parameter value should not exceed 2048 characters." }, - "audiences": { - "description": "The intended audience(s) of the credential. The audience value(s) should be the name(s) of services intended to receive the credential. Example: `[\"https://pubsub.googleapis.com/\", \"https://storage.googleapis.com/\"]`. A maximum of 5 audiences can be included. For each provided audience, the maximum length is 262 characters.", - "items": { - "type": "string" - }, - "type": "array" - }, "userProject": { "description": "A Google project used for quota and billing purposes when the credential is used to access Google APIs. The provided project overrides the project bound to the credential. The value must be a project number or a project ID. Example: `my-sample-project-191923`. The maximum length is 32 characters.", "type": "string" @@ -302,13 +295,6 @@ "$ref": "GoogleIdentityStsV1betaAccessBoundary", "description": "An access boundary that defines the upper bound of permissions the credential may have. The value should be a JSON object of AccessBoundary. The access boundary can include up to 10 rules. The size of the parameter value should not exceed 2048 characters." }, - "audiences": { - "description": "The intended audience(s) of the credential. The audience value(s) should be the name(s) of services intended to receive the credential. Example: `[\"https://pubsub.googleapis.com/\", \"https://storage.googleapis.com/\"]`. A maximum of 5 audiences can be included. For each provided audience, the maximum length is 262 characters.", - "items": { - "type": "string" - }, - "type": "array" - }, "userProject": { "description": "A Google project used for quota and billing purposes when the credential is used to access Google APIs. The provided project overrides the project bound to the credential. The value must be a project number or a project ID. Example: `my-sample-project-191923`. The maximum length is 32 characters.", "type": "string" diff --git a/sts/v1/sts-gen.go b/sts/v1/sts-gen.go index fddd5bae472..15336a427c6 100644 --- a/sts/v1/sts-gen.go +++ b/sts/v1/sts-gen.go @@ -514,12 +514,6 @@ type GoogleIdentityStsV1Options struct { // AccessBoundary. The access boundary can include up to 10 rules. The size of // the parameter value should not exceed 2048 characters. AccessBoundary *GoogleIdentityStsV1AccessBoundary `json:"accessBoundary,omitempty"` - // Audiences: The intended audience(s) of the credential. The audience value(s) - // should be the name(s) of services intended to receive the credential. - // Example: `["https://pubsub.googleapis.com/", - // "https://storage.googleapis.com/"]`. A maximum of 5 audiences can be - // included. For each provided audience, the maximum length is 262 characters. - Audiences []string `json:"audiences,omitempty"` // UserProject: A Google project used for quota and billing purposes when the // credential is used to access Google APIs. The provided project overrides the // project bound to the credential. The value must be a project number or a @@ -628,12 +622,6 @@ type GoogleIdentityStsV1betaOptions struct { // AccessBoundary. The access boundary can include up to 10 rules. The size of // the parameter value should not exceed 2048 characters. AccessBoundary *GoogleIdentityStsV1betaAccessBoundary `json:"accessBoundary,omitempty"` - // Audiences: The intended audience(s) of the credential. The audience value(s) - // should be the name(s) of services intended to receive the credential. - // Example: `["https://pubsub.googleapis.com/", - // "https://storage.googleapis.com/"]`. A maximum of 5 audiences can be - // included. For each provided audience, the maximum length is 262 characters. - Audiences []string `json:"audiences,omitempty"` // UserProject: A Google project used for quota and billing purposes when the // credential is used to access Google APIs. The provided project overrides the // project bound to the credential. The value must be a project number or a diff --git a/sts/v1beta/sts-api.json b/sts/v1beta/sts-api.json index bbf0a88bb29..65748877f7d 100644 --- a/sts/v1beta/sts-api.json +++ b/sts/v1beta/sts-api.json @@ -116,7 +116,7 @@ } } }, - "revision": "20240129", + "revision": "20240425", "rootUrl": "https://sts.googleapis.com/", "schemas": { "GoogleIamV1Binding": { @@ -185,13 +185,6 @@ "$ref": "GoogleIdentityStsV1AccessBoundary", "description": "An access boundary that defines the upper bound of permissions the credential may have. The value should be a JSON object of AccessBoundary. The access boundary can include up to 10 rules. The size of the parameter value should not exceed 2048 characters." }, - "audiences": { - "description": "The intended audience(s) of the credential. The audience value(s) should be the name(s) of services intended to receive the credential. Example: `[\"https://pubsub.googleapis.com/\", \"https://storage.googleapis.com/\"]`. A maximum of 5 audiences can be included. For each provided audience, the maximum length is 262 characters.", - "items": { - "type": "string" - }, - "type": "array" - }, "userProject": { "description": "A Google project used for quota and billing purposes when the credential is used to access Google APIs. The provided project overrides the project bound to the credential. The value must be a project number or a project ID. Example: `my-sample-project-191923`. The maximum length is 32 characters.", "type": "string" @@ -302,13 +295,6 @@ "$ref": "GoogleIdentityStsV1betaAccessBoundary", "description": "An access boundary that defines the upper bound of permissions the credential may have. The value should be a JSON object of AccessBoundary. The access boundary can include up to 10 rules. The size of the parameter value should not exceed 2048 characters." }, - "audiences": { - "description": "The intended audience(s) of the credential. The audience value(s) should be the name(s) of services intended to receive the credential. Example: `[\"https://pubsub.googleapis.com/\", \"https://storage.googleapis.com/\"]`. A maximum of 5 audiences can be included. For each provided audience, the maximum length is 262 characters.", - "items": { - "type": "string" - }, - "type": "array" - }, "userProject": { "description": "A Google project used for quota and billing purposes when the credential is used to access Google APIs. The provided project overrides the project bound to the credential. The value must be a project number or a project ID. Example: `my-sample-project-191923`. The maximum length is 32 characters.", "type": "string" diff --git a/sts/v1beta/sts-gen.go b/sts/v1beta/sts-gen.go index a0d21fbe50c..bcb7d59b51a 100644 --- a/sts/v1beta/sts-gen.go +++ b/sts/v1beta/sts-gen.go @@ -335,12 +335,6 @@ type GoogleIdentityStsV1Options struct { // AccessBoundary. The access boundary can include up to 10 rules. The size of // the parameter value should not exceed 2048 characters. AccessBoundary *GoogleIdentityStsV1AccessBoundary `json:"accessBoundary,omitempty"` - // Audiences: The intended audience(s) of the credential. The audience value(s) - // should be the name(s) of services intended to receive the credential. - // Example: `["https://pubsub.googleapis.com/", - // "https://storage.googleapis.com/"]`. A maximum of 5 audiences can be - // included. For each provided audience, the maximum length is 262 characters. - Audiences []string `json:"audiences,omitempty"` // UserProject: A Google project used for quota and billing purposes when the // credential is used to access Google APIs. The provided project overrides the // project bound to the credential. The value must be a project number or a @@ -616,12 +610,6 @@ type GoogleIdentityStsV1betaOptions struct { // AccessBoundary. The access boundary can include up to 10 rules. The size of // the parameter value should not exceed 2048 characters. AccessBoundary *GoogleIdentityStsV1betaAccessBoundary `json:"accessBoundary,omitempty"` - // Audiences: The intended audience(s) of the credential. The audience value(s) - // should be the name(s) of services intended to receive the credential. - // Example: `["https://pubsub.googleapis.com/", - // "https://storage.googleapis.com/"]`. A maximum of 5 audiences can be - // included. For each provided audience, the maximum length is 262 characters. - Audiences []string `json:"audiences,omitempty"` // UserProject: A Google project used for quota and billing purposes when the // credential is used to access Google APIs. The provided project overrides the // project bound to the credential. The value must be a project number or a