diff --git a/alloydb/v1/alloydb-api.json b/alloydb/v1/alloydb-api.json index d446b5f298..9f47479481 100644 --- a/alloydb/v1/alloydb-api.json +++ b/alloydb/v1/alloydb-api.json @@ -144,7 +144,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -1622,7 +1622,7 @@ } } }, - "revision": "20250820", + "revision": "20250904", "rootUrl": "https://alloydb.googleapis.com/", "schemas": { "AuthorizedNetwork": { @@ -4252,7 +4252,7 @@ "type": "object" }, "StorageDatabasecenterPartnerapiV1mainDatabaseResourceFeed": { - "description": "DatabaseResourceFeed is the top level proto to be used to ingest different database resource level events into Condor platform. Next ID: 11", + "description": "DatabaseResourceFeed is the top level proto to be used to ingest different database resource level events into Condor platform. Next ID: 12", "id": "StorageDatabasecenterPartnerapiV1mainDatabaseResourceFeed", "properties": { "backupdrMetadata": { @@ -4263,6 +4263,10 @@ "$ref": "StorageDatabasecenterPartnerapiV1mainConfigBasedSignalData", "description": "Config based signal data is used to ingest signals that are generated based on the configuration of the database resource." }, + "databaseResourceSignalData": { + "$ref": "StorageDatabasecenterPartnerapiV1mainDatabaseResourceSignalData", + "description": "Database resource signal data is used to ingest signals from database resource signal feeds." + }, "feedTimestamp": { "description": "Required. Timestamp when feed is generated.", "format": "google-datetime", @@ -4802,7 +4806,7 @@ "type": "object" }, "StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata": { - "description": "Common model for database resource instance metadata. Next ID: 26", + "description": "Common model for database resource instance metadata. Next ID: 27", "id": "StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata", "properties": { "availabilityConfiguration": { @@ -4855,12 +4859,14 @@ "enum": [ "EDITION_UNSPECIFIED", "EDITION_ENTERPRISE", - "EDITION_ENTERPRISE_PLUS" + "EDITION_ENTERPRISE_PLUS", + "EDITION_STANDARD" ], "enumDescriptions": [ "Default, to make it consistent with instance edition enum.", "Represents the enterprise edition.", - "Represents the enterprise plus edition." + "Represents the enterprise plus edition.", + "Represents the standard edition." ], "type": "string" }, @@ -5005,6 +5011,10 @@ "userLabelSet": { "$ref": "StorageDatabasecenterPartnerapiV1mainUserLabels", "description": "User-provided labels associated with the resource" + }, + "zone": { + "description": "The resource zone. This is only applicable for zonal resources and will be empty for regional and multi-regional resources.", + "type": "string" } }, "type": "object" @@ -5381,6 +5391,67 @@ }, "type": "object" }, + "StorageDatabasecenterPartnerapiV1mainDatabaseResourceSignalData": { + "description": "Database resource signal data. This is used to send signals to Condor which are based on the DB/Instance/Fleet level configurations. These will be used to send signals for all inventory types. Next ID: 7", + "id": "StorageDatabasecenterPartnerapiV1mainDatabaseResourceSignalData", + "properties": { + "fullResourceName": { + "description": "Required. Full Resource name of the source resource.", + "type": "string" + }, + "lastRefreshTime": { + "description": "Required. Last time signal was refreshed", + "format": "google-datetime", + "type": "string" + }, + "resourceId": { + "$ref": "StorageDatabasecenterPartnerapiV1mainDatabaseResourceId", + "description": "Database resource id." + }, + "signalBoolValue": { + "description": "Signal data for boolean signals.", + "type": "boolean" + }, + "signalState": { + "description": "Required. Output only. Signal state of the signal", + "enum": [ + "SIGNAL_STATE_UNSPECIFIED", + "ACTIVE", + "INACTIVE", + "DISMISSED" + ], + "enumDescriptions": [ + "Unspecified signal state.", + "Signal is active and requires attention.", + "Signal is inactive and does not require attention.", + "Signal is dismissed by the user and should not be shown to the user again." + ], + "readOnly": true, + "type": "string" + }, + "signalType": { + "description": "Required. Signal type of the signal", + "enum": [ + "SIGNAL_TYPE_UNSPECIFIED", + "SIGNAL_TYPE_OUTDATED_MINOR_VERSION", + "SIGNAL_TYPE_DATABASE_AUDITING_DISABLED", + "SIGNAL_TYPE_NO_ROOT_PASSWORD", + "SIGNAL_TYPE_EXPOSED_TO_PUBLIC_ACCESS", + "SIGNAL_TYPE_UNENCRYPTED_CONNECTIONS" + ], + "enumDescriptions": [ + "Unspecified signal type.", + "Outdated Minor Version", + "Represents database auditing is disabled.", + "Represents if a database has a password configured for the root account or not.", + "Represents if a resource is exposed to public access.", + "Represents if a resources requires all incoming connections to use SSL or not." + ], + "type": "string" + } + }, + "type": "object" + }, "StorageDatabasecenterPartnerapiV1mainEntitlement": { "description": "Proto representing the access that a user has to a specific feature/service. NextId: 3.", "id": "StorageDatabasecenterPartnerapiV1mainEntitlement", diff --git a/alloydb/v1/alloydb-gen.go b/alloydb/v1/alloydb-gen.go index f7f6d178be..53432b990d 100644 --- a/alloydb/v1/alloydb-gen.go +++ b/alloydb/v1/alloydb-gen.go @@ -3306,7 +3306,7 @@ func (s StorageDatabasecenterPartnerapiV1mainCustomMetadataData) MarshalJSON() ( // StorageDatabasecenterPartnerapiV1mainDatabaseResourceFeed: // DatabaseResourceFeed is the top level proto to be used to ingest different -// database resource level events into Condor platform. Next ID: 11 +// database resource level events into Condor platform. Next ID: 12 type StorageDatabasecenterPartnerapiV1mainDatabaseResourceFeed struct { // BackupdrMetadata: BackupDR metadata is used to ingest metadata from // BackupDR. @@ -3314,6 +3314,9 @@ type StorageDatabasecenterPartnerapiV1mainDatabaseResourceFeed struct { // ConfigBasedSignalData: Config based signal data is used to ingest signals // that are generated based on the configuration of the database resource. ConfigBasedSignalData *StorageDatabasecenterPartnerapiV1mainConfigBasedSignalData `json:"configBasedSignalData,omitempty"` + // DatabaseResourceSignalData: Database resource signal data is used to ingest + // signals from database resource signal feeds. + DatabaseResourceSignalData *StorageDatabasecenterPartnerapiV1mainDatabaseResourceSignalData `json:"databaseResourceSignalData,omitempty"` // FeedTimestamp: Required. Timestamp when feed is generated. FeedTimestamp string `json:"feedTimestamp,omitempty"` // FeedType: Required. Type feed to be ingested into condor @@ -3754,7 +3757,7 @@ func (s StorageDatabasecenterPartnerapiV1mainDatabaseResourceId) MarshalJSON() ( } // StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata: Common model -// for database resource instance metadata. Next ID: 26 +// for database resource instance metadata. Next ID: 27 type StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata struct { // AvailabilityConfiguration: Availability configuration for this instance AvailabilityConfiguration *StorageDatabasecenterPartnerapiV1mainAvailabilityConfiguration `json:"availabilityConfiguration,omitempty"` @@ -3789,6 +3792,7 @@ type StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata struct { // edition enum. // "EDITION_ENTERPRISE" - Represents the enterprise edition. // "EDITION_ENTERPRISE_PLUS" - Represents the enterprise plus edition. + // "EDITION_STANDARD" - Represents the standard edition. Edition string `json:"edition,omitempty"` // Entitlements: Entitlements associated with the resource Entitlements []*StorageDatabasecenterPartnerapiV1mainEntitlement `json:"entitlements,omitempty"` @@ -3871,6 +3875,9 @@ type StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata struct { UpdationTime string `json:"updationTime,omitempty"` // UserLabelSet: User-provided labels associated with the resource UserLabelSet *StorageDatabasecenterPartnerapiV1mainUserLabels `json:"userLabelSet,omitempty"` + // Zone: The resource zone. This is only applicable for zonal resources and + // will be empty for regional and multi-regional resources. + Zone string `json:"zone,omitempty"` // ForceSendFields is a list of field names (e.g. "AvailabilityConfiguration") // to unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -4181,6 +4188,60 @@ func (s StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSigna return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// StorageDatabasecenterPartnerapiV1mainDatabaseResourceSignalData: Database +// resource signal data. This is used to send signals to Condor which are based +// on the DB/Instance/Fleet level configurations. These will be used to send +// signals for all inventory types. Next ID: 7 +type StorageDatabasecenterPartnerapiV1mainDatabaseResourceSignalData struct { + // FullResourceName: Required. Full Resource name of the source resource. + FullResourceName string `json:"fullResourceName,omitempty"` + // LastRefreshTime: Required. Last time signal was refreshed + LastRefreshTime string `json:"lastRefreshTime,omitempty"` + // ResourceId: Database resource id. + ResourceId *StorageDatabasecenterPartnerapiV1mainDatabaseResourceId `json:"resourceId,omitempty"` + // SignalBoolValue: Signal data for boolean signals. + SignalBoolValue bool `json:"signalBoolValue,omitempty"` + // SignalState: Required. Output only. Signal state of the signal + // + // Possible values: + // "SIGNAL_STATE_UNSPECIFIED" - Unspecified signal state. + // "ACTIVE" - Signal is active and requires attention. + // "INACTIVE" - Signal is inactive and does not require attention. + // "DISMISSED" - Signal is dismissed by the user and should not be shown to + // the user again. + SignalState string `json:"signalState,omitempty"` + // SignalType: Required. Signal type of the signal + // + // Possible values: + // "SIGNAL_TYPE_UNSPECIFIED" - Unspecified signal type. + // "SIGNAL_TYPE_OUTDATED_MINOR_VERSION" - Outdated Minor Version + // "SIGNAL_TYPE_DATABASE_AUDITING_DISABLED" - Represents database auditing is + // disabled. + // "SIGNAL_TYPE_NO_ROOT_PASSWORD" - Represents if a database has a password + // configured for the root account or not. + // "SIGNAL_TYPE_EXPOSED_TO_PUBLIC_ACCESS" - Represents if a resource is + // exposed to public access. + // "SIGNAL_TYPE_UNENCRYPTED_CONNECTIONS" - Represents if a resources requires + // all incoming connections to use SSL or not. + SignalType string `json:"signalType,omitempty"` + // ForceSendFields is a list of field names (e.g. "FullResourceName") 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. "FullResourceName") 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 StorageDatabasecenterPartnerapiV1mainDatabaseResourceSignalData) MarshalJSON() ([]byte, error) { + type NoMethod StorageDatabasecenterPartnerapiV1mainDatabaseResourceSignalData + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // StorageDatabasecenterPartnerapiV1mainEntitlement: Proto representing the // access that a user has to a specific feature/service. NextId: 3. type StorageDatabasecenterPartnerapiV1mainEntitlement struct { @@ -5201,9 +5262,9 @@ func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall return c } -// ExtraLocationTypes sets the optional parameter "extraLocationTypes": Do not -// use this field. It is unsupported and is ignored unless explicitly -// documented otherwise. This is primarily for internal usage. +// ExtraLocationTypes sets the optional parameter "extraLocationTypes": Unless +// explicitly documented otherwise, don't use this unsupported field which is +// primarily intended for internal usage. func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall { c.urlParams_.SetMulti("extraLocationTypes", append([]string{}, extraLocationTypes...)) return c diff --git a/alloydb/v1alpha/alloydb-api.json b/alloydb/v1alpha/alloydb-api.json index 7df19a7307..5e57170f6e 100644 --- a/alloydb/v1alpha/alloydb-api.json +++ b/alloydb/v1alpha/alloydb-api.json @@ -144,7 +144,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -1622,7 +1622,7 @@ } } }, - "revision": "20250820", + "revision": "20250904", "rootUrl": "https://alloydb.googleapis.com/", "schemas": { "AuthorizedNetwork": { @@ -4420,7 +4420,7 @@ "type": "object" }, "StorageDatabasecenterPartnerapiV1mainDatabaseResourceFeed": { - "description": "DatabaseResourceFeed is the top level proto to be used to ingest different database resource level events into Condor platform. Next ID: 11", + "description": "DatabaseResourceFeed is the top level proto to be used to ingest different database resource level events into Condor platform. Next ID: 12", "id": "StorageDatabasecenterPartnerapiV1mainDatabaseResourceFeed", "properties": { "backupdrMetadata": { @@ -4431,6 +4431,10 @@ "$ref": "StorageDatabasecenterPartnerapiV1mainConfigBasedSignalData", "description": "Config based signal data is used to ingest signals that are generated based on the configuration of the database resource." }, + "databaseResourceSignalData": { + "$ref": "StorageDatabasecenterPartnerapiV1mainDatabaseResourceSignalData", + "description": "Database resource signal data is used to ingest signals from database resource signal feeds." + }, "feedTimestamp": { "description": "Required. Timestamp when feed is generated.", "format": "google-datetime", @@ -4970,7 +4974,7 @@ "type": "object" }, "StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata": { - "description": "Common model for database resource instance metadata. Next ID: 26", + "description": "Common model for database resource instance metadata. Next ID: 27", "id": "StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata", "properties": { "availabilityConfiguration": { @@ -5023,12 +5027,14 @@ "enum": [ "EDITION_UNSPECIFIED", "EDITION_ENTERPRISE", - "EDITION_ENTERPRISE_PLUS" + "EDITION_ENTERPRISE_PLUS", + "EDITION_STANDARD" ], "enumDescriptions": [ "Default, to make it consistent with instance edition enum.", "Represents the enterprise edition.", - "Represents the enterprise plus edition." + "Represents the enterprise plus edition.", + "Represents the standard edition." ], "type": "string" }, @@ -5173,6 +5179,10 @@ "userLabelSet": { "$ref": "StorageDatabasecenterPartnerapiV1mainUserLabels", "description": "User-provided labels associated with the resource" + }, + "zone": { + "description": "The resource zone. This is only applicable for zonal resources and will be empty for regional and multi-regional resources.", + "type": "string" } }, "type": "object" @@ -5549,6 +5559,67 @@ }, "type": "object" }, + "StorageDatabasecenterPartnerapiV1mainDatabaseResourceSignalData": { + "description": "Database resource signal data. This is used to send signals to Condor which are based on the DB/Instance/Fleet level configurations. These will be used to send signals for all inventory types. Next ID: 7", + "id": "StorageDatabasecenterPartnerapiV1mainDatabaseResourceSignalData", + "properties": { + "fullResourceName": { + "description": "Required. Full Resource name of the source resource.", + "type": "string" + }, + "lastRefreshTime": { + "description": "Required. Last time signal was refreshed", + "format": "google-datetime", + "type": "string" + }, + "resourceId": { + "$ref": "StorageDatabasecenterPartnerapiV1mainDatabaseResourceId", + "description": "Database resource id." + }, + "signalBoolValue": { + "description": "Signal data for boolean signals.", + "type": "boolean" + }, + "signalState": { + "description": "Required. Output only. Signal state of the signal", + "enum": [ + "SIGNAL_STATE_UNSPECIFIED", + "ACTIVE", + "INACTIVE", + "DISMISSED" + ], + "enumDescriptions": [ + "Unspecified signal state.", + "Signal is active and requires attention.", + "Signal is inactive and does not require attention.", + "Signal is dismissed by the user and should not be shown to the user again." + ], + "readOnly": true, + "type": "string" + }, + "signalType": { + "description": "Required. Signal type of the signal", + "enum": [ + "SIGNAL_TYPE_UNSPECIFIED", + "SIGNAL_TYPE_OUTDATED_MINOR_VERSION", + "SIGNAL_TYPE_DATABASE_AUDITING_DISABLED", + "SIGNAL_TYPE_NO_ROOT_PASSWORD", + "SIGNAL_TYPE_EXPOSED_TO_PUBLIC_ACCESS", + "SIGNAL_TYPE_UNENCRYPTED_CONNECTIONS" + ], + "enumDescriptions": [ + "Unspecified signal type.", + "Outdated Minor Version", + "Represents database auditing is disabled.", + "Represents if a database has a password configured for the root account or not.", + "Represents if a resource is exposed to public access.", + "Represents if a resources requires all incoming connections to use SSL or not." + ], + "type": "string" + } + }, + "type": "object" + }, "StorageDatabasecenterPartnerapiV1mainEntitlement": { "description": "Proto representing the access that a user has to a specific feature/service. NextId: 3.", "id": "StorageDatabasecenterPartnerapiV1mainEntitlement", diff --git a/alloydb/v1alpha/alloydb-gen.go b/alloydb/v1alpha/alloydb-gen.go index fb308ceca8..f45c3c3d0a 100644 --- a/alloydb/v1alpha/alloydb-gen.go +++ b/alloydb/v1alpha/alloydb-gen.go @@ -3457,7 +3457,7 @@ func (s StorageDatabasecenterPartnerapiV1mainCustomMetadataData) MarshalJSON() ( // StorageDatabasecenterPartnerapiV1mainDatabaseResourceFeed: // DatabaseResourceFeed is the top level proto to be used to ingest different -// database resource level events into Condor platform. Next ID: 11 +// database resource level events into Condor platform. Next ID: 12 type StorageDatabasecenterPartnerapiV1mainDatabaseResourceFeed struct { // BackupdrMetadata: BackupDR metadata is used to ingest metadata from // BackupDR. @@ -3465,6 +3465,9 @@ type StorageDatabasecenterPartnerapiV1mainDatabaseResourceFeed struct { // ConfigBasedSignalData: Config based signal data is used to ingest signals // that are generated based on the configuration of the database resource. ConfigBasedSignalData *StorageDatabasecenterPartnerapiV1mainConfigBasedSignalData `json:"configBasedSignalData,omitempty"` + // DatabaseResourceSignalData: Database resource signal data is used to ingest + // signals from database resource signal feeds. + DatabaseResourceSignalData *StorageDatabasecenterPartnerapiV1mainDatabaseResourceSignalData `json:"databaseResourceSignalData,omitempty"` // FeedTimestamp: Required. Timestamp when feed is generated. FeedTimestamp string `json:"feedTimestamp,omitempty"` // FeedType: Required. Type feed to be ingested into condor @@ -3905,7 +3908,7 @@ func (s StorageDatabasecenterPartnerapiV1mainDatabaseResourceId) MarshalJSON() ( } // StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata: Common model -// for database resource instance metadata. Next ID: 26 +// for database resource instance metadata. Next ID: 27 type StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata struct { // AvailabilityConfiguration: Availability configuration for this instance AvailabilityConfiguration *StorageDatabasecenterPartnerapiV1mainAvailabilityConfiguration `json:"availabilityConfiguration,omitempty"` @@ -3940,6 +3943,7 @@ type StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata struct { // edition enum. // "EDITION_ENTERPRISE" - Represents the enterprise edition. // "EDITION_ENTERPRISE_PLUS" - Represents the enterprise plus edition. + // "EDITION_STANDARD" - Represents the standard edition. Edition string `json:"edition,omitempty"` // Entitlements: Entitlements associated with the resource Entitlements []*StorageDatabasecenterPartnerapiV1mainEntitlement `json:"entitlements,omitempty"` @@ -4022,6 +4026,9 @@ type StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata struct { UpdationTime string `json:"updationTime,omitempty"` // UserLabelSet: User-provided labels associated with the resource UserLabelSet *StorageDatabasecenterPartnerapiV1mainUserLabels `json:"userLabelSet,omitempty"` + // Zone: The resource zone. This is only applicable for zonal resources and + // will be empty for regional and multi-regional resources. + Zone string `json:"zone,omitempty"` // ForceSendFields is a list of field names (e.g. "AvailabilityConfiguration") // to unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -4332,6 +4339,60 @@ func (s StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSigna return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// StorageDatabasecenterPartnerapiV1mainDatabaseResourceSignalData: Database +// resource signal data. This is used to send signals to Condor which are based +// on the DB/Instance/Fleet level configurations. These will be used to send +// signals for all inventory types. Next ID: 7 +type StorageDatabasecenterPartnerapiV1mainDatabaseResourceSignalData struct { + // FullResourceName: Required. Full Resource name of the source resource. + FullResourceName string `json:"fullResourceName,omitempty"` + // LastRefreshTime: Required. Last time signal was refreshed + LastRefreshTime string `json:"lastRefreshTime,omitempty"` + // ResourceId: Database resource id. + ResourceId *StorageDatabasecenterPartnerapiV1mainDatabaseResourceId `json:"resourceId,omitempty"` + // SignalBoolValue: Signal data for boolean signals. + SignalBoolValue bool `json:"signalBoolValue,omitempty"` + // SignalState: Required. Output only. Signal state of the signal + // + // Possible values: + // "SIGNAL_STATE_UNSPECIFIED" - Unspecified signal state. + // "ACTIVE" - Signal is active and requires attention. + // "INACTIVE" - Signal is inactive and does not require attention. + // "DISMISSED" - Signal is dismissed by the user and should not be shown to + // the user again. + SignalState string `json:"signalState,omitempty"` + // SignalType: Required. Signal type of the signal + // + // Possible values: + // "SIGNAL_TYPE_UNSPECIFIED" - Unspecified signal type. + // "SIGNAL_TYPE_OUTDATED_MINOR_VERSION" - Outdated Minor Version + // "SIGNAL_TYPE_DATABASE_AUDITING_DISABLED" - Represents database auditing is + // disabled. + // "SIGNAL_TYPE_NO_ROOT_PASSWORD" - Represents if a database has a password + // configured for the root account or not. + // "SIGNAL_TYPE_EXPOSED_TO_PUBLIC_ACCESS" - Represents if a resource is + // exposed to public access. + // "SIGNAL_TYPE_UNENCRYPTED_CONNECTIONS" - Represents if a resources requires + // all incoming connections to use SSL or not. + SignalType string `json:"signalType,omitempty"` + // ForceSendFields is a list of field names (e.g. "FullResourceName") 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. "FullResourceName") 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 StorageDatabasecenterPartnerapiV1mainDatabaseResourceSignalData) MarshalJSON() ([]byte, error) { + type NoMethod StorageDatabasecenterPartnerapiV1mainDatabaseResourceSignalData + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // StorageDatabasecenterPartnerapiV1mainEntitlement: Proto representing the // access that a user has to a specific feature/service. NextId: 3. type StorageDatabasecenterPartnerapiV1mainEntitlement struct { @@ -5380,9 +5441,9 @@ func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall return c } -// ExtraLocationTypes sets the optional parameter "extraLocationTypes": Do not -// use this field. It is unsupported and is ignored unless explicitly -// documented otherwise. This is primarily for internal usage. +// ExtraLocationTypes sets the optional parameter "extraLocationTypes": Unless +// explicitly documented otherwise, don't use this unsupported field which is +// primarily intended for internal usage. func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall { c.urlParams_.SetMulti("extraLocationTypes", append([]string{}, extraLocationTypes...)) return c diff --git a/alloydb/v1beta/alloydb-api.json b/alloydb/v1beta/alloydb-api.json index e53b3e7cf3..86c5ac3640 100644 --- a/alloydb/v1beta/alloydb-api.json +++ b/alloydb/v1beta/alloydb-api.json @@ -144,7 +144,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -1619,7 +1619,7 @@ } } }, - "revision": "20250820", + "revision": "20250904", "rootUrl": "https://alloydb.googleapis.com/", "schemas": { "AuthorizedNetwork": { @@ -4396,7 +4396,7 @@ "type": "object" }, "StorageDatabasecenterPartnerapiV1mainDatabaseResourceFeed": { - "description": "DatabaseResourceFeed is the top level proto to be used to ingest different database resource level events into Condor platform. Next ID: 11", + "description": "DatabaseResourceFeed is the top level proto to be used to ingest different database resource level events into Condor platform. Next ID: 12", "id": "StorageDatabasecenterPartnerapiV1mainDatabaseResourceFeed", "properties": { "backupdrMetadata": { @@ -4407,6 +4407,10 @@ "$ref": "StorageDatabasecenterPartnerapiV1mainConfigBasedSignalData", "description": "Config based signal data is used to ingest signals that are generated based on the configuration of the database resource." }, + "databaseResourceSignalData": { + "$ref": "StorageDatabasecenterPartnerapiV1mainDatabaseResourceSignalData", + "description": "Database resource signal data is used to ingest signals from database resource signal feeds." + }, "feedTimestamp": { "description": "Required. Timestamp when feed is generated.", "format": "google-datetime", @@ -4946,7 +4950,7 @@ "type": "object" }, "StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata": { - "description": "Common model for database resource instance metadata. Next ID: 26", + "description": "Common model for database resource instance metadata. Next ID: 27", "id": "StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata", "properties": { "availabilityConfiguration": { @@ -4999,12 +5003,14 @@ "enum": [ "EDITION_UNSPECIFIED", "EDITION_ENTERPRISE", - "EDITION_ENTERPRISE_PLUS" + "EDITION_ENTERPRISE_PLUS", + "EDITION_STANDARD" ], "enumDescriptions": [ "Default, to make it consistent with instance edition enum.", "Represents the enterprise edition.", - "Represents the enterprise plus edition." + "Represents the enterprise plus edition.", + "Represents the standard edition." ], "type": "string" }, @@ -5149,6 +5155,10 @@ "userLabelSet": { "$ref": "StorageDatabasecenterPartnerapiV1mainUserLabels", "description": "User-provided labels associated with the resource" + }, + "zone": { + "description": "The resource zone. This is only applicable for zonal resources and will be empty for regional and multi-regional resources.", + "type": "string" } }, "type": "object" @@ -5525,6 +5535,67 @@ }, "type": "object" }, + "StorageDatabasecenterPartnerapiV1mainDatabaseResourceSignalData": { + "description": "Database resource signal data. This is used to send signals to Condor which are based on the DB/Instance/Fleet level configurations. These will be used to send signals for all inventory types. Next ID: 7", + "id": "StorageDatabasecenterPartnerapiV1mainDatabaseResourceSignalData", + "properties": { + "fullResourceName": { + "description": "Required. Full Resource name of the source resource.", + "type": "string" + }, + "lastRefreshTime": { + "description": "Required. Last time signal was refreshed", + "format": "google-datetime", + "type": "string" + }, + "resourceId": { + "$ref": "StorageDatabasecenterPartnerapiV1mainDatabaseResourceId", + "description": "Database resource id." + }, + "signalBoolValue": { + "description": "Signal data for boolean signals.", + "type": "boolean" + }, + "signalState": { + "description": "Required. Output only. Signal state of the signal", + "enum": [ + "SIGNAL_STATE_UNSPECIFIED", + "ACTIVE", + "INACTIVE", + "DISMISSED" + ], + "enumDescriptions": [ + "Unspecified signal state.", + "Signal is active and requires attention.", + "Signal is inactive and does not require attention.", + "Signal is dismissed by the user and should not be shown to the user again." + ], + "readOnly": true, + "type": "string" + }, + "signalType": { + "description": "Required. Signal type of the signal", + "enum": [ + "SIGNAL_TYPE_UNSPECIFIED", + "SIGNAL_TYPE_OUTDATED_MINOR_VERSION", + "SIGNAL_TYPE_DATABASE_AUDITING_DISABLED", + "SIGNAL_TYPE_NO_ROOT_PASSWORD", + "SIGNAL_TYPE_EXPOSED_TO_PUBLIC_ACCESS", + "SIGNAL_TYPE_UNENCRYPTED_CONNECTIONS" + ], + "enumDescriptions": [ + "Unspecified signal type.", + "Outdated Minor Version", + "Represents database auditing is disabled.", + "Represents if a database has a password configured for the root account or not.", + "Represents if a resource is exposed to public access.", + "Represents if a resources requires all incoming connections to use SSL or not." + ], + "type": "string" + } + }, + "type": "object" + }, "StorageDatabasecenterPartnerapiV1mainEntitlement": { "description": "Proto representing the access that a user has to a specific feature/service. NextId: 3.", "id": "StorageDatabasecenterPartnerapiV1mainEntitlement", diff --git a/alloydb/v1beta/alloydb-gen.go b/alloydb/v1beta/alloydb-gen.go index bcfca2533e..a22e1f348b 100644 --- a/alloydb/v1beta/alloydb-gen.go +++ b/alloydb/v1beta/alloydb-gen.go @@ -3447,7 +3447,7 @@ func (s StorageDatabasecenterPartnerapiV1mainCustomMetadataData) MarshalJSON() ( // StorageDatabasecenterPartnerapiV1mainDatabaseResourceFeed: // DatabaseResourceFeed is the top level proto to be used to ingest different -// database resource level events into Condor platform. Next ID: 11 +// database resource level events into Condor platform. Next ID: 12 type StorageDatabasecenterPartnerapiV1mainDatabaseResourceFeed struct { // BackupdrMetadata: BackupDR metadata is used to ingest metadata from // BackupDR. @@ -3455,6 +3455,9 @@ type StorageDatabasecenterPartnerapiV1mainDatabaseResourceFeed struct { // ConfigBasedSignalData: Config based signal data is used to ingest signals // that are generated based on the configuration of the database resource. ConfigBasedSignalData *StorageDatabasecenterPartnerapiV1mainConfigBasedSignalData `json:"configBasedSignalData,omitempty"` + // DatabaseResourceSignalData: Database resource signal data is used to ingest + // signals from database resource signal feeds. + DatabaseResourceSignalData *StorageDatabasecenterPartnerapiV1mainDatabaseResourceSignalData `json:"databaseResourceSignalData,omitempty"` // FeedTimestamp: Required. Timestamp when feed is generated. FeedTimestamp string `json:"feedTimestamp,omitempty"` // FeedType: Required. Type feed to be ingested into condor @@ -3895,7 +3898,7 @@ func (s StorageDatabasecenterPartnerapiV1mainDatabaseResourceId) MarshalJSON() ( } // StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata: Common model -// for database resource instance metadata. Next ID: 26 +// for database resource instance metadata. Next ID: 27 type StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata struct { // AvailabilityConfiguration: Availability configuration for this instance AvailabilityConfiguration *StorageDatabasecenterPartnerapiV1mainAvailabilityConfiguration `json:"availabilityConfiguration,omitempty"` @@ -3930,6 +3933,7 @@ type StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata struct { // edition enum. // "EDITION_ENTERPRISE" - Represents the enterprise edition. // "EDITION_ENTERPRISE_PLUS" - Represents the enterprise plus edition. + // "EDITION_STANDARD" - Represents the standard edition. Edition string `json:"edition,omitempty"` // Entitlements: Entitlements associated with the resource Entitlements []*StorageDatabasecenterPartnerapiV1mainEntitlement `json:"entitlements,omitempty"` @@ -4012,6 +4016,9 @@ type StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata struct { UpdationTime string `json:"updationTime,omitempty"` // UserLabelSet: User-provided labels associated with the resource UserLabelSet *StorageDatabasecenterPartnerapiV1mainUserLabels `json:"userLabelSet,omitempty"` + // Zone: The resource zone. This is only applicable for zonal resources and + // will be empty for regional and multi-regional resources. + Zone string `json:"zone,omitempty"` // ForceSendFields is a list of field names (e.g. "AvailabilityConfiguration") // to unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -4322,6 +4329,60 @@ func (s StorageDatabasecenterPartnerapiV1mainDatabaseResourceRecommendationSigna return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// StorageDatabasecenterPartnerapiV1mainDatabaseResourceSignalData: Database +// resource signal data. This is used to send signals to Condor which are based +// on the DB/Instance/Fleet level configurations. These will be used to send +// signals for all inventory types. Next ID: 7 +type StorageDatabasecenterPartnerapiV1mainDatabaseResourceSignalData struct { + // FullResourceName: Required. Full Resource name of the source resource. + FullResourceName string `json:"fullResourceName,omitempty"` + // LastRefreshTime: Required. Last time signal was refreshed + LastRefreshTime string `json:"lastRefreshTime,omitempty"` + // ResourceId: Database resource id. + ResourceId *StorageDatabasecenterPartnerapiV1mainDatabaseResourceId `json:"resourceId,omitempty"` + // SignalBoolValue: Signal data for boolean signals. + SignalBoolValue bool `json:"signalBoolValue,omitempty"` + // SignalState: Required. Output only. Signal state of the signal + // + // Possible values: + // "SIGNAL_STATE_UNSPECIFIED" - Unspecified signal state. + // "ACTIVE" - Signal is active and requires attention. + // "INACTIVE" - Signal is inactive and does not require attention. + // "DISMISSED" - Signal is dismissed by the user and should not be shown to + // the user again. + SignalState string `json:"signalState,omitempty"` + // SignalType: Required. Signal type of the signal + // + // Possible values: + // "SIGNAL_TYPE_UNSPECIFIED" - Unspecified signal type. + // "SIGNAL_TYPE_OUTDATED_MINOR_VERSION" - Outdated Minor Version + // "SIGNAL_TYPE_DATABASE_AUDITING_DISABLED" - Represents database auditing is + // disabled. + // "SIGNAL_TYPE_NO_ROOT_PASSWORD" - Represents if a database has a password + // configured for the root account or not. + // "SIGNAL_TYPE_EXPOSED_TO_PUBLIC_ACCESS" - Represents if a resource is + // exposed to public access. + // "SIGNAL_TYPE_UNENCRYPTED_CONNECTIONS" - Represents if a resources requires + // all incoming connections to use SSL or not. + SignalType string `json:"signalType,omitempty"` + // ForceSendFields is a list of field names (e.g. "FullResourceName") 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. "FullResourceName") 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 StorageDatabasecenterPartnerapiV1mainDatabaseResourceSignalData) MarshalJSON() ([]byte, error) { + type NoMethod StorageDatabasecenterPartnerapiV1mainDatabaseResourceSignalData + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // StorageDatabasecenterPartnerapiV1mainEntitlement: Proto representing the // access that a user has to a specific feature/service. NextId: 3. type StorageDatabasecenterPartnerapiV1mainEntitlement struct { @@ -5370,9 +5431,9 @@ func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall return c } -// ExtraLocationTypes sets the optional parameter "extraLocationTypes": Do not -// use this field. It is unsupported and is ignored unless explicitly -// documented otherwise. This is primarily for internal usage. +// ExtraLocationTypes sets the optional parameter "extraLocationTypes": Unless +// explicitly documented otherwise, don't use this unsupported field which is +// primarily intended for internal usage. func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall { c.urlParams_.SetMulti("extraLocationTypes", append([]string{}, extraLocationTypes...)) return c diff --git a/authorizedbuyersmarketplace/v1alpha/authorizedbuyersmarketplace-api.json b/authorizedbuyersmarketplace/v1alpha/authorizedbuyersmarketplace-api.json index e2e2bf1eb7..b1cc97cfc9 100644 --- a/authorizedbuyersmarketplace/v1alpha/authorizedbuyersmarketplace-api.json +++ b/authorizedbuyersmarketplace/v1alpha/authorizedbuyersmarketplace-api.json @@ -1550,7 +1550,7 @@ } } }, - "revision": "20250828", + "revision": "20250910", "rootUrl": "https://authorizedbuyersmarketplace.googleapis.com/", "schemas": { "AcceptProposalRequest": { @@ -1974,7 +1974,7 @@ "properties": { "cpmFee": { "$ref": "Money", - "description": "Required. This will be charged when other accounts use this data segment. For example, when other accounts add this data segment to a deal or auction package. Once set, the currency code cannot be changed." + "description": "Optional. A fixed fee charged per thousand impressions. Once set, the currency code cannot be changed." }, "createTime": { "description": "Output only. Time the data segment was created.", diff --git a/authorizedbuyersmarketplace/v1alpha/authorizedbuyersmarketplace-gen.go b/authorizedbuyersmarketplace/v1alpha/authorizedbuyersmarketplace-gen.go index 08cc52aeec..b2dd38b0fd 100644 --- a/authorizedbuyersmarketplace/v1alpha/authorizedbuyersmarketplace-gen.go +++ b/authorizedbuyersmarketplace/v1alpha/authorizedbuyersmarketplace-gen.go @@ -778,9 +778,8 @@ func (s CriteriaTargeting) MarshalJSON() ([]byte, error) { // targeted by curators or media planners in the deals or auction packages UI. // Curation of inventory is done by curators on external platforms. type DataSegment struct { - // CpmFee: Required. This will be charged when other accounts use this data - // segment. For example, when other accounts add this data segment to a deal or - // auction package. Once set, the currency code cannot be changed. + // CpmFee: Optional. A fixed fee charged per thousand impressions. Once set, + // the currency code cannot be changed. CpmFee *Money `json:"cpmFee,omitempty"` // CreateTime: Output only. Time the data segment was created. CreateTime string `json:"createTime,omitempty"` diff --git a/authorizedbuyersmarketplace/v1beta/authorizedbuyersmarketplace-api.json b/authorizedbuyersmarketplace/v1beta/authorizedbuyersmarketplace-api.json index 9129351b0f..b728277b9c 100644 --- a/authorizedbuyersmarketplace/v1beta/authorizedbuyersmarketplace-api.json +++ b/authorizedbuyersmarketplace/v1beta/authorizedbuyersmarketplace-api.json @@ -293,7 +293,7 @@ } } }, - "revision": "20250616", + "revision": "20250910", "rootUrl": "https://authorizedbuyersmarketplace.googleapis.com/", "schemas": { "ActivateDataSegmentRequest": { @@ -308,7 +308,7 @@ "properties": { "cpmFee": { "$ref": "Money", - "description": "Required. This will be charged when other accounts use this data segment. For example, when other accounts add this data segment to a deal or auction package. Once set, the currency code cannot be changed." + "description": "Optional. A fixed fee charged per thousand impressions. Once set, the currency code cannot be changed." }, "createTime": { "description": "Output only. Time the data segment was created.", diff --git a/authorizedbuyersmarketplace/v1beta/authorizedbuyersmarketplace-gen.go b/authorizedbuyersmarketplace/v1beta/authorizedbuyersmarketplace-gen.go index 3bcd6d25a9..ec9c967100 100644 --- a/authorizedbuyersmarketplace/v1beta/authorizedbuyersmarketplace-gen.go +++ b/authorizedbuyersmarketplace/v1beta/authorizedbuyersmarketplace-gen.go @@ -182,9 +182,8 @@ type ActivateDataSegmentRequest struct { // targeted by curators or media planners in the deals or auction packages UI. // Curation of inventory is done by curators on external platforms. type DataSegment struct { - // CpmFee: Required. This will be charged when other accounts use this data - // segment. For example, when other accounts add this data segment to a deal or - // auction package. Once set, the currency code cannot be changed. + // CpmFee: Optional. A fixed fee charged per thousand impressions. Once set, + // the currency code cannot be changed. CpmFee *Money `json:"cpmFee,omitempty"` // CreateTime: Output only. Time the data segment was created. CreateTime string `json:"createTime,omitempty"` diff --git a/bigquerydatatransfer/v1/bigquerydatatransfer-api.json b/bigquerydatatransfer/v1/bigquerydatatransfer-api.json index ebe51f7974..23e75229a0 100644 --- a/bigquerydatatransfer/v1/bigquerydatatransfer-api.json +++ b/bigquerydatatransfer/v1/bigquerydatatransfer-api.json @@ -418,7 +418,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -1488,7 +1488,7 @@ } } }, - "revision": "20250813", + "revision": "20250906", "rootUrl": "https://bigquerydatatransfer.googleapis.com/", "schemas": { "CheckValidCredsRequest": { diff --git a/bigquerydatatransfer/v1/bigquerydatatransfer-gen.go b/bigquerydatatransfer/v1/bigquerydatatransfer-gen.go index 20daefc466..56a472b834 100644 --- a/bigquerydatatransfer/v1/bigquerydatatransfer-gen.go +++ b/bigquerydatatransfer/v1/bigquerydatatransfer-gen.go @@ -2080,9 +2080,9 @@ func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall return c } -// ExtraLocationTypes sets the optional parameter "extraLocationTypes": Do not -// use this field. It is unsupported and is ignored unless explicitly -// documented otherwise. This is primarily for internal usage. +// ExtraLocationTypes sets the optional parameter "extraLocationTypes": Unless +// explicitly documented otherwise, don't use this unsupported field which is +// primarily intended for internal usage. func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall { c.urlParams_.SetMulti("extraLocationTypes", append([]string{}, extraLocationTypes...)) return c diff --git a/bigqueryreservation/v1/bigqueryreservation-api.json b/bigqueryreservation/v1/bigqueryreservation-api.json index 2b479d2fea..0630ed33d7 100644 --- a/bigqueryreservation/v1/bigqueryreservation-api.json +++ b/bigqueryreservation/v1/bigqueryreservation-api.json @@ -1267,7 +1267,7 @@ } } }, - "revision": "20250620", + "revision": "20250907", "rootUrl": "https://bigqueryreservation.googleapis.com/", "schemas": { "Assignment": { @@ -1290,7 +1290,10 @@ "QUERY", "ML_EXTERNAL", "BACKGROUND", - "CONTINUOUS" + "CONTINUOUS", + "BACKGROUND_CHANGE_DATA_CAPTURE", + "BACKGROUND_COLUMN_METADATA_INDEX", + "BACKGROUND_SEARCH_INDEX_REFRESH" ], "enumDescriptions": [ "Invalid type. Requests with this value will be rejected with error code `google.rpc.Code.INVALID_ARGUMENT`.", @@ -1298,7 +1301,10 @@ "Query jobs from the project will use the reservation.", "BigQuery ML jobs that use services external to BigQuery for model training. These jobs will not utilize idle slots from other reservations.", "Background jobs that BigQuery runs for the customers in the background.", - "Continuous SQL jobs will use this reservation. Reservations with continuous assignments cannot be mixed with non-continuous assignments." + "Continuous SQL jobs will use this reservation. Reservations with continuous assignments cannot be mixed with non-continuous assignments.", + "Finer granularity background jobs for capturing changes in a source database and streaming them into BigQuery. Reservations with this job type take priority over a default BACKGROUND reservation assignment (if it exists).", + "Finer granularity background jobs for refreshing cached metadata for BigQuery tables. Reservations with this job type take priority over a default BACKGROUND reservation assignment (if it exists).", + "Finer granularity background jobs for refreshing search indexes upon BigQuery table columns. Reservations with this job type take priority over a default BACKGROUND reservation assignment (if it exists)." ], "type": "string" }, @@ -1633,7 +1639,7 @@ "id": "FailoverReservationRequest", "properties": { "failoverMode": { - "description": "Optional. failover mode for the failover operation.", + "description": "Optional. A parameter that determines how writes that are pending replication are handled after a failover is initiated. If not specified, HARD failover mode is used by default.", "enum": [ "FAILOVER_MODE_UNSPECIFIED", "SOFT", @@ -1641,7 +1647,7 @@ ], "enumDescriptions": [ "Invalid value.", - "When customers initiate a soft failover, BigQuery will wait until all committed writes are replicated to the secondary.", + "When customers initiate a soft failover, BigQuery will wait until all committed writes are replicated to the secondary. This mode requires both regions to be available for the failover to succeed and prevents data loss.", "When customers initiate a hard failover, BigQuery will not wait until all committed writes are replicated to the secondary. There can be data loss for hard failover." ], "type": "string" diff --git a/bigqueryreservation/v1/bigqueryreservation-gen.go b/bigqueryreservation/v1/bigqueryreservation-gen.go index 9549d1e891..2e7adcc441 100644 --- a/bigqueryreservation/v1/bigqueryreservation-gen.go +++ b/bigqueryreservation/v1/bigqueryreservation-gen.go @@ -263,6 +263,18 @@ type Assignment struct { // background. // "CONTINUOUS" - Continuous SQL jobs will use this reservation. Reservations // with continuous assignments cannot be mixed with non-continuous assignments. + // "BACKGROUND_CHANGE_DATA_CAPTURE" - Finer granularity background jobs for + // capturing changes in a source database and streaming them into BigQuery. + // Reservations with this job type take priority over a default BACKGROUND + // reservation assignment (if it exists). + // "BACKGROUND_COLUMN_METADATA_INDEX" - Finer granularity background jobs for + // refreshing cached metadata for BigQuery tables. Reservations with this job + // type take priority over a default BACKGROUND reservation assignment (if it + // exists). + // "BACKGROUND_SEARCH_INDEX_REFRESH" - Finer granularity background jobs for + // refreshing search indexes upon BigQuery table columns. Reservations with + // this job type take priority over a default BACKGROUND reservation assignment + // (if it exists). JobType string `json:"jobType,omitempty"` // Name: Output only. Name of the resource. E.g.: // `projects/myproject/locations/US/reservations/team1-prod/assignments/123`. @@ -745,12 +757,16 @@ func (s Expr) MarshalJSON() ([]byte, error) { // FailoverReservationRequest: The request for // ReservationService.FailoverReservation. type FailoverReservationRequest struct { - // FailoverMode: Optional. failover mode for the failover operation. + // FailoverMode: Optional. A parameter that determines how writes that are + // pending replication are handled after a failover is initiated. If not + // specified, HARD failover mode is used by default. // // Possible values: // "FAILOVER_MODE_UNSPECIFIED" - Invalid value. // "SOFT" - When customers initiate a soft failover, BigQuery will wait until - // all committed writes are replicated to the secondary. + // all committed writes are replicated to the secondary. This mode requires + // both regions to be available for the failover to succeed and prevents data + // loss. // "HARD" - When customers initiate a hard failover, BigQuery will not wait // until all committed writes are replicated to the secondary. There can be // data loss for hard failover. diff --git a/cloudcommerceprocurement/v1/cloudcommerceprocurement-api.json b/cloudcommerceprocurement/v1/cloudcommerceprocurement-api.json index d72776da84..ad3dd197db 100644 --- a/cloudcommerceprocurement/v1/cloudcommerceprocurement-api.json +++ b/cloudcommerceprocurement/v1/cloudcommerceprocurement-api.json @@ -503,7 +503,7 @@ } } }, - "revision": "20250831", + "revision": "20250907", "rootUrl": "https://cloudcommerceprocurement.googleapis.com/", "schemas": { "Account": { @@ -717,24 +717,24 @@ "type": "string" }, "newOfferEndTime": { - "description": "Output only. The end time of the new offer. If the offer was created with a term instead of a specified end date, this field is empty. This field is populated even if the entitlement isn't active yet. If there's no upcoming offer, the field is be empty.", + "description": "Output only. The end time of the new offer. If the offer was has a term duration instead of a specified end date, this field is empty. This field is populated even if the entitlement isn't active yet. If there's no upcoming offer, the field is empty. * If the entitlement is in ENTITLEMENT_ACTIVATION_REQUESTED, ENTITLEMENT_ACTIVE, or ENTITLEMENT_PENDING_CANCELLATION state, then this field will be empty. * If the entitlement is in ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL or ENTITLEMENT_PENDING_PLAN_CHANGE state, then this field will be populated with the expected end time of the upcoming offer (in the future) if the upcoming offer has a specified end date. Otherwise, this field will be empty. * If the entitlement is in ENTITLEMENT_CANCELLED state, then this field will be empty.", "format": "google-datetime", "readOnly": true, "type": "string" }, "newOfferStartTime": { - "description": "Output only. The timestamp when the new offer becomes effective. This field is populated even if the entitlement isn't active yet. If there's no upcoming offer, the field is empty.", + "description": "Output only. The timestamp when the new offer becomes effective. This field is populated even if the entitlement isn't active yet. If there's no upcoming offer, the field is empty. * If the entitlement is in ENTITLEMENT_ACTIVATION_REQUESTED state, this field will not be populated when the entitlement is not yet approved. But after the entitlement is approved, then this field will be populated with effective time of the upcoming offer. * If the entitlement is in ENTITLEMENT_ACTIVE or ENTITLEMENT_PENDING_CANCELLATION state, this field will not be populated. * If the entitlement is in ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL state, this field will not be populated since the entitlement change is waiting on approval. * If the entitlement is in ENTITLEMENT_PENDING_PLAN_CHANGE state, this field will be populated with the expected effective time of the upcoming offer (in the future). * If the entitlement is in ENTITLEMENT_CANCELLED state, then this field will be empty.", "format": "google-datetime", "readOnly": true, "type": "string" }, "newPendingOffer": { - "description": "Output only. The name of the offer the entitlement is switching to upon a pending plan change. Only exists if the pending plan change is moving to an offer. This field isn't populated for entitlements which aren't active yet. Format: 'projects/{project}/services/{service}/privateOffers/{offer-id}' OR 'projects/{project}/services/{service}/standardOffers/{offer-id}', depending on whether the offer is private or public. The {service} in the name is the listing service of the offer. It could be either the product service that the offer is referencing, or a generic private offer parent service. We recommend that you don't build your integration to rely on the meaning of this {service} part.", + "description": "Output only. The name of the offer the entitlement is switching to upon a pending plan change. Only exists if the pending plan change is moving to an offer. This field isn't populated for entitlements which aren't active yet. Format: 'projects/{project}/services/{service}/privateOffers/{offer}' OR 'projects/{project}/services/{service}/standardOffers/{offer}', depending on whether the offer is private or public. The {service} in the name is the listing service of the offer. It could be either the product service that the offer is referencing, or a generic private offer parent service. We recommend that you don't build your integration to rely on the meaning of this {service} part. * If the entitlement is in ENTITLEMENT_ACTIVATION_REQUESTED, ENTITLEMENT_ACTIVE or ENTITLEMENT_PENDING_CANCELLATION state, then this field will be empty. * If the entitlement is in ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL or ENTITLEMENT_PENDING_PLAN_CHANGE state, then this field will be populated with the upcoming offer. * If the entitlement is in ENTITLEMENT_CANCELLED state, then this will be empty.", "readOnly": true, "type": "string" }, "newPendingOfferDuration": { - "description": "Output only. The duration of the new offer, in ISO 8601 duration format. This field isn't populated for entitlements which aren't active yet, only for pending offer changes. If the offer was created with a specified end date instead of a duration, this field is empty.", + "description": "Output only. The duration of the new offer, in ISO 8601 duration format. This field isn't populated for entitlements which aren't active yet, only for pending offer changes. If the offer was has a specified end date instead of a duration, this field is empty. * If the entitlement is in ENTITLEMENT_ACTIVATION_REQUESTED, ENTITLEENTITLEMENT_ACTIVE, or ENTITLEMENT_PENDING_CANCELLATION state, then this field is empty. * If the entitlement is in ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL or ENTITLEMENT_PENDING_PLAN_CHANGE state, then this field will be populated with the duration of the upcoming offer, if the upcoming offer is does not have a specified end date. Otherwise, this field will be empty. * If the entitlement is in ENTITLEMENT_CANCELLED state, then this field will be empty.", "readOnly": true, "type": "string" }, @@ -743,17 +743,17 @@ "type": "string" }, "offer": { - "description": "Output only. The name of the offer that was procured. Field is empty if order was not made using an offer. Format: 'projects/{project}/services/{service}/privateOffers/{offer-id}' OR 'projects/{project}/services/{service}/standardOffers/{offer-id}', depending on whether the offer is private or public. The {service} in the name is the listing service of the offer. It could be either the product service that the offer is referencing, or a generic private offer parent service. We recommend that you don't build your integration to rely on the meaning of this {service} part.", + "description": "Output only. The name of the offer that was procured. Field is empty if order was not made using an offer. Format: 'projects/{project}/services/{service}/privateOffers/{offer}' OR 'projects/{project}/services/{service}/standardOffers/{offer}', depending on whether the offer is private or public. The {service} in the name is the listing service of the offer. It could be either the product service that the offer is referencing, or a generic private offer parent service. We recommend that you don't build your integration to rely on the meaning of this {service} part. * If the entitlement is in ENTITLEMENT_ACTIVATION_REQUESTED state, this field will be populated with the upcoming offer. * If the entitlement is in ENTITLEMENT_ACTIVE, ENTITLEMENT_PENDING_CANCELLATION, ENTITLEMENT_PENDING_PLAN_CHANGE, or ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL state, this field will be populated with the current offer. * If the entitlement is in ENTITLEMENT_CANCELLED state, then this field will be populated with the latest offer the order was associated with.", "readOnly": true, "type": "string" }, "offerDuration": { - "description": "Output only. The offer duration of the current offer in ISO 8601 duration format. Field is empty if entitlement was not made using an offer. If the offer was created with a specified end date instead of a duration, this field is empty.", + "description": "Output only. The offer duration of the current offer in ISO 8601 duration format. Field is empty if entitlement was not made using an offer. If the offer has a specified end date instead of a duration, this field is empty. * If the entitlement is in ENTITLEMENT_ACTIVATION_REQUESTED state, then this field will be populated with the duration of the upcoming offer, if the upcoming offer does not have a specified end date. Otherwise, this field will be empty. * If the entitlement is in ENTITLEMENT_ACTIVE, ENTITLEMENT_PENDING_CANCELLATION, ENTITLEMENT_PENDING_PLAN_CHANGE, or ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL state, then this field will be populated with the duration of the current offer if the current offer is does not have a specific end date. Otherwise, this field will be empty. * If the entitlement is in ENTITLEMENT_CANCELLED state, then this field will be populated with the duration of the latest offer the order was associated with if that offer does not have a specific end date. Otherwise, this field will be empty.", "readOnly": true, "type": "string" }, "offerEndTime": { - "description": "Output only. End time for the Offer association corresponding to this entitlement. The field is only populated if the entitlement is currently associated with an Offer.", + "description": "Output only. End time for the Offer associated with this entitlement. Note that this field value can change over time. This occurs naturally even if the offer is not changed, due to auto renewal. * If the entitlement is in ENTITLEMENT_ACTIVATION_REQUESTED state, then: * If the entitlement is not yet approved, then this field will be populated with the expected end time of the upcoming offer (in the future) if the upcoming offer has a specified end date. Otherwise this field will be empty. * If the entitlement is approved, then this field will always be populated with the expected end time of the upcoming offer (in the future). This means both this field, and the offer_duration field, can co-exist. * If the entitlement is in ENTITLEMENT_ACTIVE or ENTITLEMENT_PENDING_CANCELLATION state, then this field will be populated with the actual expected end time of the current offer (in the futre). Meaning, this field will be set, regardless of whether the offer has a specific end date or a duration. This means both this field, and the offer_duration field, can co-exist. * If the entitlement is in ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL or ENTITLEMENT_PENDING_PLAN_CHANGE state: * If the current offer has already ended and became pure PAYG, then this field reflects the ACTUAL end time of the current offer (in the past). * Otherwise, then this is the EXPECTED end date of the current offer (in the future). * If the entitlement is in ENTITLEMENT_CANCELLED state, then this field will be populated with the ACTUAL end time of the latest offer the order was associated with (in the past). If the entitlement was cancelled before any offer started, then this field will be empty.", "format": "google-datetime", "readOnly": true, "type": "string" @@ -800,7 +800,7 @@ ], "enumDescriptions": [ "Default state of the entitlement. It's only set to this value when the entitlement is first created and has not been initialized.", - "Indicates that the entitlement is being created and the backend has sent a notification to the provider for the activation approval. If the provider approves, then the entitlement will transition to the EntitlementState.ENTITLEMENT_ACTIVE state. Otherwise, the entitlement will be removed. Plan changes are not allowed in this state. Instead the entitlement is cancelled and re-created with a new plan name.", + "Indicates that the entitlement has been created but has not yet become active. The entitlement will remain in this state until it becomes active. If the entitlement requires provider approval, a notification is sent to the provider for the activation approval. If the provider does not approve, the entitlement is removed. If approved, the entitlement transitions to the EntitlementState.ENTITLEMENT_ACTIVE state after a delay, either a generally short processing delay or, if applicable, until the scheduled start time of the purchased offer. Plan changes are not allowed in this state. Instead, customers are expected to cancel the corresponding order and place a new order.", "Indicates that the entitlement is active. The procured item is now usable and any associated billing events will start occurring. Entitlements in this state WILL renew. The analogous state for an unexpired but non-renewing entitlement is ENTITLEMENT_PENDING_CANCELLATION. In this state, the customer can decide to cancel the entitlement, which would change the state to EntitlementState.ENTITLEMENT_PENDING_CANCELLATION, and then EntitlementState.ENTITLEMENT_CANCELLED. The user can also request a change of plan, which will transition the state to EntitlementState.ENTITLEMENT_PENDING_PLAN_CHANGE, and then back to EntitlementState.ENTITLEMENT_ACTIVE.", "Indicates that the entitlement will expire at the end of its term. This could mean the customer has elected not to renew this entitlement or the customer elected to cancel an entitlement that only expires at term end. The entitlement typically stays in this state if the entitlement/plan allows use of the underlying resource until the end of the current billing cycle. Once the billing cycle completes, the resource will transition to EntitlementState.ENTITLEMENT_CANCELLED state. The resource cannot be modified during this state.", "Indicates that the entitlement was cancelled. The entitlement can now be deleted.", diff --git a/cloudcommerceprocurement/v1/cloudcommerceprocurement-gen.go b/cloudcommerceprocurement/v1/cloudcommerceprocurement-gen.go index cd259c8409..fd767f1453 100644 --- a/cloudcommerceprocurement/v1/cloudcommerceprocurement-gen.go +++ b/cloudcommerceprocurement/v1/cloudcommerceprocurement-gen.go @@ -438,30 +438,63 @@ type Entitlement struct { // have the form `providers/{provider_id}/entitlements/{entitlement_id}`. Name string `json:"name,omitempty"` // NewOfferEndTime: Output only. The end time of the new offer. If the offer - // was created with a term instead of a specified end date, this field is + // was has a term duration instead of a specified end date, this field is // empty. This field is populated even if the entitlement isn't active yet. If - // there's no upcoming offer, the field is be empty. + // there's no upcoming offer, the field is empty. * If the entitlement is in + // ENTITLEMENT_ACTIVATION_REQUESTED, ENTITLEMENT_ACTIVE, or + // ENTITLEMENT_PENDING_CANCELLATION state, then this field will be empty. * If + // the entitlement is in ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL or + // ENTITLEMENT_PENDING_PLAN_CHANGE state, then this field will be populated + // with the expected end time of the upcoming offer (in the future) if the + // upcoming offer has a specified end date. Otherwise, this field will be + // empty. * If the entitlement is in ENTITLEMENT_CANCELLED state, then this + // field will be empty. NewOfferEndTime string `json:"newOfferEndTime,omitempty"` // NewOfferStartTime: Output only. The timestamp when the new offer becomes // effective. This field is populated even if the entitlement isn't active yet. - // If there's no upcoming offer, the field is empty. + // If there's no upcoming offer, the field is empty. * If the entitlement is in + // ENTITLEMENT_ACTIVATION_REQUESTED state, this field will not be populated + // when the entitlement is not yet approved. But after the entitlement is + // approved, then this field will be populated with effective time of the + // upcoming offer. * If the entitlement is in ENTITLEMENT_ACTIVE or + // ENTITLEMENT_PENDING_CANCELLATION state, this field will not be populated. * + // If the entitlement is in ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL state, + // this field will not be populated since the entitlement change is waiting on + // approval. * If the entitlement is in ENTITLEMENT_PENDING_PLAN_CHANGE state, + // this field will be populated with the expected effective time of the + // upcoming offer (in the future). * If the entitlement is in + // ENTITLEMENT_CANCELLED state, then this field will be empty. NewOfferStartTime string `json:"newOfferStartTime,omitempty"` // NewPendingOffer: Output only. The name of the offer the entitlement is // switching to upon a pending plan change. Only exists if the pending plan // change is moving to an offer. This field isn't populated for entitlements // which aren't active yet. Format: - // 'projects/{project}/services/{service}/privateOffers/{offer-id}' OR - // 'projects/{project}/services/{service}/standardOffers/{offer-id}', depending - // on whether the offer is private or public. The {service} in the name is the + // 'projects/{project}/services/{service}/privateOffers/{offer}' OR + // 'projects/{project}/services/{service}/standardOffers/{offer}', depending on + // whether the offer is private or public. The {service} in the name is the // listing service of the offer. It could be either the product service that // the offer is referencing, or a generic private offer parent service. We // recommend that you don't build your integration to rely on the meaning of - // this {service} part. + // this {service} part. * If the entitlement is in + // ENTITLEMENT_ACTIVATION_REQUESTED, ENTITLEMENT_ACTIVE or + // ENTITLEMENT_PENDING_CANCELLATION state, then this field will be empty. * If + // the entitlement is in ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL or + // ENTITLEMENT_PENDING_PLAN_CHANGE state, then this field will be populated + // with the upcoming offer. * If the entitlement is in ENTITLEMENT_CANCELLED + // state, then this will be empty. NewPendingOffer string `json:"newPendingOffer,omitempty"` // NewPendingOfferDuration: Output only. The duration of the new offer, in ISO // 8601 duration format. This field isn't populated for entitlements which - // aren't active yet, only for pending offer changes. If the offer was created - // with a specified end date instead of a duration, this field is empty. + // aren't active yet, only for pending offer changes. If the offer was has a + // specified end date instead of a duration, this field is empty. * If the + // entitlement is in ENTITLEMENT_ACTIVATION_REQUESTED, + // ENTITLEENTITLEMENT_ACTIVE, or ENTITLEMENT_PENDING_CANCELLATION state, then + // this field is empty. * If the entitlement is in + // ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL or ENTITLEMENT_PENDING_PLAN_CHANGE + // state, then this field will be populated with the duration of the upcoming + // offer, if the upcoming offer is does not have a specified end date. + // Otherwise, this field will be empty. * If the entitlement is in + // ENTITLEMENT_CANCELLED state, then this field will be empty. NewPendingOfferDuration string `json:"newPendingOfferDuration,omitempty"` // NewPendingPlan: Output only. The identifier of the pending new plan. // Required if the product has plans and the entitlement has a pending plan @@ -469,22 +502,61 @@ type Entitlement struct { NewPendingPlan string `json:"newPendingPlan,omitempty"` // Offer: Output only. The name of the offer that was procured. Field is empty // if order was not made using an offer. Format: - // 'projects/{project}/services/{service}/privateOffers/{offer-id}' OR - // 'projects/{project}/services/{service}/standardOffers/{offer-id}', depending - // on whether the offer is private or public. The {service} in the name is the + // 'projects/{project}/services/{service}/privateOffers/{offer}' OR + // 'projects/{project}/services/{service}/standardOffers/{offer}', depending on + // whether the offer is private or public. The {service} in the name is the // listing service of the offer. It could be either the product service that // the offer is referencing, or a generic private offer parent service. We // recommend that you don't build your integration to rely on the meaning of - // this {service} part. + // this {service} part. * If the entitlement is in + // ENTITLEMENT_ACTIVATION_REQUESTED state, this field will be populated with + // the upcoming offer. * If the entitlement is in ENTITLEMENT_ACTIVE, + // ENTITLEMENT_PENDING_CANCELLATION, ENTITLEMENT_PENDING_PLAN_CHANGE, or + // ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL state, this field will be populated + // with the current offer. * If the entitlement is in ENTITLEMENT_CANCELLED + // state, then this field will be populated with the latest offer the order was + // associated with. Offer string `json:"offer,omitempty"` // OfferDuration: Output only. The offer duration of the current offer in ISO // 8601 duration format. Field is empty if entitlement was not made using an - // offer. If the offer was created with a specified end date instead of a - // duration, this field is empty. + // offer. If the offer has a specified end date instead of a duration, this + // field is empty. * If the entitlement is in ENTITLEMENT_ACTIVATION_REQUESTED + // state, then this field will be populated with the duration of the upcoming + // offer, if the upcoming offer does not have a specified end date. Otherwise, + // this field will be empty. * If the entitlement is in ENTITLEMENT_ACTIVE, + // ENTITLEMENT_PENDING_CANCELLATION, ENTITLEMENT_PENDING_PLAN_CHANGE, or + // ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL state, then this field will be + // populated with the duration of the current offer if the current offer is + // does not have a specific end date. Otherwise, this field will be empty. * If + // the entitlement is in ENTITLEMENT_CANCELLED state, then this field will be + // populated with the duration of the latest offer the order was associated + // with if that offer does not have a specific end date. Otherwise, this field + // will be empty. OfferDuration string `json:"offerDuration,omitempty"` - // OfferEndTime: Output only. End time for the Offer association corresponding - // to this entitlement. The field is only populated if the entitlement is - // currently associated with an Offer. + // OfferEndTime: Output only. End time for the Offer associated with this + // entitlement. Note that this field value can change over time. This occurs + // naturally even if the offer is not changed, due to auto renewal. * If the + // entitlement is in ENTITLEMENT_ACTIVATION_REQUESTED state, then: * If the + // entitlement is not yet approved, then this field will be populated with the + // expected end time of the upcoming offer (in the future) if the upcoming + // offer has a specified end date. Otherwise this field will be empty. * If the + // entitlement is approved, then this field will always be populated with the + // expected end time of the upcoming offer (in the future). This means both + // this field, and the offer_duration field, can co-exist. * If the entitlement + // is in ENTITLEMENT_ACTIVE or ENTITLEMENT_PENDING_CANCELLATION state, then + // this field will be populated with the actual expected end time of the + // current offer (in the futre). Meaning, this field will be set, regardless of + // whether the offer has a specific end date or a duration. This means both + // this field, and the offer_duration field, can co-exist. * If the entitlement + // is in ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL or + // ENTITLEMENT_PENDING_PLAN_CHANGE state: * If the current offer has already + // ended and became pure PAYG, then this field reflects the ACTUAL end time of + // the current offer (in the past). * Otherwise, then this is the EXPECTED end + // date of the current offer (in the future). * If the entitlement is in + // ENTITLEMENT_CANCELLED state, then this field will be populated with the + // ACTUAL end time of the latest offer the order was associated with (in the + // past). If the entitlement was cancelled before any offer started, then this + // field will be empty. OfferEndTime string `json:"offerEndTime,omitempty"` // OrderId: Output only. The order ID of this entitlement, without any // `orders/` resource name prefix. @@ -513,12 +585,17 @@ type Entitlement struct { // "ENTITLEMENT_STATE_UNSPECIFIED" - Default state of the entitlement. It's // only set to this value when the entitlement is first created and has not // been initialized. - // "ENTITLEMENT_ACTIVATION_REQUESTED" - Indicates that the entitlement is - // being created and the backend has sent a notification to the provider for - // the activation approval. If the provider approves, then the entitlement will - // transition to the EntitlementState.ENTITLEMENT_ACTIVE state. Otherwise, the - // entitlement will be removed. Plan changes are not allowed in this state. - // Instead the entitlement is cancelled and re-created with a new plan name. + // "ENTITLEMENT_ACTIVATION_REQUESTED" - Indicates that the entitlement has + // been created but has not yet become active. The entitlement will remain in + // this state until it becomes active. If the entitlement requires provider + // approval, a notification is sent to the provider for the activation + // approval. If the provider does not approve, the entitlement is removed. If + // approved, the entitlement transitions to the + // EntitlementState.ENTITLEMENT_ACTIVE state after a delay, either a generally + // short processing delay or, if applicable, until the scheduled start time of + // the purchased offer. Plan changes are not allowed in this state. Instead, + // customers are expected to cancel the corresponding order and place a new + // order. // "ENTITLEMENT_ACTIVE" - Indicates that the entitlement is active. The // procured item is now usable and any associated billing events will start // occurring. Entitlements in this state WILL renew. The analogous state for an diff --git a/cloudfunctions/v1/cloudfunctions-api.json b/cloudfunctions/v1/cloudfunctions-api.json index e793a7efc5..a52796c068 100644 --- a/cloudfunctions/v1/cloudfunctions-api.json +++ b/cloudfunctions/v1/cloudfunctions-api.json @@ -185,7 +185,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -558,7 +558,7 @@ } } }, - "revision": "20250814", + "revision": "20250908", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AuditConfig": { diff --git a/cloudfunctions/v1/cloudfunctions-gen.go b/cloudfunctions/v1/cloudfunctions-gen.go index 8a7fbaf590..a9d1b6a131 100644 --- a/cloudfunctions/v1/cloudfunctions-gen.go +++ b/cloudfunctions/v1/cloudfunctions-gen.go @@ -1797,9 +1797,9 @@ func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall return c } -// ExtraLocationTypes sets the optional parameter "extraLocationTypes": Do not -// use this field. It is unsupported and is ignored unless explicitly -// documented otherwise. This is primarily for internal usage. +// ExtraLocationTypes sets the optional parameter "extraLocationTypes": Unless +// explicitly documented otherwise, don't use this unsupported field which is +// primarily intended for internal usage. func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall { c.urlParams_.SetMulti("extraLocationTypes", append([]string{}, extraLocationTypes...)) return c diff --git a/cloudfunctions/v2/cloudfunctions-api.json b/cloudfunctions/v2/cloudfunctions-api.json index e6d77e0fd1..473e7852f4 100644 --- a/cloudfunctions/v2/cloudfunctions-api.json +++ b/cloudfunctions/v2/cloudfunctions-api.json @@ -119,7 +119,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -750,7 +750,7 @@ } } }, - "revision": "20250902", + "revision": "20250908", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AbortFunctionUpgradeRequest": { diff --git a/cloudfunctions/v2/cloudfunctions-gen.go b/cloudfunctions/v2/cloudfunctions-gen.go index 576db16dc0..cbdcfdf421 100644 --- a/cloudfunctions/v2/cloudfunctions-gen.go +++ b/cloudfunctions/v2/cloudfunctions-gen.go @@ -2030,9 +2030,9 @@ func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall return c } -// ExtraLocationTypes sets the optional parameter "extraLocationTypes": Do not -// use this field. It is unsupported and is ignored unless explicitly -// documented otherwise. This is primarily for internal usage. +// ExtraLocationTypes sets the optional parameter "extraLocationTypes": Unless +// explicitly documented otherwise, don't use this unsupported field which is +// primarily intended for internal usage. func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall { c.urlParams_.SetMulti("extraLocationTypes", append([]string{}, extraLocationTypes...)) return c diff --git a/cloudfunctions/v2alpha/cloudfunctions-api.json b/cloudfunctions/v2alpha/cloudfunctions-api.json index 7ef14178ef..73997c7f21 100644 --- a/cloudfunctions/v2alpha/cloudfunctions-api.json +++ b/cloudfunctions/v2alpha/cloudfunctions-api.json @@ -119,7 +119,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -750,7 +750,7 @@ } } }, - "revision": "20250902", + "revision": "20250908", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AbortFunctionUpgradeRequest": { diff --git a/cloudfunctions/v2alpha/cloudfunctions-gen.go b/cloudfunctions/v2alpha/cloudfunctions-gen.go index ba16ba7626..8cbe2c5c4c 100644 --- a/cloudfunctions/v2alpha/cloudfunctions-gen.go +++ b/cloudfunctions/v2alpha/cloudfunctions-gen.go @@ -2030,9 +2030,9 @@ func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall return c } -// ExtraLocationTypes sets the optional parameter "extraLocationTypes": Do not -// use this field. It is unsupported and is ignored unless explicitly -// documented otherwise. This is primarily for internal usage. +// ExtraLocationTypes sets the optional parameter "extraLocationTypes": Unless +// explicitly documented otherwise, don't use this unsupported field which is +// primarily intended for internal usage. func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall { c.urlParams_.SetMulti("extraLocationTypes", append([]string{}, extraLocationTypes...)) return c diff --git a/cloudfunctions/v2beta/cloudfunctions-api.json b/cloudfunctions/v2beta/cloudfunctions-api.json index def99cbf71..e7186d6162 100644 --- a/cloudfunctions/v2beta/cloudfunctions-api.json +++ b/cloudfunctions/v2beta/cloudfunctions-api.json @@ -119,7 +119,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -750,7 +750,7 @@ } } }, - "revision": "20250902", + "revision": "20250908", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AbortFunctionUpgradeRequest": { diff --git a/cloudfunctions/v2beta/cloudfunctions-gen.go b/cloudfunctions/v2beta/cloudfunctions-gen.go index 186d4cdd0e..b3da3582bb 100644 --- a/cloudfunctions/v2beta/cloudfunctions-gen.go +++ b/cloudfunctions/v2beta/cloudfunctions-gen.go @@ -2030,9 +2030,9 @@ func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall return c } -// ExtraLocationTypes sets the optional parameter "extraLocationTypes": Do not -// use this field. It is unsupported and is ignored unless explicitly -// documented otherwise. This is primarily for internal usage. +// ExtraLocationTypes sets the optional parameter "extraLocationTypes": Unless +// explicitly documented otherwise, don't use this unsupported field which is +// primarily intended for internal usage. func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall { c.urlParams_.SetMulti("extraLocationTypes", append([]string{}, extraLocationTypes...)) return c diff --git a/contactcenterinsights/v1/contactcenterinsights-api.json b/contactcenterinsights/v1/contactcenterinsights-api.json index 4c65d8552d..660c147e98 100644 --- a/contactcenterinsights/v1/contactcenterinsights-api.json +++ b/contactcenterinsights/v1/contactcenterinsights-api.json @@ -5638,7 +5638,7 @@ } } }, - "revision": "20250901", + "revision": "20250909", "rootUrl": "https://contactcenterinsights.googleapis.com/", "schemas": { "GoogleCloudContactcenterinsightsV1Analysis": { @@ -9461,12 +9461,16 @@ "enum": [ "PREDEFINED_QUESTION_TYPE_UNSPECIFIED", "CONVERSATION_OUTCOME", - "CONVERSATION_OUTCOME_ESCALATION_INITIATOR_ROLE" + "CONVERSATION_OUTCOME_ESCALATION_INITIATOR_ROLE", + "CONVERSATION_OUTCOME_CUSTOMER_SATISFACTION", + "CONVERSATION_OUTCOME_AGENT_HELPFULNESS" ], "enumDescriptions": [ "The type of the predefined question is unspecified.", "A prebuilt classifier classfying the outcome of the conversation. For example, if the customer issue mentioned in a conversation has been resolved or not.", - "A prebuilt classifier classfying the initiator of the conversation escalation. For example, if it was initiated by the customer or the agent." + "A prebuilt classifier classfying the initiator of the conversation escalation. For example, if it was initiated by the customer or the agent.", + "A prebuilt classifier classfying whether the customer is satisfied with the agent's response.", + "A prebuilt classifier classfying whether the agent is helpful to the customer." ], "type": "string" } diff --git a/contactcenterinsights/v1/contactcenterinsights-gen.go b/contactcenterinsights/v1/contactcenterinsights-gen.go index a497e8e506..ee0d147f4f 100644 --- a/contactcenterinsights/v1/contactcenterinsights-gen.go +++ b/contactcenterinsights/v1/contactcenterinsights-gen.go @@ -5436,6 +5436,10 @@ type GoogleCloudContactcenterinsightsV1QaQuestionPredefinedQuestionConfig struct // "CONVERSATION_OUTCOME_ESCALATION_INITIATOR_ROLE" - A prebuilt classifier // classfying the initiator of the conversation escalation. For example, if it // was initiated by the customer or the agent. + // "CONVERSATION_OUTCOME_CUSTOMER_SATISFACTION" - A prebuilt classifier + // classfying whether the customer is satisfied with the agent's response. + // "CONVERSATION_OUTCOME_AGENT_HELPFULNESS" - A prebuilt classifier + // classfying whether the agent is helpful to the customer. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Type") to unconditionally // include in API requests. By default, fields with empty or default values are diff --git a/dataform/v1beta1/dataform-api.json b/dataform/v1beta1/dataform-api.json index b46f1501f3..27cc246956 100644 --- a/dataform/v1beta1/dataform-api.json +++ b/dataform/v1beta1/dataform-api.json @@ -173,7 +173,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -2462,7 +2462,7 @@ } } }, - "revision": "20250817", + "revision": "20250907", "rootUrl": "https://dataform.googleapis.com/", "schemas": { "ActionErrorTable": { diff --git a/dataform/v1beta1/dataform-gen.go b/dataform/v1beta1/dataform-gen.go index 6d1fe3e3c5..625fde4190 100644 --- a/dataform/v1beta1/dataform-gen.go +++ b/dataform/v1beta1/dataform-gen.go @@ -3804,9 +3804,9 @@ func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall return c } -// ExtraLocationTypes sets the optional parameter "extraLocationTypes": Do not -// use this field. It is unsupported and is ignored unless explicitly -// documented otherwise. This is primarily for internal usage. +// ExtraLocationTypes sets the optional parameter "extraLocationTypes": Unless +// explicitly documented otherwise, don't use this unsupported field which is +// primarily intended for internal usage. func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall { c.urlParams_.SetMulti("extraLocationTypes", append([]string{}, extraLocationTypes...)) return c diff --git a/dfareporting/v4/dfareporting-api.json b/dfareporting/v4/dfareporting-api.json index cf70967201..6688521c5b 100644 --- a/dfareporting/v4/dfareporting-api.json +++ b/dfareporting/v4/dfareporting-api.json @@ -10266,7 +10266,7 @@ } } }, - "revision": "20250828", + "revision": "20250902", "rootUrl": "https://dfareporting.googleapis.com/", "schemas": { "Account": { @@ -18875,6 +18875,10 @@ "$ref": "DimensionValue", "description": "Dimension value for the ID of the advertiser. This is a read-only, auto-generated field." }, + "allowOnYoutube": { + "description": "Optional. Whether the placement is enabled for YouTube integration.", + "type": "boolean" + }, "campaignId": { "description": "Campaign ID of this placement. This field is a required field on insertion.", "format": "int64", @@ -19137,6 +19141,10 @@ "wrappingOptOut": { "description": "Whether this placement opts out of tag wrapping.", "type": "boolean" + }, + "youtubeSettings": { + "$ref": "YoutubeSettings", + "description": "Optional. YouTube settings for the placement. The placement must be enabled for YouTube to use this field." } }, "type": "object" @@ -22670,6 +22678,105 @@ } }, "type": "object" + }, + "YoutubeSettings": { + "description": "Contains the YouTube settings.", + "id": "YoutubeSettings", + "properties": { + "businessLogoCreativeIds": { + "description": "Optional. The IDs of the creatives to use for the business logo. Currently only one creative is supported.", + "items": { + "format": "int64", + "type": "string" + }, + "type": "array" + }, + "businessName": { + "description": "Optional. The business name.", + "type": "string" + }, + "callToActions": { + "description": "Optional. The call to actions. Currently only one call to action is supported.", + "items": { + "enum": [ + "CALL_TO_ACTION_UNKNOWN", + "CALL_TO_ACTION_LEARN_MORE", + "CALL_TO_ACTION_GET_QUOTE", + "CALL_TO_ACTION_APPLY_NOW", + "CALL_TO_ACTION_SIGN_UP", + "CALL_TO_ACTION_CONTACT_US", + "CALL_TO_ACTION_SUBSCRIBE", + "CALL_TO_ACTION_DOWNLOAD", + "CALL_TO_ACTION_BOOK_NOW", + "CALL_TO_ACTION_GET_OFFER", + "CALL_TO_ACTION_SHOP_NOW", + "CALL_TO_ACTION_VISIT_STORE", + "CALL_TO_ACTION_CALL_NOW", + "CALL_TO_ACTION_VIEW_MENU", + "CALL_TO_ACTION_TEST_DRIVE", + "CALL_TO_ACTION_SCHEDULE_NOW", + "CALL_TO_ACTION_BUY_NOW", + "CALL_TO_ACTION_DONATE_NOW", + "CALL_TO_ACTION_ORDER_NOW", + "CALL_TO_ACTION_PLAY_NOW", + "CALL_TO_ACTION_SEE_MORE", + "CALL_TO_ACTION_START_NOW", + "CALL_TO_ACTION_VISIT_SITE", + "CALL_TO_ACTION_WATCH_NOW" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + }, + "type": "array" + }, + "descriptions": { + "description": "Optional. The descriptions. Currently only one description is supported.", + "items": { + "type": "string" + }, + "type": "array" + }, + "headlines": { + "description": "Optional. The headlines associated with the call to actions. Currently only one headline is supported.", + "items": { + "type": "string" + }, + "type": "array" + }, + "longHeadlines": { + "description": "Optional. The long headlines. Currently only one long headline is supported.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" } }, "servicePath": "dfareporting/v4/", diff --git a/dfareporting/v4/dfareporting-gen.go b/dfareporting/v4/dfareporting-gen.go index d0fb3b5439..ddb78fe615 100644 --- a/dfareporting/v4/dfareporting-gen.go +++ b/dfareporting/v4/dfareporting-gen.go @@ -9484,6 +9484,9 @@ type Placement struct { // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` + // AllowOnYoutube: Optional. Whether the placement is enabled for YouTube + // integration. + AllowOnYoutube bool `json:"allowOnYoutube,omitempty"` // CampaignId: Campaign ID of this placement. This field is a required field on // insertion. CampaignId int64 `json:"campaignId,omitempty,string"` @@ -9673,6 +9676,9 @@ type Placement struct { VpaidAdapterChoice string `json:"vpaidAdapterChoice,omitempty"` // WrappingOptOut: Whether this placement opts out of tag wrapping. WrappingOptOut bool `json:"wrappingOptOut,omitempty"` + // YoutubeSettings: Optional. YouTube settings for the placement. The placement + // must be enabled for YouTube to use this field. + YoutubeSettings *YoutubeSettings `json:"youtubeSettings,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` @@ -13414,6 +13420,69 @@ func (s VideoSettings) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// YoutubeSettings: Contains the YouTube settings. +type YoutubeSettings struct { + // BusinessLogoCreativeIds: Optional. The IDs of the creatives to use for the + // business logo. Currently only one creative is supported. + BusinessLogoCreativeIds googleapi.Int64s `json:"businessLogoCreativeIds,omitempty"` + // BusinessName: Optional. The business name. + BusinessName string `json:"businessName,omitempty"` + // CallToActions: Optional. The call to actions. Currently only one call to + // action is supported. + // + // Possible values: + // "CALL_TO_ACTION_UNKNOWN" + // "CALL_TO_ACTION_LEARN_MORE" + // "CALL_TO_ACTION_GET_QUOTE" + // "CALL_TO_ACTION_APPLY_NOW" + // "CALL_TO_ACTION_SIGN_UP" + // "CALL_TO_ACTION_CONTACT_US" + // "CALL_TO_ACTION_SUBSCRIBE" + // "CALL_TO_ACTION_DOWNLOAD" + // "CALL_TO_ACTION_BOOK_NOW" + // "CALL_TO_ACTION_GET_OFFER" + // "CALL_TO_ACTION_SHOP_NOW" + // "CALL_TO_ACTION_VISIT_STORE" + // "CALL_TO_ACTION_CALL_NOW" + // "CALL_TO_ACTION_VIEW_MENU" + // "CALL_TO_ACTION_TEST_DRIVE" + // "CALL_TO_ACTION_SCHEDULE_NOW" + // "CALL_TO_ACTION_BUY_NOW" + // "CALL_TO_ACTION_DONATE_NOW" + // "CALL_TO_ACTION_ORDER_NOW" + // "CALL_TO_ACTION_PLAY_NOW" + // "CALL_TO_ACTION_SEE_MORE" + // "CALL_TO_ACTION_START_NOW" + // "CALL_TO_ACTION_VISIT_SITE" + // "CALL_TO_ACTION_WATCH_NOW" + CallToActions []string `json:"callToActions,omitempty"` + // Descriptions: Optional. The descriptions. Currently only one description is + // supported. + Descriptions []string `json:"descriptions,omitempty"` + // Headlines: Optional. The headlines associated with the call to actions. + // Currently only one headline is supported. + Headlines []string `json:"headlines,omitempty"` + // LongHeadlines: Optional. The long headlines. Currently only one long + // headline is supported. + LongHeadlines []string `json:"longHeadlines,omitempty"` + // ForceSendFields is a list of field names (e.g. "BusinessLogoCreativeIds") 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. "BusinessLogoCreativeIds") 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 YoutubeSettings) MarshalJSON() ([]byte, error) { + type NoMethod YoutubeSettings + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + type AccountActiveAdSummariesGetCall struct { s *Service profileId int64 diff --git a/dfareporting/v5/dfareporting-api.json b/dfareporting/v5/dfareporting-api.json index 1e49293c24..6b1acc0a51 100644 --- a/dfareporting/v5/dfareporting-api.json +++ b/dfareporting/v5/dfareporting-api.json @@ -9806,7 +9806,7 @@ } } }, - "revision": "20250828", + "revision": "20250902", "rootUrl": "https://dfareporting.googleapis.com/", "schemas": { "Account": { @@ -18057,6 +18057,10 @@ "$ref": "DimensionValue", "description": "Dimension value for the ID of the advertiser. This is a read-only, auto-generated field." }, + "allowOnYoutube": { + "description": "Optional. Whether the placement is enabled for YouTube integration.", + "type": "boolean" + }, "campaignId": { "description": "Campaign ID of this placement. This field is a required field on insertion.", "format": "int64", @@ -18319,6 +18323,10 @@ "wrappingOptOut": { "description": "Whether this placement opts out of tag wrapping.", "type": "boolean" + }, + "youtubeSettings": { + "$ref": "YoutubeSettings", + "description": "Optional. YouTube settings for the placement. The placement must be enabled for YouTube to use this field." } }, "type": "object" @@ -21541,6 +21549,105 @@ } }, "type": "object" + }, + "YoutubeSettings": { + "description": "Contains the YouTube settings.", + "id": "YoutubeSettings", + "properties": { + "businessLogoCreativeIds": { + "description": "Optional. The IDs of the creatives to use for the business logo. Currently only one creative is supported.", + "items": { + "format": "int64", + "type": "string" + }, + "type": "array" + }, + "businessName": { + "description": "Optional. The business name.", + "type": "string" + }, + "callToActions": { + "description": "Optional. The call to actions. Currently only one call to action is supported.", + "items": { + "enum": [ + "CALL_TO_ACTION_UNKNOWN", + "CALL_TO_ACTION_LEARN_MORE", + "CALL_TO_ACTION_GET_QUOTE", + "CALL_TO_ACTION_APPLY_NOW", + "CALL_TO_ACTION_SIGN_UP", + "CALL_TO_ACTION_CONTACT_US", + "CALL_TO_ACTION_SUBSCRIBE", + "CALL_TO_ACTION_DOWNLOAD", + "CALL_TO_ACTION_BOOK_NOW", + "CALL_TO_ACTION_GET_OFFER", + "CALL_TO_ACTION_SHOP_NOW", + "CALL_TO_ACTION_VISIT_STORE", + "CALL_TO_ACTION_CALL_NOW", + "CALL_TO_ACTION_VIEW_MENU", + "CALL_TO_ACTION_TEST_DRIVE", + "CALL_TO_ACTION_SCHEDULE_NOW", + "CALL_TO_ACTION_BUY_NOW", + "CALL_TO_ACTION_DONATE_NOW", + "CALL_TO_ACTION_ORDER_NOW", + "CALL_TO_ACTION_PLAY_NOW", + "CALL_TO_ACTION_SEE_MORE", + "CALL_TO_ACTION_START_NOW", + "CALL_TO_ACTION_VISIT_SITE", + "CALL_TO_ACTION_WATCH_NOW" + ], + "enumDescriptions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "type": "string" + }, + "type": "array" + }, + "descriptions": { + "description": "Optional. The descriptions. Currently only one description is supported.", + "items": { + "type": "string" + }, + "type": "array" + }, + "headlines": { + "description": "Optional. The headlines associated with the call to actions. Currently only one headline is supported.", + "items": { + "type": "string" + }, + "type": "array" + }, + "longHeadlines": { + "description": "Optional. The long headlines. Currently only one long headline is supported.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" } }, "servicePath": "dfareporting/v5/", diff --git a/dfareporting/v5/dfareporting-gen.go b/dfareporting/v5/dfareporting-gen.go index b0c8007135..b7caf099b0 100644 --- a/dfareporting/v5/dfareporting-gen.go +++ b/dfareporting/v5/dfareporting-gen.go @@ -9149,6 +9149,9 @@ type Placement struct { // AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser. // This is a read-only, auto-generated field. AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"` + // AllowOnYoutube: Optional. Whether the placement is enabled for YouTube + // integration. + AllowOnYoutube bool `json:"allowOnYoutube,omitempty"` // CampaignId: Campaign ID of this placement. This field is a required field on // insertion. CampaignId int64 `json:"campaignId,omitempty,string"` @@ -9338,6 +9341,9 @@ type Placement struct { VpaidAdapterChoice string `json:"vpaidAdapterChoice,omitempty"` // WrappingOptOut: Whether this placement opts out of tag wrapping. WrappingOptOut bool `json:"wrappingOptOut,omitempty"` + // YoutubeSettings: Optional. YouTube settings for the placement. The placement + // must be enabled for YouTube to use this field. + YoutubeSettings *YoutubeSettings `json:"youtubeSettings,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` @@ -12823,6 +12829,69 @@ func (s VideoSettings) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// YoutubeSettings: Contains the YouTube settings. +type YoutubeSettings struct { + // BusinessLogoCreativeIds: Optional. The IDs of the creatives to use for the + // business logo. Currently only one creative is supported. + BusinessLogoCreativeIds googleapi.Int64s `json:"businessLogoCreativeIds,omitempty"` + // BusinessName: Optional. The business name. + BusinessName string `json:"businessName,omitempty"` + // CallToActions: Optional. The call to actions. Currently only one call to + // action is supported. + // + // Possible values: + // "CALL_TO_ACTION_UNKNOWN" + // "CALL_TO_ACTION_LEARN_MORE" + // "CALL_TO_ACTION_GET_QUOTE" + // "CALL_TO_ACTION_APPLY_NOW" + // "CALL_TO_ACTION_SIGN_UP" + // "CALL_TO_ACTION_CONTACT_US" + // "CALL_TO_ACTION_SUBSCRIBE" + // "CALL_TO_ACTION_DOWNLOAD" + // "CALL_TO_ACTION_BOOK_NOW" + // "CALL_TO_ACTION_GET_OFFER" + // "CALL_TO_ACTION_SHOP_NOW" + // "CALL_TO_ACTION_VISIT_STORE" + // "CALL_TO_ACTION_CALL_NOW" + // "CALL_TO_ACTION_VIEW_MENU" + // "CALL_TO_ACTION_TEST_DRIVE" + // "CALL_TO_ACTION_SCHEDULE_NOW" + // "CALL_TO_ACTION_BUY_NOW" + // "CALL_TO_ACTION_DONATE_NOW" + // "CALL_TO_ACTION_ORDER_NOW" + // "CALL_TO_ACTION_PLAY_NOW" + // "CALL_TO_ACTION_SEE_MORE" + // "CALL_TO_ACTION_START_NOW" + // "CALL_TO_ACTION_VISIT_SITE" + // "CALL_TO_ACTION_WATCH_NOW" + CallToActions []string `json:"callToActions,omitempty"` + // Descriptions: Optional. The descriptions. Currently only one description is + // supported. + Descriptions []string `json:"descriptions,omitempty"` + // Headlines: Optional. The headlines associated with the call to actions. + // Currently only one headline is supported. + Headlines []string `json:"headlines,omitempty"` + // LongHeadlines: Optional. The long headlines. Currently only one long + // headline is supported. + LongHeadlines []string `json:"longHeadlines,omitempty"` + // ForceSendFields is a list of field names (e.g. "BusinessLogoCreativeIds") 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. "BusinessLogoCreativeIds") 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 YoutubeSettings) MarshalJSON() ([]byte, error) { + type NoMethod YoutubeSettings + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + type AccountActiveAdSummariesGetCall struct { s *Service profileId int64 diff --git a/firebaseml/v2beta/firebaseml-api.json b/firebaseml/v2beta/firebaseml-api.json index 74b4ec5f99..cd26ed7d56 100644 --- a/firebaseml/v2beta/firebaseml-api.json +++ b/firebaseml/v2beta/firebaseml-api.json @@ -206,7 +206,7 @@ } } }, - "revision": "20250908", + "revision": "20250909", "rootUrl": "https://firebaseml.googleapis.com/", "schemas": { "Date": { @@ -844,7 +844,7 @@ "type": "string" }, "name": { - "description": "Required. The name of the function to call. Matches [FunctionDeclaration.name].", + "description": "Optional. The name of the function to call. Matches [FunctionDeclaration.name].", "type": "string" } }, diff --git a/firebaseml/v2beta/firebaseml-gen.go b/firebaseml/v2beta/firebaseml-gen.go index 89805fe051..26d2cdfaaa 100644 --- a/firebaseml/v2beta/firebaseml-gen.go +++ b/firebaseml/v2beta/firebaseml-gen.go @@ -1035,7 +1035,7 @@ type GoogleCloudAiplatformV1beta1FunctionCall struct { // to execute the `function_call` and return the response with the matching // `id`. Id string `json:"id,omitempty"` - // Name: Required. The name of the function to call. Matches + // Name: Optional. The name of the function to call. Matches // [FunctionDeclaration.name]. Name string `json:"name,omitempty"` // ForceSendFields is a list of field names (e.g. "Args") to unconditionally diff --git a/gkehub/v1beta/gkehub-api.json b/gkehub/v1beta/gkehub-api.json index 7c3aa9a106..56b49d2015 100644 --- a/gkehub/v1beta/gkehub-api.json +++ b/gkehub/v1beta/gkehub-api.json @@ -192,7 +192,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -2117,7 +2117,7 @@ } } }, - "revision": "20250829", + "revision": "20250907", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AppDevExperienceFeatureSpec": { @@ -6207,8 +6207,12 @@ "description": "Optional. The Connect agent version to use for connect_resources. Defaults to the latest GKE Connect version. The version must be a currently supported version, obsolete versions will be rejected.", "type": "string" }, + "k8sGitVersion": { + "description": "Optional. Git version of the Kubernetes cluster. This is only used to gate the Connect Agent migration to svc.id.goog on GDC-SO 1.33.100 patch and above.", + "type": "string" + }, "k8sVersion": { - "description": "Optional. Major version of the Kubernetes cluster. This is only used to determine which version to use for the CustomResourceDefinition resources, `apiextensions/v1beta1` or`apiextensions/v1`.", + "description": "Optional. Major and minor version of the Kubernetes cluster. This is only used to determine which version to use for the CustomResourceDefinition resources, `apiextensions/v1beta1` or`apiextensions/v1`.", "type": "string" }, "v1beta1Crd": { diff --git a/gkehub/v1beta/gkehub-gen.go b/gkehub/v1beta/gkehub-gen.go index 90469bb2f7..68f39cd938 100644 --- a/gkehub/v1beta/gkehub-gen.go +++ b/gkehub/v1beta/gkehub-gen.go @@ -5452,9 +5452,14 @@ type ResourceOptions struct { // connect_resources. Defaults to the latest GKE Connect version. The version // must be a currently supported version, obsolete versions will be rejected. ConnectVersion string `json:"connectVersion,omitempty"` - // K8sVersion: Optional. Major version of the Kubernetes cluster. This is only - // used to determine which version to use for the CustomResourceDefinition - // resources, `apiextensions/v1beta1` or`apiextensions/v1`. + // K8sGitVersion: Optional. Git version of the Kubernetes cluster. This is only + // used to gate the Connect Agent migration to svc.id.goog on GDC-SO 1.33.100 + // patch and above. + K8sGitVersion string `json:"k8sGitVersion,omitempty"` + // K8sVersion: Optional. Major and minor version of the Kubernetes cluster. + // This is only used to determine which version to use for the + // CustomResourceDefinition resources, `apiextensions/v1beta1` + // or`apiextensions/v1`. K8sVersion string `json:"k8sVersion,omitempty"` // V1beta1Crd: Optional. Use `apiextensions/v1beta1` instead of // `apiextensions/v1` for CustomResourceDefinition resources. This option @@ -6385,9 +6390,9 @@ func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall return c } -// ExtraLocationTypes sets the optional parameter "extraLocationTypes": Do not -// use this field. It is unsupported and is ignored unless explicitly -// documented otherwise. This is primarily for internal usage. +// ExtraLocationTypes sets the optional parameter "extraLocationTypes": Unless +// explicitly documented otherwise, don't use this unsupported field which is +// primarily intended for internal usage. func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall { c.urlParams_.SetMulti("extraLocationTypes", append([]string{}, extraLocationTypes...)) return c diff --git a/merchantapi/accounts/v1/merchantapi-api.json b/merchantapi/accounts/v1/merchantapi-api.json index a9a462814f..f0083ff437 100644 --- a/merchantapi/accounts/v1/merchantapi-api.json +++ b/merchantapi/accounts/v1/merchantapi-api.json @@ -180,6 +180,21 @@ "https://www.googleapis.com/auth/content" ] }, + "getAccountForGcpRegistration": { + "description": "Retrieves the merchant account that the calling GCP is registered with.", + "flatPath": "accounts/v1/accounts:getAccountForGcpRegistration", + "httpMethod": "GET", + "id": "merchantapi.accounts.getAccountForGcpRegistration", + "parameterOrder": [], + "parameters": {}, + "path": "accounts/v1/accounts:getAccountForGcpRegistration", + "response": { + "$ref": "GetAccountForGcpRegistrationResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/content" + ] + }, "list": { "description": "Note: For the `accounts.list` method, quota and limits usage are charged for each user, and not for the Merchant Center ID or the advanced account ID. To list several sub-accounts, you should use the `accounts.listSubaccounts` method, which is more suitable for advanced accounts use case.", "flatPath": "accounts/v1/accounts", @@ -2361,7 +2376,7 @@ } } }, - "revision": "20250830", + "revision": "20250909", "rootUrl": "https://merchantapi.googleapis.com/", "schemas": { "About": { @@ -3486,6 +3501,17 @@ }, "type": "object" }, + "GetAccountForGcpRegistrationResponse": { + "description": "Response message for the GetAccountForGcpRegistration method.", + "id": "GetAccountForGcpRegistrationResponse", + "properties": { + "name": { + "description": "The name of the merchant account id that the GCP is registered with.", + "type": "string" + } + }, + "type": "object" + }, "Handshake": { "description": "The current status of establishing of the service. (for example, pending approval or approved).", "id": "Handshake", diff --git a/merchantapi/accounts/v1/merchantapi-gen.go b/merchantapi/accounts/v1/merchantapi-gen.go index 8408f6b155..1962a6763a 100644 --- a/merchantapi/accounts/v1/merchantapi-gen.go +++ b/merchantapi/accounts/v1/merchantapi-gen.go @@ -2010,6 +2010,32 @@ func (s GeoTargetArea) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GetAccountForGcpRegistrationResponse: Response message for the +// GetAccountForGcpRegistration method. +type GetAccountForGcpRegistrationResponse struct { + // Name: The name of the merchant account id that the GCP is registered with. + Name string `json:"name,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. 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. "Name") 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 GetAccountForGcpRegistrationResponse) MarshalJSON() ([]byte, error) { + type NoMethod GetAccountForGcpRegistrationResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // Handshake: The current status of establishing of the service. (for example, // pending approval or approved). type Handshake struct { @@ -5135,6 +5161,110 @@ func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) { return ret, nil } +type AccountsGetAccountForGcpRegistrationCall struct { + s *APIService + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetAccountForGcpRegistration: Retrieves the merchant account that the +// calling GCP is registered with. +func (r *AccountsService) GetAccountForGcpRegistration() *AccountsGetAccountForGcpRegistrationCall { + c := &AccountsGetAccountForGcpRegistrationCall{s: r.s, urlParams_: make(gensupport.URLParams)} + 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 *AccountsGetAccountForGcpRegistrationCall) Fields(s ...googleapi.Field) *AccountsGetAccountForGcpRegistrationCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *AccountsGetAccountForGcpRegistrationCall) IfNoneMatch(entityTag string) *AccountsGetAccountForGcpRegistrationCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *AccountsGetAccountForGcpRegistrationCall) Context(ctx context.Context) *AccountsGetAccountForGcpRegistrationCall { + 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 *AccountsGetAccountForGcpRegistrationCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsGetAccountForGcpRegistrationCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/v1/accounts:getAccountForGcpRegistration") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "merchantapi.accounts.getAccountForGcpRegistration", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "merchantapi.accounts.getAccountForGcpRegistration" call. +// Any non-2xx status code is an error. Response headers are in either +// *GetAccountForGcpRegistrationResponse.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 *AccountsGetAccountForGcpRegistrationCall) Do(opts ...googleapi.CallOption) (*GetAccountForGcpRegistrationResponse, 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 := &GetAccountForGcpRegistrationResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "merchantapi.accounts.getAccountForGcpRegistration", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + type AccountsListCall struct { s *APIService urlParams_ gensupport.URLParams diff --git a/netapp/v1/netapp-api.json b/netapp/v1/netapp-api.json index 547a4d7ab1..fbb87aa692 100644 --- a/netapp/v1/netapp-api.json +++ b/netapp/v1/netapp-api.json @@ -144,7 +144,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -2270,7 +2270,7 @@ } } }, - "revision": "20250901", + "revision": "20250908", "rootUrl": "https://netapp.googleapis.com/", "schemas": { "ActiveDirectory": { @@ -3900,6 +3900,11 @@ "description": "Comma separated list of allowed clients IP addresses", "type": "string" }, + "anonUid": { + "description": "Optional. An integer representing the anonymous user ID. Range is 0 to 4294967295. Required when squash_mode is ROOT_SQUASH or ALL_SQUASH.", + "format": "int64", + "type": "string" + }, "hasRootAccess": { "description": "Whether Unix root access will be granted.", "type": "string" @@ -3935,6 +3940,22 @@ "nfsv4": { "description": "NFS V4 protocol.", "type": "boolean" + }, + "squashMode": { + "description": "Optional. Defines how user identity squashing is applied for this export rule. This field is the preferred way to configure squashing behavior and takes precedence over `has_root_access` if both are provided.", + "enum": [ + "SQUASH_MODE_UNSPECIFIED", + "NO_ROOT_SQUASH", + "ROOT_SQUASH", + "ALL_SQUASH" + ], + "enumDescriptions": [ + "Defaults to NO_ROOT_SQUASH.", + "The root user (UID 0) retains full access. Other users are unaffected.", + "The root user (UID 0) is squashed to anonymous user ID. Other users are unaffected.", + "All users are squashed to anonymous user ID." + ], + "type": "string" } }, "type": "object" diff --git a/netapp/v1/netapp-gen.go b/netapp/v1/netapp-gen.go index b288f8c888..b3171d1261 100644 --- a/netapp/v1/netapp-gen.go +++ b/netapp/v1/netapp-gen.go @@ -1928,6 +1928,9 @@ type SimpleExportPolicyRule struct { AccessType string `json:"accessType,omitempty"` // AllowedClients: Comma separated list of allowed clients IP addresses AllowedClients string `json:"allowedClients,omitempty"` + // AnonUid: Optional. An integer representing the anonymous user ID. Range is 0 + // to 4294967295. Required when squash_mode is ROOT_SQUASH or ALL_SQUASH. + AnonUid int64 `json:"anonUid,omitempty,string"` // HasRootAccess: Whether Unix root access will be granted. HasRootAccess string `json:"hasRootAccess,omitempty"` // Kerberos5ReadOnly: If enabled (true) the rule defines a read only access for @@ -1961,6 +1964,18 @@ type SimpleExportPolicyRule struct { Nfsv3 bool `json:"nfsv3,omitempty"` // Nfsv4: NFS V4 protocol. Nfsv4 bool `json:"nfsv4,omitempty"` + // SquashMode: Optional. Defines how user identity squashing is applied for + // this export rule. This field is the preferred way to configure squashing + // behavior and takes precedence over `has_root_access` if both are provided. + // + // Possible values: + // "SQUASH_MODE_UNSPECIFIED" - Defaults to NO_ROOT_SQUASH. + // "NO_ROOT_SQUASH" - The root user (UID 0) retains full access. Other users + // are unaffected. + // "ROOT_SQUASH" - The root user (UID 0) is squashed to anonymous user ID. + // Other users are unaffected. + // "ALL_SQUASH" - All users are squashed to anonymous user ID. + SquashMode string `json:"squashMode,omitempty"` // ForceSendFields is a list of field names (e.g. "AccessType") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -2836,9 +2851,9 @@ func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall return c } -// ExtraLocationTypes sets the optional parameter "extraLocationTypes": Do not -// use this field. It is unsupported and is ignored unless explicitly -// documented otherwise. This is primarily for internal usage. +// ExtraLocationTypes sets the optional parameter "extraLocationTypes": Unless +// explicitly documented otherwise, don't use this unsupported field which is +// primarily intended for internal usage. func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall { c.urlParams_.SetMulti("extraLocationTypes", append([]string{}, extraLocationTypes...)) return c diff --git a/netapp/v1beta1/netapp-api.json b/netapp/v1beta1/netapp-api.json index 5f6d3a47f8..8926c52cc1 100644 --- a/netapp/v1beta1/netapp-api.json +++ b/netapp/v1beta1/netapp-api.json @@ -144,7 +144,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -2326,7 +2326,7 @@ } } }, - "revision": "20250901", + "revision": "20250908", "rootUrl": "https://netapp.googleapis.com/", "schemas": { "ActiveDirectory": { @@ -2820,7 +2820,7 @@ "Default unspecified state.", "State indicating waiting for cluster peering to be established.", "State indicating waiting for SVM peering to be established.", - "State indiciating successful establishment of peering with origin volumes's ONTAP cluster.", + "State indicating successful establishment of peering with origin volumes's ONTAP cluster.", "Terminal state wherein peering with origin volume's ONTAP cluster has failed." ], "readOnly": true, @@ -4088,6 +4088,11 @@ "description": "Comma separated list of allowed clients IP addresses", "type": "string" }, + "anonUid": { + "description": "Optional. An integer representing the anonymous user ID. Range is 0 to 4294967295. Required when squash_mode is ROOT_SQUASH or ALL_SQUASH.", + "format": "int64", + "type": "string" + }, "hasRootAccess": { "description": "Whether Unix root access will be granted.", "type": "string" @@ -4123,6 +4128,22 @@ "nfsv4": { "description": "NFS V4 protocol.", "type": "boolean" + }, + "squashMode": { + "description": "Optional. Defines how user identity squashing is applied for this export rule. This field is the preferred way to configure squashing behavior and takes precedence over `has_root_access` if both are provided.", + "enum": [ + "SQUASH_MODE_UNSPECIFIED", + "NO_ROOT_SQUASH", + "ROOT_SQUASH", + "ALL_SQUASH" + ], + "enumDescriptions": [ + "Defaults to NO_ROOT_SQUASH.", + "The root user (UID 0) retains full access. Other users are unaffected.", + "The root user (UID 0) is squashed to anonymous user ID. Other users are unaffected.", + "All users are squashed to anonymous user ID." + ], + "type": "string" } }, "type": "object" diff --git a/netapp/v1beta1/netapp-gen.go b/netapp/v1beta1/netapp-gen.go index 60709869b5..2a59242c26 100644 --- a/netapp/v1beta1/netapp-gen.go +++ b/netapp/v1beta1/netapp-gen.go @@ -720,7 +720,7 @@ type CacheParameters struct { // to be established. // "PENDING_SVM_PEERING" - State indicating waiting for SVM peering to be // established. - // "PEERED" - State indiciating successful establishment of peering with + // "PEERED" - State indicating successful establishment of peering with // origin volumes's ONTAP cluster. // "ERROR" - Terminal state wherein peering with origin volume's ONTAP // cluster has failed. @@ -2073,6 +2073,9 @@ type SimpleExportPolicyRule struct { AccessType string `json:"accessType,omitempty"` // AllowedClients: Comma separated list of allowed clients IP addresses AllowedClients string `json:"allowedClients,omitempty"` + // AnonUid: Optional. An integer representing the anonymous user ID. Range is 0 + // to 4294967295. Required when squash_mode is ROOT_SQUASH or ALL_SQUASH. + AnonUid int64 `json:"anonUid,omitempty,string"` // HasRootAccess: Whether Unix root access will be granted. HasRootAccess string `json:"hasRootAccess,omitempty"` // Kerberos5ReadOnly: If enabled (true) the rule defines a read only access for @@ -2106,6 +2109,18 @@ type SimpleExportPolicyRule struct { Nfsv3 bool `json:"nfsv3,omitempty"` // Nfsv4: NFS V4 protocol. Nfsv4 bool `json:"nfsv4,omitempty"` + // SquashMode: Optional. Defines how user identity squashing is applied for + // this export rule. This field is the preferred way to configure squashing + // behavior and takes precedence over `has_root_access` if both are provided. + // + // Possible values: + // "SQUASH_MODE_UNSPECIFIED" - Defaults to NO_ROOT_SQUASH. + // "NO_ROOT_SQUASH" - The root user (UID 0) retains full access. Other users + // are unaffected. + // "ROOT_SQUASH" - The root user (UID 0) is squashed to anonymous user ID. + // Other users are unaffected. + // "ALL_SQUASH" - All users are squashed to anonymous user ID. + SquashMode string `json:"squashMode,omitempty"` // ForceSendFields is a list of field names (e.g. "AccessType") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -2983,9 +2998,9 @@ func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall return c } -// ExtraLocationTypes sets the optional parameter "extraLocationTypes": Do not -// use this field. It is unsupported and is ignored unless explicitly -// documented otherwise. This is primarily for internal usage. +// ExtraLocationTypes sets the optional parameter "extraLocationTypes": Unless +// explicitly documented otherwise, don't use this unsupported field which is +// primarily intended for internal usage. func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall { c.urlParams_.SetMulti("extraLocationTypes", append([]string{}, extraLocationTypes...)) return c diff --git a/networkmanagement/v1/networkmanagement-api.json b/networkmanagement/v1/networkmanagement-api.json index 2262e6f4d6..5b070f6216 100644 --- a/networkmanagement/v1/networkmanagement-api.json +++ b/networkmanagement/v1/networkmanagement-api.json @@ -144,7 +144,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -305,6 +305,173 @@ ] } } + }, + "vpcFlowLogsConfigs": { + "methods": { + "create": { + "description": "Creates a new `VpcFlowLogsConfig`. If a configuration with the exact same settings already exists (even if the ID is different), the creation fails. Notes: 1. Creating a configuration with `state=DISABLED` will fail 2. The following fields are not considered as settings for the purpose of the check mentioned above, therefore - creating another configuration with the same fields but different values for the following fields will fail as well: * name * create_time * update_time * labels * description", + "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/vpcFlowLogsConfigs", + "httpMethod": "POST", + "id": "networkmanagement.organizations.locations.vpcFlowLogsConfigs.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent resource of the VpcFlowLogsConfig to create, in one of the following formats: - For project-level resources: `projects/{project_id}/locations/global` - For organization-level resources: `organizations/{organization_id}/locations/global`", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "vpcFlowLogsConfigId": { + "description": "Required. ID of the `VpcFlowLogsConfig`.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/vpcFlowLogsConfigs", + "request": { + "$ref": "VpcFlowLogsConfig" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a specific `VpcFlowLogsConfig`.", + "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/vpcFlowLogsConfigs/{vpcFlowLogsConfigsId}", + "httpMethod": "DELETE", + "id": "networkmanagement.organizations.locations.vpcFlowLogsConfigs.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name of the VpcFlowLogsConfig, in one of the following formats: - For a project-level resource: `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - For an organization-level resource: `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+/vpcFlowLogsConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the details of a specific `VpcFlowLogsConfig`.", + "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/vpcFlowLogsConfigs/{vpcFlowLogsConfigsId}", + "httpMethod": "GET", + "id": "networkmanagement.organizations.locations.vpcFlowLogsConfigs.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name of the VpcFlowLogsConfig, in one of the following formats: - For project-level resources: `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - For organization-level resources: `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+/vpcFlowLogsConfigs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "VpcFlowLogsConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists all `VpcFlowLogsConfigs` in a given organization.", + "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/vpcFlowLogsConfigs", + "httpMethod": "GET", + "id": "networkmanagement.organizations.locations.vpcFlowLogsConfigs.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Lists the `VpcFlowLogsConfigs` that match the filter expression. A filter expression must use the supported [CEL logic operators] (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. Field to use to sort the list.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. Number of `VpcFlowLogsConfigs` to return.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. Page token from an earlier query, as returned in `next_page_token`.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource of the VpcFlowLogsConfig, in one of the following formats: - For project-level resourcs: `projects/{project_id}/locations/global` - For organization-level resources: `organizations/{organization_id}/locations/global`", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/vpcFlowLogsConfigs", + "response": { + "$ref": "ListVpcFlowLogsConfigsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates an existing `VpcFlowLogsConfig`. If a configuration with the exact same settings already exists (even if the ID is different), the creation fails. Notes: 1. Updating a configuration with `state=DISABLED` will fail 2. The following fields are not considered as settings for the purpose of the check mentioned above, therefore - updating another configuration with the same fields but different values for the following fields will fail as well: * name * create_time * update_time * labels * description", + "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/vpcFlowLogsConfigs/{vpcFlowLogsConfigsId}", + "httpMethod": "PATCH", + "id": "networkmanagement.organizations.locations.vpcFlowLogsConfigs.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Identifier. Unique name of the configuration. The name can have one of the following forms: - For project-level configurations: `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - For organization-level configurations: `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+/vpcFlowLogsConfigs/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Required. Mask of fields to update. At least one path must be supplied in this field. For example, to change the state of the configuration to ENABLED, specify `update_mask` = `\"state\"`, and the `vpc_flow_logs_config` would be: `vpc_flow_logs_config = { name = \"projects/my-project/locations/global/vpcFlowLogsConfigs/my-config\" state = \"ENABLED\" }`", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "VpcFlowLogsConfig" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } } } } @@ -349,7 +516,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -1281,6 +1448,93 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "queryOrgVpcFlowLogsConfigs": { + "description": "QueryOrgVpcFlowLogsConfigs returns a list of all organization-level VPC Flow Logs configurations applicable to the specified project.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/vpcFlowLogsConfigs:queryOrgVpcFlowLogsConfigs", + "httpMethod": "GET", + "id": "networkmanagement.projects.locations.vpcFlowLogsConfigs.queryOrgVpcFlowLogsConfigs", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Lists the `VpcFlowLogsConfigs` that match the filter expression. A filter expression must use the supported [CEL logic operators] (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. Number of `VpcFlowLogsConfigs` to return.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. Page token from an earlier query, as returned in `next_page_token`.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource of the VpcFlowLogsConfig, specified in the following format: `projects/{project_id}/locations/global`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/vpcFlowLogsConfigs:queryOrgVpcFlowLogsConfigs", + "response": { + "$ref": "QueryOrgVpcFlowLogsConfigsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "showEffectiveFlowLogsConfigs": { + "description": "ShowEffectiveFlowLogsConfigs returns a list of all VPC Flow Logs configurations applicable to a specified resource.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/vpcFlowLogsConfigs:showEffectiveFlowLogsConfigs", + "httpMethod": "GET", + "id": "networkmanagement.projects.locations.vpcFlowLogsConfigs.showEffectiveFlowLogsConfigs", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Lists the `EffectiveVpcFlowLogsConfigs` that match the filter expression. A filter expression must use the supported [CEL logic operators] (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. Number of `EffectiveVpcFlowLogsConfigs` to return. Default is 30.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. Page token from an earlier query, as returned in `next_page_token`.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource of the VpcFlowLogsConfig, specified in the following format: `projects/{project_id}/locations/global`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "resource": { + "description": "Required. The resource to get the effective VPC Flow Logs configuration for. The resource must belong to the same project as the parent. The resource must be a network, subnetwork, interconnect attachment, VPN tunnel, or a project.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/vpcFlowLogsConfigs:showEffectiveFlowLogsConfigs", + "response": { + "$ref": "ShowEffectiveFlowLogsConfigsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } } } @@ -1289,7 +1543,7 @@ } } }, - "revision": "20250901", + "revision": "20250905", "rootUrl": "https://networkmanagement.googleapis.com/", "schemas": { "AbortInfo": { @@ -2095,6 +2349,137 @@ }, "type": "object" }, + "EffectiveVpcFlowLogsConfig": { + "description": "A configuration to generate a response for GetEffectiveVpcFlowLogsConfig request.", + "id": "EffectiveVpcFlowLogsConfig", + "properties": { + "aggregationInterval": { + "description": "The aggregation interval for the logs. Default value is INTERVAL_5_SEC.", + "enum": [ + "AGGREGATION_INTERVAL_UNSPECIFIED", + "INTERVAL_5_SEC", + "INTERVAL_30_SEC", + "INTERVAL_1_MIN", + "INTERVAL_5_MIN", + "INTERVAL_10_MIN", + "INTERVAL_15_MIN" + ], + "enumDescriptions": [ + "If not specified, will default to INTERVAL_5_SEC.", + "Aggregate logs in 5s intervals.", + "Aggregate logs in 30s intervals.", + "Aggregate logs in 1m intervals.", + "Aggregate logs in 5m intervals.", + "Aggregate logs in 10m intervals.", + "Aggregate logs in 15m intervals." + ], + "type": "string" + }, + "crossProjectMetadata": { + "description": "Determines whether to include cross project annotations in the logs. This field is available only for organization configurations. If not specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.", + "enum": [ + "CROSS_PROJECT_METADATA_UNSPECIFIED", + "CROSS_PROJECT_METADATA_ENABLED", + "CROSS_PROJECT_METADATA_DISABLED" + ], + "enumDescriptions": [ + "If not specified, the default is CROSS_PROJECT_METADATA_ENABLED.", + "When CROSS_PROJECT_METADATA_ENABLED, metadata from other projects will be included in the logs.", + "When CROSS_PROJECT_METADATA_DISABLED, metadata from other projects will not be included in the logs." + ], + "type": "string" + }, + "filterExpr": { + "description": "Export filter used to define which VPC Flow Logs should be logged.", + "type": "string" + }, + "flowSampling": { + "description": "The value of the field must be in (0, 1]. The sampling rate of VPC Flow Logs where 1.0 means all collected logs are reported. Setting the sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs, use the state field instead. Default value is 1.0.", + "format": "float", + "type": "number" + }, + "interconnectAttachment": { + "description": "Traffic will be logged from the Interconnect Attachment. Format: projects/{project_id}/regions/{region}/interconnectAttachments/{name}", + "type": "string" + }, + "metadata": { + "description": "Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default value is INCLUDE_ALL_METADATA.", + "enum": [ + "METADATA_UNSPECIFIED", + "INCLUDE_ALL_METADATA", + "EXCLUDE_ALL_METADATA", + "CUSTOM_METADATA" + ], + "enumDescriptions": [ + "If not specified, will default to INCLUDE_ALL_METADATA.", + "Include all metadata fields.", + "Exclude all metadata fields.", + "Include only custom fields (specified in metadata_fields)." + ], + "type": "string" + }, + "metadataFields": { + "description": "Custom metadata fields to include in the reported VPC flow logs. Can only be specified if \"metadata\" was set to CUSTOM_METADATA.", + "items": { + "type": "string" + }, + "type": "array" + }, + "name": { + "description": "Unique name of the configuration. The name can have one of the following forms: - For project-level configurations: `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - For organization-level configurations: `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - For a Compute config, the name will be the path of the subnet: `projects/{project_id}/regions/{region}/subnetworks/{subnet_id}`", + "type": "string" + }, + "network": { + "description": "Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments within the network. Format: projects/{project_id}/global/networks/{name}", + "type": "string" + }, + "scope": { + "description": "Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..).", + "enum": [ + "SCOPE_UNSPECIFIED", + "SUBNET", + "COMPUTE_API_SUBNET", + "NETWORK", + "VPN_TUNNEL", + "INTERCONNECT_ATTACHMENT", + "ORGANIZATION" + ], + "enumDescriptions": [ + "Scope is unspecified.", + "Target resource is a subnet (Network Management API).", + "Target resource is a subnet, and the config originates from the Compute API.", + "Target resource is a network.", + "Target resource is a VPN tunnel.", + "Target resource is an interconnect attachment.", + "Configuration applies to an entire organization." + ], + "type": "string" + }, + "state": { + "description": "The state of the VPC Flow Log configuration. Default value is ENABLED. When creating a new configuration, it must be enabled. Setting state=DISABLED will pause the log generation for this config.", + "enum": [ + "STATE_UNSPECIFIED", + "ENABLED", + "DISABLED" + ], + "enumDescriptions": [ + "If not specified, will default to ENABLED.", + "When ENABLED, this configuration will generate logs.", + "When DISABLED, this configuration will not generate logs." + ], + "type": "string" + }, + "subnet": { + "description": "Traffic will be logged from VMs within the subnetwork. Format: projects/{project_id}/regions/{region}/subnetworks/{name}", + "type": "string" + }, + "vpnTunnel": { + "description": "Traffic will be logged from the VPN Tunnel. Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}", + "type": "string" + } + }, + "type": "object" + }, "Empty": { "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "id": "Empty", @@ -3359,14 +3744,16 @@ "INTERNAL_TO_EXTERNAL", "EXTERNAL_TO_INTERNAL", "CLOUD_NAT", - "PRIVATE_SERVICE_CONNECT" + "PRIVATE_SERVICE_CONNECT", + "GKE_POD_IP_MASQUERADING" ], "enumDescriptions": [ "Type is unspecified.", "From Compute Engine instance's internal address to external address.", "From Compute Engine instance's external address to internal address.", "Cloud NAT Gateway.", - "Private service connect NAT." + "Private service connect NAT.", + "GKE Pod IP address masquerading." ], "type": "string" } @@ -3903,6 +4290,31 @@ }, "type": "object" }, + "QueryOrgVpcFlowLogsConfigsResponse": { + "description": "Response for the `QueryVpcFlowLogsConfigs` method.", + "id": "QueryOrgVpcFlowLogsConfigsResponse", + "properties": { + "nextPageToken": { + "description": "Page token to fetch the next set of configurations.", + "type": "string" + }, + "unreachable": { + "description": "Locations that could not be reached (when querying all locations with `-`).", + "items": { + "type": "string" + }, + "type": "array" + }, + "vpcFlowLogsConfigs": { + "description": "List of VPC Flow Log configurations.", + "items": { + "$ref": "VpcFlowLogsConfig" + }, + "type": "array" + } + }, + "type": "object" + }, "ReachabilityDetails": { "description": "Results of the configuration analysis from the last run of the test.", "id": "ReachabilityDetails", @@ -4233,6 +4645,31 @@ }, "type": "object" }, + "ShowEffectiveFlowLogsConfigsResponse": { + "description": "Response for the `ShowEffectiveFlowLogsConfigs` method.", + "id": "ShowEffectiveFlowLogsConfigsResponse", + "properties": { + "effectiveFlowLogsConfigs": { + "description": "List of Effective Vpc Flow Logs configurations.", + "items": { + "$ref": "EffectiveVpcFlowLogsConfig" + }, + "type": "array" + }, + "nextPageToken": { + "description": "Page token to fetch the next set of configurations.", + "type": "string" + }, + "unreachable": { + "description": "Locations that could not be reached (when querying all locations with `-`).", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "SingleEdgeResponse": { "description": "Probing results for a single edge device.", "id": "SingleEdgeResponse", @@ -4546,7 +4983,7 @@ "Forwarding state: arriving at a VPC connector.", "Forwarding state: for packets originating from a serverless endpoint forwarded through Direct VPC egress.", "Forwarding state: for packets originating from a serverless endpoint forwarded through public (external) connectivity.", - "Transition state: packet header translated.", + "Transition state: packet header translated. The `nat` field is populated with the translation information.", "Transition state: original connection is terminated and a new proxied connection is initiated.", "Final state: packet could be delivered.", "Final state: packet could be dropped.", @@ -4688,6 +5125,20 @@ "readOnly": true, "type": "string" }, + "crossProjectMetadata": { + "description": "Optional. Determines whether to include cross project annotations in the logs. This field is available only for organization configurations. If not specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.", + "enum": [ + "CROSS_PROJECT_METADATA_UNSPECIFIED", + "CROSS_PROJECT_METADATA_ENABLED", + "CROSS_PROJECT_METADATA_DISABLED" + ], + "enumDescriptions": [ + "If not specified, the default is CROSS_PROJECT_METADATA_ENABLED.", + "When CROSS_PROJECT_METADATA_ENABLED, metadata from other projects will be included in the logs.", + "When CROSS_PROJECT_METADATA_DISABLED, metadata from other projects will not be included in the logs." + ], + "type": "string" + }, "description": { "description": "Optional. The user-supplied description of the VPC Flow Logs configuration. Maximum of 512 characters.", "type": "string" @@ -4739,6 +5190,10 @@ "description": "Identifier. Unique name of the configuration. The name can have one of the following forms: - For project-level configurations: `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - For organization-level configurations: `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}`", "type": "string" }, + "network": { + "description": "Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments within the network. Format: projects/{project_id}/global/networks/{name}", + "type": "string" + }, "state": { "description": "Optional. The state of the VPC Flow Log configuration. Default value is ENABLED. When creating a new configuration, it must be enabled. Setting state=DISABLED will pause the log generation for this config.", "enum": [ @@ -4753,6 +5208,10 @@ ], "type": "string" }, + "subnet": { + "description": "Traffic will be logged from VMs within the subnetwork. Format: projects/{project_id}/regions/{region}/subnetworks/{name}", + "type": "string" + }, "targetResourceState": { "description": "Output only. Describes the state of the configured target resource for diagnostic purposes.", "enum": [ diff --git a/networkmanagement/v1/networkmanagement-gen.go b/networkmanagement/v1/networkmanagement-gen.go index ba330a8ac7..31a56a61f7 100644 --- a/networkmanagement/v1/networkmanagement-gen.go +++ b/networkmanagement/v1/networkmanagement-gen.go @@ -172,6 +172,7 @@ type OrganizationsService struct { func NewOrganizationsLocationsService(s *Service) *OrganizationsLocationsService { rs := &OrganizationsLocationsService{s: s} rs.Operations = NewOrganizationsLocationsOperationsService(s) + rs.VpcFlowLogsConfigs = NewOrganizationsLocationsVpcFlowLogsConfigsService(s) return rs } @@ -179,6 +180,8 @@ type OrganizationsLocationsService struct { s *Service Operations *OrganizationsLocationsOperationsService + + VpcFlowLogsConfigs *OrganizationsLocationsVpcFlowLogsConfigsService } func NewOrganizationsLocationsOperationsService(s *Service) *OrganizationsLocationsOperationsService { @@ -190,6 +193,15 @@ type OrganizationsLocationsOperationsService struct { s *Service } +func NewOrganizationsLocationsVpcFlowLogsConfigsService(s *Service) *OrganizationsLocationsVpcFlowLogsConfigsService { + rs := &OrganizationsLocationsVpcFlowLogsConfigsService{s: s} + return rs +} + +type OrganizationsLocationsVpcFlowLogsConfigsService struct { + s *Service +} + func NewProjectsService(s *Service) *ProjectsService { rs := &ProjectsService{s: s} rs.Locations = NewProjectsLocationsService(s) @@ -1303,6 +1315,134 @@ func (s EdgeLocation) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// EffectiveVpcFlowLogsConfig: A configuration to generate a response for +// GetEffectiveVpcFlowLogsConfig request. +type EffectiveVpcFlowLogsConfig struct { + // AggregationInterval: The aggregation interval for the logs. Default value is + // INTERVAL_5_SEC. + // + // Possible values: + // "AGGREGATION_INTERVAL_UNSPECIFIED" - If not specified, will default to + // INTERVAL_5_SEC. + // "INTERVAL_5_SEC" - Aggregate logs in 5s intervals. + // "INTERVAL_30_SEC" - Aggregate logs in 30s intervals. + // "INTERVAL_1_MIN" - Aggregate logs in 1m intervals. + // "INTERVAL_5_MIN" - Aggregate logs in 5m intervals. + // "INTERVAL_10_MIN" - Aggregate logs in 10m intervals. + // "INTERVAL_15_MIN" - Aggregate logs in 15m intervals. + AggregationInterval string `json:"aggregationInterval,omitempty"` + // CrossProjectMetadata: Determines whether to include cross project + // annotations in the logs. This field is available only for organization + // configurations. If not specified in org configs will be set to + // CROSS_PROJECT_METADATA_ENABLED. + // + // Possible values: + // "CROSS_PROJECT_METADATA_UNSPECIFIED" - If not specified, the default is + // CROSS_PROJECT_METADATA_ENABLED. + // "CROSS_PROJECT_METADATA_ENABLED" - When CROSS_PROJECT_METADATA_ENABLED, + // metadata from other projects will be included in the logs. + // "CROSS_PROJECT_METADATA_DISABLED" - When CROSS_PROJECT_METADATA_DISABLED, + // metadata from other projects will not be included in the logs. + CrossProjectMetadata string `json:"crossProjectMetadata,omitempty"` + // FilterExpr: Export filter used to define which VPC Flow Logs should be + // logged. + FilterExpr string `json:"filterExpr,omitempty"` + // FlowSampling: The value of the field must be in (0, 1]. The sampling rate of + // VPC Flow Logs where 1.0 means all collected logs are reported. Setting the + // sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs, + // use the state field instead. Default value is 1.0. + FlowSampling float64 `json:"flowSampling,omitempty"` + // InterconnectAttachment: Traffic will be logged from the Interconnect + // Attachment. Format: + // projects/{project_id}/regions/{region}/interconnectAttachments/{name} + InterconnectAttachment string `json:"interconnectAttachment,omitempty"` + // Metadata: Configures whether all, none or a subset of metadata fields should + // be added to the reported VPC flow logs. Default value is + // INCLUDE_ALL_METADATA. + // + // Possible values: + // "METADATA_UNSPECIFIED" - If not specified, will default to + // INCLUDE_ALL_METADATA. + // "INCLUDE_ALL_METADATA" - Include all metadata fields. + // "EXCLUDE_ALL_METADATA" - Exclude all metadata fields. + // "CUSTOM_METADATA" - Include only custom fields (specified in + // metadata_fields). + Metadata string `json:"metadata,omitempty"` + // MetadataFields: Custom metadata fields to include in the reported VPC flow + // logs. Can only be specified if "metadata" was set to CUSTOM_METADATA. + MetadataFields []string `json:"metadataFields,omitempty"` + // Name: Unique name of the configuration. The name can have one of the + // following forms: - For project-level configurations: + // `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_con + // fig_id}` - For organization-level configurations: + // `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flo + // w_logs_config_id}` - For a Compute config, the name will be the path of the + // subnet: `projects/{project_id}/regions/{region}/subnetworks/{subnet_id}` + Name string `json:"name,omitempty"` + // Network: Traffic will be logged from VMs, VPN tunnels and Interconnect + // Attachments within the network. Format: + // projects/{project_id}/global/networks/{name} + Network string `json:"network,omitempty"` + // Scope: Specifies the scope of the config (e.g., SUBNET, NETWORK, + // ORGANIZATION..). + // + // Possible values: + // "SCOPE_UNSPECIFIED" - Scope is unspecified. + // "SUBNET" - Target resource is a subnet (Network Management API). + // "COMPUTE_API_SUBNET" - Target resource is a subnet, and the config + // originates from the Compute API. + // "NETWORK" - Target resource is a network. + // "VPN_TUNNEL" - Target resource is a VPN tunnel. + // "INTERCONNECT_ATTACHMENT" - Target resource is an interconnect attachment. + // "ORGANIZATION" - Configuration applies to an entire organization. + Scope string `json:"scope,omitempty"` + // State: The state of the VPC Flow Log configuration. Default value is + // ENABLED. When creating a new configuration, it must be enabled. Setting + // state=DISABLED will pause the log generation for this config. + // + // Possible values: + // "STATE_UNSPECIFIED" - If not specified, will default to ENABLED. + // "ENABLED" - When ENABLED, this configuration will generate logs. + // "DISABLED" - When DISABLED, this configuration will not generate logs. + State string `json:"state,omitempty"` + // Subnet: Traffic will be logged from VMs within the subnetwork. Format: + // projects/{project_id}/regions/{region}/subnetworks/{name} + Subnet string `json:"subnet,omitempty"` + // VpnTunnel: Traffic will be logged from the VPN Tunnel. Format: + // projects/{project_id}/regions/{region}/vpnTunnels/{name} + VpnTunnel string `json:"vpnTunnel,omitempty"` + // ForceSendFields is a list of field names (e.g. "AggregationInterval") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AggregationInterval") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s EffectiveVpcFlowLogsConfig) MarshalJSON() ([]byte, error) { + type NoMethod EffectiveVpcFlowLogsConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *EffectiveVpcFlowLogsConfig) UnmarshalJSON(data []byte) error { + type NoMethod EffectiveVpcFlowLogsConfig + var s1 struct { + FlowSampling gensupport.JSONFloat64 `json:"flowSampling"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.FlowSampling = float64(s1.FlowSampling) + return nil +} + // Empty: A generic empty message that you can re-use to avoid defining // duplicated empty messages in your APIs. A typical example is to use it as // the request or the response type of an API method. For instance: service Foo @@ -2586,6 +2726,7 @@ type NatInfo struct { // to internal address. // "CLOUD_NAT" - Cloud NAT Gateway. // "PRIVATE_SERVICE_CONNECT" - Private service connect NAT. + // "GKE_POD_IP_MASQUERADING" - GKE Pod IP address masquerading. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "NatGatewayName") to // unconditionally include in API requests. By default, fields with empty or @@ -3131,6 +3272,37 @@ func (s ProxyConnectionInfo) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// QueryOrgVpcFlowLogsConfigsResponse: Response for the +// `QueryVpcFlowLogsConfigs` method. +type QueryOrgVpcFlowLogsConfigsResponse struct { + // NextPageToken: Page token to fetch the next set of configurations. + NextPageToken string `json:"nextPageToken,omitempty"` + // Unreachable: Locations that could not be reached (when querying all + // locations with `-`). + Unreachable []string `json:"unreachable,omitempty"` + // VpcFlowLogsConfigs: List of VPC Flow Log configurations. + VpcFlowLogsConfigs []*VpcFlowLogsConfig `json:"vpcFlowLogsConfigs,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "NextPageToken") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s QueryOrgVpcFlowLogsConfigsResponse) MarshalJSON() ([]byte, error) { + type NoMethod QueryOrgVpcFlowLogsConfigsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // ReachabilityDetails: Results of the configuration analysis from the last run // of the test. type ReachabilityDetails struct { @@ -3473,6 +3645,37 @@ func (s SetIamPolicyRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// ShowEffectiveFlowLogsConfigsResponse: Response for the +// `ShowEffectiveFlowLogsConfigs` method. +type ShowEffectiveFlowLogsConfigsResponse struct { + // EffectiveFlowLogsConfigs: List of Effective Vpc Flow Logs configurations. + EffectiveFlowLogsConfigs []*EffectiveVpcFlowLogsConfig `json:"effectiveFlowLogsConfigs,omitempty"` + // NextPageToken: Page token to fetch the next set of configurations. + NextPageToken string `json:"nextPageToken,omitempty"` + // Unreachable: Locations that could not be reached (when querying all + // locations with `-`). + Unreachable []string `json:"unreachable,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "EffectiveFlowLogsConfigs") + // 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. "EffectiveFlowLogsConfigs") 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 ShowEffectiveFlowLogsConfigsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ShowEffectiveFlowLogsConfigsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // SingleEdgeResponse: Probing results for a single edge device. type SingleEdgeResponse struct { // DestinationEgressLocation: The EdgeLocation from which a packet, destined to @@ -3703,7 +3906,8 @@ type Step struct { // "SERVERLESS_EXTERNAL_CONNECTION" - Forwarding state: for packets // originating from a serverless endpoint forwarded through public (external) // connectivity. - // "NAT" - Transition state: packet header translated. + // "NAT" - Transition state: packet header translated. The `nat` field is + // populated with the translation information. // "PROXY_CONNECTION" - Transition state: original connection is terminated // and a new proxied connection is initiated. // "DELIVER" - Final state: packet could be delivered. @@ -3902,6 +4106,19 @@ type VpcFlowLogsConfig struct { AggregationInterval string `json:"aggregationInterval,omitempty"` // CreateTime: Output only. The time the config was created. CreateTime string `json:"createTime,omitempty"` + // CrossProjectMetadata: Optional. Determines whether to include cross project + // annotations in the logs. This field is available only for organization + // configurations. If not specified in org configs will be set to + // CROSS_PROJECT_METADATA_ENABLED. + // + // Possible values: + // "CROSS_PROJECT_METADATA_UNSPECIFIED" - If not specified, the default is + // CROSS_PROJECT_METADATA_ENABLED. + // "CROSS_PROJECT_METADATA_ENABLED" - When CROSS_PROJECT_METADATA_ENABLED, + // metadata from other projects will be included in the logs. + // "CROSS_PROJECT_METADATA_DISABLED" - When CROSS_PROJECT_METADATA_DISABLED, + // metadata from other projects will not be included in the logs. + CrossProjectMetadata string `json:"crossProjectMetadata,omitempty"` // Description: Optional. The user-supplied description of the VPC Flow Logs // configuration. Maximum of 512 characters. Description string `json:"description,omitempty"` @@ -3942,6 +4159,10 @@ type VpcFlowLogsConfig struct { // `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flo // w_logs_config_id}` Name string `json:"name,omitempty"` + // Network: Traffic will be logged from VMs, VPN tunnels and Interconnect + // Attachments within the network. Format: + // projects/{project_id}/global/networks/{name} + Network string `json:"network,omitempty"` // State: Optional. The state of the VPC Flow Log configuration. Default value // is ENABLED. When creating a new configuration, it must be enabled. Setting // state=DISABLED will pause the log generation for this config. @@ -3951,6 +4172,9 @@ type VpcFlowLogsConfig struct { // "ENABLED" - When ENABLED, this configuration will generate logs. // "DISABLED" - When DISABLED, this configuration will not generate logs. State string `json:"state,omitempty"` + // Subnet: Traffic will be logged from VMs within the subnetwork. Format: + // projects/{project_id}/regions/{region}/subnetworks/{name} + Subnet string `json:"subnet,omitempty"` // TargetResourceState: Output only. Describes the state of the configured // target resource for diagnostic purposes. // @@ -4280,9 +4504,9 @@ func (r *OrganizationsLocationsService) List(name string) *OrganizationsLocation return c } -// ExtraLocationTypes sets the optional parameter "extraLocationTypes": Do not -// use this field. It is unsupported and is ignored unless explicitly -// documented otherwise. This is primarily for internal usage. +// ExtraLocationTypes sets the optional parameter "extraLocationTypes": Unless +// explicitly documented otherwise, don't use this unsupported field which is +// primarily intended for internal usage. func (c *OrganizationsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *OrganizationsLocationsListCall { c.urlParams_.SetMulti("extraLocationTypes", append([]string{}, extraLocationTypes...)) return c @@ -4899,82 +5123,92 @@ func (c *OrganizationsLocationsOperationsListCall) Pages(ctx context.Context, f } } -type ProjectsLocationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type OrganizationsLocationsVpcFlowLogsConfigsCreateCall struct { + s *Service + parent string + vpcflowlogsconfig *VpcFlowLogsConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets information about a location. +// Create: Creates a new `VpcFlowLogsConfig`. If a configuration with the exact +// same settings already exists (even if the ID is different), the creation +// fails. Notes: 1. Creating a configuration with `state=DISABLED` will fail 2. +// The following fields are not considered as settings for the purpose of the +// check mentioned above, therefore - creating another configuration with the +// same fields but different values for the following fields will fail as well: +// * name * create_time * update_time * labels * description // -// - name: Resource name for the location. -func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { - c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The parent resource of the VpcFlowLogsConfig to create, in one of +// the following formats: - For project-level resources: +// `projects/{project_id}/locations/global` - For organization-level +// resources: `organizations/{organization_id}/locations/global`. +func (r *OrganizationsLocationsVpcFlowLogsConfigsService) Create(parent string, vpcflowlogsconfig *VpcFlowLogsConfig) *OrganizationsLocationsVpcFlowLogsConfigsCreateCall { + c := &OrganizationsLocationsVpcFlowLogsConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.vpcflowlogsconfig = vpcflowlogsconfig + return c +} + +// VpcFlowLogsConfigId sets the optional parameter "vpcFlowLogsConfigId": +// Required. ID of the `VpcFlowLogsConfig`. +func (c *OrganizationsLocationsVpcFlowLogsConfigsCreateCall) VpcFlowLogsConfigId(vpcFlowLogsConfigId string) *OrganizationsLocationsVpcFlowLogsConfigsCreateCall { + c.urlParams_.Set("vpcFlowLogsConfigId", vpcFlowLogsConfigId) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall { +func (c *OrganizationsLocationsVpcFlowLogsConfigsCreateCall) Fields(s ...googleapi.Field) *OrganizationsLocationsVpcFlowLogsConfigsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall { +func (c *OrganizationsLocationsVpcFlowLogsConfigsCreateCall) Context(ctx context.Context) *OrganizationsLocationsVpcFlowLogsConfigsCreateCall { 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 *ProjectsLocationsGetCall) Header() http.Header { +func (c *OrganizationsLocationsVpcFlowLogsConfigsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) +func (c *OrganizationsLocationsVpcFlowLogsConfigsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.vpcflowlogsconfig) + if err != nil { + return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/vpcFlowLogsConfigs") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + 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, + "parent": c.parent, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.organizations.locations.vpcFlowLogsConfigs.create", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networkmanagement.projects.locations.get" call. +// Do executes the "networkmanagement.organizations.locations.vpcFlowLogsConfigs.create" call. // Any non-2xx status code is an error. Response headers are in either -// *Location.ServerResponse.Header or (if a response was returned at all) in +// *Operation.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was returned. -func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) { +func (c *OrganizationsLocationsVpcFlowLogsConfigsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4993,7 +5227,7 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Location{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -5004,101 +5238,62 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.organizations.locations.vpcFlowLogsConfigs.create", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsListCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type OrganizationsLocationsVpcFlowLogsConfigsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists information about the supported locations for this service. +// Delete: Deletes a specific `VpcFlowLogsConfig`. // -// - name: The resource that owns the locations collection, if applicable. -func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall { - c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The resource name of the VpcFlowLogsConfig, in one of the following +// formats: - For a project-level resource: +// `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_c +// onfig_id}` - For an organization-level resource: +// `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_f +// low_logs_config_id}`. +func (r *OrganizationsLocationsVpcFlowLogsConfigsService) Delete(name string) *OrganizationsLocationsVpcFlowLogsConfigsDeleteCall { + c := &OrganizationsLocationsVpcFlowLogsConfigsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// ExtraLocationTypes sets the optional parameter "extraLocationTypes": Do not -// use this field. It is unsupported and is ignored unless explicitly -// documented otherwise. This is primarily for internal usage. -func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall { - c.urlParams_.SetMulti("extraLocationTypes", append([]string{}, extraLocationTypes...)) +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *OrganizationsLocationsVpcFlowLogsConfigsDeleteCall) Fields(s ...googleapi.Field) *OrganizationsLocationsVpcFlowLogsConfigsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// Filter sets the optional parameter "filter": A filter to narrow down results -// to a preferred subset. The filtering language accepts strings like -// "displayName=tokyo", and is documented in more detail in AIP-160 -// (https://google.aip.dev/160). -func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { - c.urlParams_.Set("filter", filter) +// Context sets the context to be used in this call's Do method. +func (c *OrganizationsLocationsVpcFlowLogsConfigsDeleteCall) Context(ctx context.Context) *OrganizationsLocationsVpcFlowLogsConfigsDeleteCall { + c.ctx_ = ctx return c } -// PageSize sets the optional parameter "pageSize": The maximum number of -// results to return. If not set, the service selects a default. -func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *OrganizationsLocationsVpcFlowLogsConfigsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ } -// PageToken sets the optional parameter "pageToken": A page token received -// from the `next_page_token` field in the response. Send that page token to -// receive the subsequent page. -func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall { - 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 *ProjectsLocationsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsLocationsVpcFlowLogsConfigsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/locations") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + req, err := http.NewRequest("DELETE", urls, nil) if err != nil { return nil, err } @@ -5106,17 +5301,16 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.organizations.locations.vpcFlowLogsConfigs.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networkmanagement.projects.locations.list" call. +// Do executes the "networkmanagement.organizations.locations.vpcFlowLogsConfigs.delete" call. // Any non-2xx status code is an error. Response headers are in either -// *ListLocationsResponse.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 *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) { +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *OrganizationsLocationsVpcFlowLogsConfigsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5135,7 +5329,7 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocat if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListLocationsResponse{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -5146,120 +5340,92 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocat if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.organizations.locations.vpcFlowLogsConfigs.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - -type ProjectsLocationsGlobalConnectivityTestsCreateCall struct { - s *Service - parent string - connectivitytest *ConnectivityTest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsLocationsVpcFlowLogsConfigsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Create: Creates a new Connectivity Test. After you create a test, the -// reachability analysis is performed as part of the long running operation, -// which completes when the analysis completes. If the endpoint specifications -// in `ConnectivityTest` are invalid (for example, containing non-existent -// resources in the network, or you don't have read permissions to the network -// configurations of listed projects), then the reachability result returns a -// value of `UNKNOWN`. If the endpoint specifications in `ConnectivityTest` are -// incomplete, the reachability result returns a value of AMBIGUOUS. For more -// information, see the Connectivity Test documentation. +// Get: Gets the details of a specific `VpcFlowLogsConfig`. // -// - parent: The parent resource of the Connectivity Test to create: -// `projects/{project_id}/locations/global`. -func (r *ProjectsLocationsGlobalConnectivityTestsService) Create(parent string, connectivitytest *ConnectivityTest) *ProjectsLocationsGlobalConnectivityTestsCreateCall { - c := &ProjectsLocationsGlobalConnectivityTestsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.connectivitytest = connectivitytest - return c -} - -// TestId sets the optional parameter "testId": Required. The logical name of -// the Connectivity Test in your project with the following restrictions: * -// Must contain only lowercase letters, numbers, and hyphens. * Must start with -// a letter. * Must be between 1-40 characters. * Must end with a number or a -// letter. * Must be unique within the customer project -func (c *ProjectsLocationsGlobalConnectivityTestsCreateCall) TestId(testId string) *ProjectsLocationsGlobalConnectivityTestsCreateCall { - c.urlParams_.Set("testId", testId) +// - name: The resource name of the VpcFlowLogsConfig, in one of the following +// formats: - For project-level resources: +// `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_c +// onfig_id}` - For organization-level resources: +// `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_f +// low_logs_config_id}`. +func (r *OrganizationsLocationsVpcFlowLogsConfigsService) Get(name string) *OrganizationsLocationsVpcFlowLogsConfigsGetCall { + c := &OrganizationsLocationsVpcFlowLogsConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsGlobalConnectivityTestsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalConnectivityTestsCreateCall { +func (c *OrganizationsLocationsVpcFlowLogsConfigsGetCall) Fields(s ...googleapi.Field) *OrganizationsLocationsVpcFlowLogsConfigsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *OrganizationsLocationsVpcFlowLogsConfigsGetCall) IfNoneMatch(entityTag string) *OrganizationsLocationsVpcFlowLogsConfigsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsGlobalConnectivityTestsCreateCall) Context(ctx context.Context) *ProjectsLocationsGlobalConnectivityTestsCreateCall { +func (c *OrganizationsLocationsVpcFlowLogsConfigsGetCall) Context(ctx context.Context) *OrganizationsLocationsVpcFlowLogsConfigsGetCall { 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 *ProjectsLocationsGlobalConnectivityTestsCreateCall) Header() http.Header { +func (c *OrganizationsLocationsVpcFlowLogsConfigsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsGlobalConnectivityTestsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.connectivitytest) - if err != nil { - return nil, err +func (c *OrganizationsLocationsVpcFlowLogsConfigsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/connectivityTests") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.global.connectivityTests.create", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.organizations.locations.vpcFlowLogsConfigs.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networkmanagement.projects.locations.global.connectivityTests.create" call. +// Do executes the "networkmanagement.organizations.locations.vpcFlowLogsConfigs.get" call. // Any non-2xx status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was returned. -func (c *ProjectsLocationsGlobalConnectivityTestsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// *VpcFlowLogsConfig.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *OrganizationsLocationsVpcFlowLogsConfigsGetCall) Do(opts ...googleapi.CallOption) (*VpcFlowLogsConfig, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5278,7 +5444,7 @@ func (c *ProjectsLocationsGlobalConnectivityTestsCreateCall) Do(opts ...googleap if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &VpcFlowLogsConfig{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -5289,75 +5455,120 @@ func (c *ProjectsLocationsGlobalConnectivityTestsCreateCall) Do(opts ...googleap if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.global.connectivityTests.create", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.organizations.locations.vpcFlowLogsConfigs.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsGlobalConnectivityTestsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsLocationsVpcFlowLogsConfigsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Delete: Deletes a specific `ConnectivityTest`. +// List: Lists all `VpcFlowLogsConfigs` in a given organization. // -// - name: Connectivity Test resource name using the form: -// `projects/{project_id}/locations/global/connectivityTests/{test_id}`. -func (r *ProjectsLocationsGlobalConnectivityTestsService) Delete(name string) *ProjectsLocationsGlobalConnectivityTestsDeleteCall { - c := &ProjectsLocationsGlobalConnectivityTestsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The parent resource of the VpcFlowLogsConfig, in one of the +// following formats: - For project-level resourcs: +// `projects/{project_id}/locations/global` - For organization-level +// resources: `organizations/{organization_id}/locations/global`. +func (r *OrganizationsLocationsVpcFlowLogsConfigsService) List(parent string) *OrganizationsLocationsVpcFlowLogsConfigsListCall { + c := &OrganizationsLocationsVpcFlowLogsConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Lists the `VpcFlowLogsConfigs` +// that match the filter expression. A filter expression must use the supported +// [CEL logic operators] +// (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators). +func (c *OrganizationsLocationsVpcFlowLogsConfigsListCall) Filter(filter string) *OrganizationsLocationsVpcFlowLogsConfigsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": Field to use to sort the +// list. +func (c *OrganizationsLocationsVpcFlowLogsConfigsListCall) OrderBy(orderBy string) *OrganizationsLocationsVpcFlowLogsConfigsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": Number of +// `VpcFlowLogsConfigs` to return. +func (c *OrganizationsLocationsVpcFlowLogsConfigsListCall) PageSize(pageSize int64) *OrganizationsLocationsVpcFlowLogsConfigsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Page token from an +// earlier query, as returned in `next_page_token`. +func (c *OrganizationsLocationsVpcFlowLogsConfigsListCall) PageToken(pageToken string) *OrganizationsLocationsVpcFlowLogsConfigsListCall { + c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsGlobalConnectivityTestsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalConnectivityTestsDeleteCall { +func (c *OrganizationsLocationsVpcFlowLogsConfigsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsVpcFlowLogsConfigsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *OrganizationsLocationsVpcFlowLogsConfigsListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsVpcFlowLogsConfigsListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsGlobalConnectivityTestsDeleteCall) Context(ctx context.Context) *ProjectsLocationsGlobalConnectivityTestsDeleteCall { +func (c *OrganizationsLocationsVpcFlowLogsConfigsListCall) Context(ctx context.Context) *OrganizationsLocationsVpcFlowLogsConfigsListCall { 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 *ProjectsLocationsGlobalConnectivityTestsDeleteCall) Header() http.Header { +func (c *OrganizationsLocationsVpcFlowLogsConfigsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsGlobalConnectivityTestsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsLocationsVpcFlowLogsConfigsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/vpcFlowLogsConfigs") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, nil) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.global.connectivityTests.delete", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.organizations.locations.vpcFlowLogsConfigs.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networkmanagement.projects.locations.global.connectivityTests.delete" call. +// Do executes the "networkmanagement.organizations.locations.vpcFlowLogsConfigs.list" call. // Any non-2xx status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was returned. -func (c *ProjectsLocationsGlobalConnectivityTestsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// *ListVpcFlowLogsConfigsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *OrganizationsLocationsVpcFlowLogsConfigsListCall) Do(opts ...googleapi.CallOption) (*ListVpcFlowLogsConfigsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5376,7 +5587,7 @@ func (c *ProjectsLocationsGlobalConnectivityTestsDeleteCall) Do(opts ...googleap if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &ListVpcFlowLogsConfigsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -5387,70 +5598,108 @@ func (c *ProjectsLocationsGlobalConnectivityTestsDeleteCall) Do(opts ...googleap if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.global.connectivityTests.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.organizations.locations.vpcFlowLogsConfigs.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsGlobalConnectivityTestsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets the details of a specific Connectivity Test. -// -// - name: `ConnectivityTest` resource name using the form: -// `projects/{project_id}/locations/global/connectivityTests/{test_id}`. -func (r *ProjectsLocationsGlobalConnectivityTestsService) Get(name string) *ProjectsLocationsGlobalConnectivityTestsGetCall { - c := &ProjectsLocationsGlobalConnectivityTestsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *OrganizationsLocationsVpcFlowLogsConfigsListCall) Pages(ctx context.Context, f func(*ListVpcFlowLogsConfigsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +type OrganizationsLocationsVpcFlowLogsConfigsPatchCall struct { + s *Service + name string + vpcflowlogsconfig *VpcFlowLogsConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates an existing `VpcFlowLogsConfig`. If a configuration with the +// exact same settings already exists (even if the ID is different), the +// creation fails. Notes: 1. Updating a configuration with `state=DISABLED` +// will fail 2. The following fields are not considered as settings for the +// purpose of the check mentioned above, therefore - updating another +// configuration with the same fields but different values for the following +// fields will fail as well: * name * create_time * update_time * labels * +// description +// +// - name: Identifier. Unique name of the configuration. The name can have one +// of the following forms: - For project-level configurations: +// `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_c +// onfig_id}` - For organization-level configurations: +// `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_f +// low_logs_config_id}`. +func (r *OrganizationsLocationsVpcFlowLogsConfigsService) Patch(name string, vpcflowlogsconfig *VpcFlowLogsConfig) *OrganizationsLocationsVpcFlowLogsConfigsPatchCall { + c := &OrganizationsLocationsVpcFlowLogsConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.vpcflowlogsconfig = vpcflowlogsconfig + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. Mask of +// fields to update. At least one path must be supplied in this field. For +// example, to change the state of the configuration to ENABLED, specify +// `update_mask` = "state", and the `vpc_flow_logs_config` would be: +// `vpc_flow_logs_config = { name = +// "projects/my-project/locations/global/vpcFlowLogsConfigs/my-config" state = +// "ENABLED" }` +func (c *OrganizationsLocationsVpcFlowLogsConfigsPatchCall) UpdateMask(updateMask string) *OrganizationsLocationsVpcFlowLogsConfigsPatchCall { + c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsGlobalConnectivityTestsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalConnectivityTestsGetCall { +func (c *OrganizationsLocationsVpcFlowLogsConfigsPatchCall) Fields(s ...googleapi.Field) *OrganizationsLocationsVpcFlowLogsConfigsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *ProjectsLocationsGlobalConnectivityTestsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGlobalConnectivityTestsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsGlobalConnectivityTestsGetCall) Context(ctx context.Context) *ProjectsLocationsGlobalConnectivityTestsGetCall { +func (c *OrganizationsLocationsVpcFlowLogsConfigsPatchCall) Context(ctx context.Context) *OrganizationsLocationsVpcFlowLogsConfigsPatchCall { 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 *ProjectsLocationsGlobalConnectivityTestsGetCall) Header() http.Header { +func (c *OrganizationsLocationsVpcFlowLogsConfigsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsGlobalConnectivityTestsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) +func (c *OrganizationsLocationsVpcFlowLogsConfigsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.vpcflowlogsconfig) + if err != nil { + return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } @@ -5458,17 +5707,16 @@ func (c *ProjectsLocationsGlobalConnectivityTestsGetCall) doRequest(alt string) googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.global.connectivityTests.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.organizations.locations.vpcFlowLogsConfigs.patch", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networkmanagement.projects.locations.global.connectivityTests.get" call. +// Do executes the "networkmanagement.organizations.locations.vpcFlowLogsConfigs.patch" call. // Any non-2xx status code is an error. Response headers are in either -// *ConnectivityTest.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 *ProjectsLocationsGlobalConnectivityTestsGetCall) Do(opts ...googleapi.CallOption) (*ConnectivityTest, error) { +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *OrganizationsLocationsVpcFlowLogsConfigsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5487,7 +5735,7 @@ func (c *ProjectsLocationsGlobalConnectivityTestsGetCall) Do(opts ...googleapi.C if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ConnectivityTest{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -5498,52 +5746,32 @@ func (c *ProjectsLocationsGlobalConnectivityTestsGetCall) Do(opts ...googleapi.C if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.global.connectivityTests.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.organizations.locations.vpcFlowLogsConfigs.patch", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsGlobalConnectivityTestsGetIamPolicyCall struct { +type ProjectsLocationsGetCall struct { s *Service - resource string + name string urlParams_ gensupport.URLParams ifNoneMatch_ string 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. +// Get: Gets information about a location. // -// - 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 *ProjectsLocationsGlobalConnectivityTestsService) GetIamPolicy(resource string) *ProjectsLocationsGlobalConnectivityTestsGetIamPolicyCall { - c := &ProjectsLocationsGlobalConnectivityTestsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - return c -} - -// OptionsRequestedPolicyVersion sets the optional parameter -// "options.requestedPolicyVersion": 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). -func (c *ProjectsLocationsGlobalConnectivityTestsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsGlobalConnectivityTestsGetIamPolicyCall { - c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) +// - name: Resource name for the location. +func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { + c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsGlobalConnectivityTestsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalConnectivityTestsGetIamPolicyCall { +func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -5551,34 +5779,34 @@ func (c *ProjectsLocationsGlobalConnectivityTestsGetIamPolicyCall) Fields(s ...g // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *ProjectsLocationsGlobalConnectivityTestsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsGlobalConnectivityTestsGetIamPolicyCall { +func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsGlobalConnectivityTestsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsGlobalConnectivityTestsGetIamPolicyCall { +func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall { 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 *ProjectsLocationsGlobalConnectivityTestsGetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsGlobalConnectivityTestsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { @@ -5586,18 +5814,18 @@ func (c *ProjectsLocationsGlobalConnectivityTestsGetIamPolicyCall) doRequest(alt } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.global.connectivityTests.getIamPolicy", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networkmanagement.projects.locations.global.connectivityTests.getIamPolicy" call. +// Do executes the "networkmanagement.projects.locations.get" 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 +// *Location.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 *ProjectsLocationsGlobalConnectivityTestsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { +func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5616,7 +5844,7 @@ func (c *ProjectsLocationsGlobalConnectivityTestsGetIamPolicyCall) Do(opts ...go if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Policy{ + ret := &Location{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -5627,61 +5855,56 @@ func (c *ProjectsLocationsGlobalConnectivityTestsGetIamPolicyCall) Do(opts ...go if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.global.connectivityTests.getIamPolicy", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsGlobalConnectivityTestsListCall struct { +type ProjectsLocationsListCall struct { s *Service - parent string + name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists all Connectivity Tests owned by a project. +// List: Lists information about the supported locations for this service. // -// - parent: The parent resource of the Connectivity Tests: -// `projects/{project_id}/locations/global`. -func (r *ProjectsLocationsGlobalConnectivityTestsService) List(parent string) *ProjectsLocationsGlobalConnectivityTestsListCall { - c := &ProjectsLocationsGlobalConnectivityTestsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent +// - name: The resource that owns the locations collection, if applicable. +func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall { + c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } -// Filter sets the optional parameter "filter": Lists the `ConnectivityTests` -// that match the filter expression. A filter expression filters the resources -// listed in the response. The expression must be of the form ` ` where -// operators: `<`, `>`, `<=`, `>=`, `!=`, `=`, `:` are supported (colon `:` -// represents a HAS operator which is roughly synonymous with equality). can -// refer to a proto or JSON field, or a synthetic field. Field names can be -// camelCase or snake_case. Examples: - Filter by name: name = -// "projects/proj-1/locations/global/connectivityTests/test-1 - Filter by -// labels: - Resources that have a key called `foo` labels.foo:* - Resources -// that have a key called `foo` whose value is `bar` labels.foo = bar -func (c *ProjectsLocationsGlobalConnectivityTestsListCall) Filter(filter string) *ProjectsLocationsGlobalConnectivityTestsListCall { - c.urlParams_.Set("filter", filter) +// ExtraLocationTypes sets the optional parameter "extraLocationTypes": Unless +// explicitly documented otherwise, don't use this unsupported field which is +// primarily intended for internal usage. +func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall { + c.urlParams_.SetMulti("extraLocationTypes", append([]string{}, extraLocationTypes...)) return c } -// OrderBy sets the optional parameter "orderBy": Field to use to sort the -// list. -func (c *ProjectsLocationsGlobalConnectivityTestsListCall) OrderBy(orderBy string) *ProjectsLocationsGlobalConnectivityTestsListCall { - c.urlParams_.Set("orderBy", orderBy) +// Filter sets the optional parameter "filter": A filter to narrow down results +// to a preferred subset. The filtering language accepts strings like +// "displayName=tokyo", and is documented in more detail in AIP-160 +// (https://google.aip.dev/160). +func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { + c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": Number of -// `ConnectivityTests` to return. -func (c *ProjectsLocationsGlobalConnectivityTestsListCall) PageSize(pageSize int64) *ProjectsLocationsGlobalConnectivityTestsListCall { +// PageSize sets the optional parameter "pageSize": The maximum number of +// results to return. If not set, the service selects a default. +func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": Page token from an -// earlier query, as returned in `next_page_token`. -func (c *ProjectsLocationsGlobalConnectivityTestsListCall) PageToken(pageToken string) *ProjectsLocationsGlobalConnectivityTestsListCall { +// PageToken sets the optional parameter "pageToken": A page token received +// from the `next_page_token` field in the response. Send that page token to +// receive the subsequent page. +func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -5689,7 +5912,7 @@ func (c *ProjectsLocationsGlobalConnectivityTestsListCall) PageToken(pageToken s // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsGlobalConnectivityTestsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalConnectivityTestsListCall { +func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -5697,34 +5920,34 @@ func (c *ProjectsLocationsGlobalConnectivityTestsListCall) Fields(s ...googleapi // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *ProjectsLocationsGlobalConnectivityTestsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsGlobalConnectivityTestsListCall { +func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsGlobalConnectivityTestsListCall) Context(ctx context.Context) *ProjectsLocationsGlobalConnectivityTestsListCall { +func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall { 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 *ProjectsLocationsGlobalConnectivityTestsListCall) Header() http.Header { +func (c *ProjectsLocationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsGlobalConnectivityTestsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/connectivityTests") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/locations") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { @@ -5732,19 +5955,19 @@ func (c *ProjectsLocationsGlobalConnectivityTestsListCall) doRequest(alt string) } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.global.connectivityTests.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networkmanagement.projects.locations.global.connectivityTests.list" call. +// Do executes the "networkmanagement.projects.locations.list" call. // Any non-2xx status code is an error. Response headers are in either -// *ListConnectivityTestsResponse.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 *ProjectsLocationsGlobalConnectivityTestsListCall) Do(opts ...googleapi.CallOption) (*ListConnectivityTestsResponse, error) { +// *ListLocationsResponse.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 *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5763,7 +5986,7 @@ func (c *ProjectsLocationsGlobalConnectivityTestsListCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListConnectivityTestsResponse{ + ret := &ListLocationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -5774,14 +5997,14 @@ func (c *ProjectsLocationsGlobalConnectivityTestsListCall) Do(opts ...googleapi. if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.global.connectivityTests.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsGlobalConnectivityTestsListCall) Pages(ctx context.Context, f func(*ListConnectivityTestsResponse) error) error { +func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -5799,67 +6022,68 @@ func (c *ProjectsLocationsGlobalConnectivityTestsListCall) Pages(ctx context.Con } } -type ProjectsLocationsGlobalConnectivityTestsPatchCall struct { +type ProjectsLocationsGlobalConnectivityTestsCreateCall struct { s *Service - name string + parent string connectivitytest *ConnectivityTest urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// Patch: Updates the configuration of an existing `ConnectivityTest`. After -// you update a test, the reachability analysis is performed as part of the -// long running operation, which completes when the analysis completes. The -// Reachability state in the test resource is updated with the new result. If -// the endpoint specifications in `ConnectivityTest` are invalid (for example, -// they contain non-existent resources in the network, or the user does not -// have read permissions to the network configurations of listed projects), -// then the reachability result returns a value of UNKNOWN. If the endpoint -// specifications in `ConnectivityTest` are incomplete, the reachability result -// returns a value of `AMBIGUOUS`. See the documentation in `ConnectivityTest` -// for more details. -// -// - name: Identifier. Unique name of the resource using the form: -// `projects/{project_id}/locations/global/connectivityTests/{test_id}`. -func (r *ProjectsLocationsGlobalConnectivityTestsService) Patch(name string, connectivitytest *ConnectivityTest) *ProjectsLocationsGlobalConnectivityTestsPatchCall { - c := &ProjectsLocationsGlobalConnectivityTestsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// Create: Creates a new Connectivity Test. After you create a test, the +// reachability analysis is performed as part of the long running operation, +// which completes when the analysis completes. If the endpoint specifications +// in `ConnectivityTest` are invalid (for example, containing non-existent +// resources in the network, or you don't have read permissions to the network +// configurations of listed projects), then the reachability result returns a +// value of `UNKNOWN`. If the endpoint specifications in `ConnectivityTest` are +// incomplete, the reachability result returns a value of AMBIGUOUS. For more +// information, see the Connectivity Test documentation. +// +// - parent: The parent resource of the Connectivity Test to create: +// `projects/{project_id}/locations/global`. +func (r *ProjectsLocationsGlobalConnectivityTestsService) Create(parent string, connectivitytest *ConnectivityTest) *ProjectsLocationsGlobalConnectivityTestsCreateCall { + c := &ProjectsLocationsGlobalConnectivityTestsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent c.connectivitytest = connectivitytest return c } -// UpdateMask sets the optional parameter "updateMask": Required. Mask of -// fields to update. At least one path must be supplied in this field. -func (c *ProjectsLocationsGlobalConnectivityTestsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsGlobalConnectivityTestsPatchCall { - c.urlParams_.Set("updateMask", updateMask) +// TestId sets the optional parameter "testId": Required. The logical name of +// the Connectivity Test in your project with the following restrictions: * +// Must contain only lowercase letters, numbers, and hyphens. * Must start with +// a letter. * Must be between 1-40 characters. * Must end with a number or a +// letter. * Must be unique within the customer project +func (c *ProjectsLocationsGlobalConnectivityTestsCreateCall) TestId(testId string) *ProjectsLocationsGlobalConnectivityTestsCreateCall { + c.urlParams_.Set("testId", testId) 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 *ProjectsLocationsGlobalConnectivityTestsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalConnectivityTestsPatchCall { +func (c *ProjectsLocationsGlobalConnectivityTestsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalConnectivityTestsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsGlobalConnectivityTestsPatchCall) Context(ctx context.Context) *ProjectsLocationsGlobalConnectivityTestsPatchCall { +func (c *ProjectsLocationsGlobalConnectivityTestsCreateCall) Context(ctx context.Context) *ProjectsLocationsGlobalConnectivityTestsCreateCall { 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 *ProjectsLocationsGlobalConnectivityTestsPatchCall) Header() http.Header { +func (c *ProjectsLocationsGlobalConnectivityTestsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsGlobalConnectivityTestsPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsGlobalConnectivityTestsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.connectivitytest) if err != nil { @@ -5867,26 +6091,26 @@ func (c *ProjectsLocationsGlobalConnectivityTestsPatchCall) doRequest(alt string } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/connectivityTests") 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, + "parent": c.parent, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.global.connectivityTests.patch", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.global.connectivityTests.create", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networkmanagement.projects.locations.global.connectivityTests.patch" call. +// Do executes the "networkmanagement.projects.locations.global.connectivityTests.create" call. // Any non-2xx status code is an error. Response headers are in either // *Operation.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was returned. -func (c *ProjectsLocationsGlobalConnectivityTestsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsGlobalConnectivityTestsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5916,72 +6140,58 @@ func (c *ProjectsLocationsGlobalConnectivityTestsPatchCall) Do(opts ...googleapi if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.global.connectivityTests.patch", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.global.connectivityTests.create", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsGlobalConnectivityTestsRerunCall struct { - s *Service - name string - rerunconnectivitytestrequest *RerunConnectivityTestRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsGlobalConnectivityTestsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Rerun: Rerun an existing `ConnectivityTest`. After the user triggers the -// rerun, the reachability analysis is performed as part of the long running -// operation, which completes when the analysis completes. Even though the test -// configuration remains the same, the reachability result may change due to -// underlying network configuration changes. If the endpoint specifications in -// `ConnectivityTest` become invalid (for example, specified resources are -// deleted in the network, or you lost read permissions to the network -// configurations of listed projects), then the reachability result returns a -// value of `UNKNOWN`. +// Delete: Deletes a specific `ConnectivityTest`. // // - name: Connectivity Test resource name using the form: // `projects/{project_id}/locations/global/connectivityTests/{test_id}`. -func (r *ProjectsLocationsGlobalConnectivityTestsService) Rerun(name string, rerunconnectivitytestrequest *RerunConnectivityTestRequest) *ProjectsLocationsGlobalConnectivityTestsRerunCall { - c := &ProjectsLocationsGlobalConnectivityTestsRerunCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsGlobalConnectivityTestsService) Delete(name string) *ProjectsLocationsGlobalConnectivityTestsDeleteCall { + c := &ProjectsLocationsGlobalConnectivityTestsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.rerunconnectivitytestrequest = rerunconnectivitytestrequest 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 *ProjectsLocationsGlobalConnectivityTestsRerunCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalConnectivityTestsRerunCall { +func (c *ProjectsLocationsGlobalConnectivityTestsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalConnectivityTestsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsGlobalConnectivityTestsRerunCall) Context(ctx context.Context) *ProjectsLocationsGlobalConnectivityTestsRerunCall { +func (c *ProjectsLocationsGlobalConnectivityTestsDeleteCall) Context(ctx context.Context) *ProjectsLocationsGlobalConnectivityTestsDeleteCall { 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 *ProjectsLocationsGlobalConnectivityTestsRerunCall) Header() http.Header { +func (c *ProjectsLocationsGlobalConnectivityTestsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsGlobalConnectivityTestsRerunCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.rerunconnectivitytestrequest) - if err != nil { - return nil, err - } +func (c *ProjectsLocationsGlobalConnectivityTestsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:rerun") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, nil) if err != nil { return nil, err } @@ -5989,16 +6199,16 @@ func (c *ProjectsLocationsGlobalConnectivityTestsRerunCall) doRequest(alt string googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.global.connectivityTests.rerun", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.global.connectivityTests.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networkmanagement.projects.locations.global.connectivityTests.rerun" call. +// Do executes the "networkmanagement.projects.locations.global.connectivityTests.delete" call. // Any non-2xx status code is an error. Response headers are in either // *Operation.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was returned. -func (c *ProjectsLocationsGlobalConnectivityTestsRerunCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsGlobalConnectivityTestsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6028,84 +6238,88 @@ func (c *ProjectsLocationsGlobalConnectivityTestsRerunCall) Do(opts ...googleapi if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.global.connectivityTests.rerun", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.global.connectivityTests.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsGlobalConnectivityTestsSetIamPolicyCall struct { - s *Service - resource string - setiampolicyrequest *SetIamPolicyRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsGlobalConnectivityTestsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + 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. +// Get: Gets the details of a specific Connectivity Test. // -// - 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 *ProjectsLocationsGlobalConnectivityTestsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsGlobalConnectivityTestsSetIamPolicyCall { - c := &ProjectsLocationsGlobalConnectivityTestsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.setiampolicyrequest = setiampolicyrequest +// - name: `ConnectivityTest` resource name using the form: +// `projects/{project_id}/locations/global/connectivityTests/{test_id}`. +func (r *ProjectsLocationsGlobalConnectivityTestsService) Get(name string) *ProjectsLocationsGlobalConnectivityTestsGetCall { + c := &ProjectsLocationsGlobalConnectivityTestsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsGlobalConnectivityTestsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalConnectivityTestsSetIamPolicyCall { +func (c *ProjectsLocationsGlobalConnectivityTestsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalConnectivityTestsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsGlobalConnectivityTestsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGlobalConnectivityTestsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsGlobalConnectivityTestsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsGlobalConnectivityTestsSetIamPolicyCall { +func (c *ProjectsLocationsGlobalConnectivityTestsGetCall) Context(ctx context.Context) *ProjectsLocationsGlobalConnectivityTestsGetCall { 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 *ProjectsLocationsGlobalConnectivityTestsSetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsGlobalConnectivityTestsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsGlobalConnectivityTestsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.setiampolicyrequest) - if err != nil { - return nil, err +func (c *ProjectsLocationsGlobalConnectivityTestsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.global.connectivityTests.setIamPolicy", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.global.connectivityTests.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networkmanagement.projects.locations.global.connectivityTests.setIamPolicy" call. +// Do executes the "networkmanagement.projects.locations.global.connectivityTests.get" 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 *ProjectsLocationsGlobalConnectivityTestsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { +// *ConnectivityTest.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 *ProjectsLocationsGlobalConnectivityTestsGetCall) Do(opts ...googleapi.CallOption) (*ConnectivityTest, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6124,7 +6338,7 @@ func (c *ProjectsLocationsGlobalConnectivityTestsSetIamPolicyCall) Do(opts ...go if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Policy{ + ret := &ConnectivityTest{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6135,70 +6349,89 @@ func (c *ProjectsLocationsGlobalConnectivityTestsSetIamPolicyCall) Do(opts ...go if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.global.connectivityTests.setIamPolicy", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.global.connectivityTests.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsGlobalConnectivityTestsTestIamPermissionsCall struct { - s *Service - resource string - testiampermissionsrequest *TestIamPermissionsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsGlobalConnectivityTestsGetIamPolicyCall struct { + s *Service + resource string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + 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. +// 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 detail is being -// requested. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the appropriate -// value for this field. -func (r *ProjectsLocationsGlobalConnectivityTestsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsGlobalConnectivityTestsTestIamPermissionsCall { - c := &ProjectsLocationsGlobalConnectivityTestsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - 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 *ProjectsLocationsGlobalConnectivityTestsService) GetIamPolicy(resource string) *ProjectsLocationsGlobalConnectivityTestsGetIamPolicyCall { + c := &ProjectsLocationsGlobalConnectivityTestsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource - c.testiampermissionsrequest = testiampermissionsrequest + return c +} + +// OptionsRequestedPolicyVersion sets the optional parameter +// "options.requestedPolicyVersion": 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). +func (c *ProjectsLocationsGlobalConnectivityTestsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsGlobalConnectivityTestsGetIamPolicyCall { + c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) 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 *ProjectsLocationsGlobalConnectivityTestsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalConnectivityTestsTestIamPermissionsCall { +func (c *ProjectsLocationsGlobalConnectivityTestsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalConnectivityTestsGetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsGlobalConnectivityTestsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsGlobalConnectivityTestsGetIamPolicyCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsGlobalConnectivityTestsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsGlobalConnectivityTestsTestIamPermissionsCall { +func (c *ProjectsLocationsGlobalConnectivityTestsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsGlobalConnectivityTestsGetIamPolicyCall { 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 *ProjectsLocationsGlobalConnectivityTestsTestIamPermissionsCall) Header() http.Header { +func (c *ProjectsLocationsGlobalConnectivityTestsGetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsGlobalConnectivityTestsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.testiampermissionsrequest) - if err != nil { - return nil, err +func (c *ProjectsLocationsGlobalConnectivityTestsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } @@ -6206,17 +6439,16 @@ func (c *ProjectsLocationsGlobalConnectivityTestsTestIamPermissionsCall) doReque googleapi.Expand(req.URL, map[string]string{ "resource": c.resource, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.global.connectivityTests.testIamPermissions", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.global.connectivityTests.getIamPolicy", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networkmanagement.projects.locations.global.connectivityTests.testIamPermissions" call. +// Do executes the "networkmanagement.projects.locations.global.connectivityTests.getIamPolicy" 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 *ProjectsLocationsGlobalConnectivityTestsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { +// *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 *ProjectsLocationsGlobalConnectivityTestsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6235,7 +6467,7 @@ func (c *ProjectsLocationsGlobalConnectivityTestsTestIamPermissionsCall) Do(opts if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &TestIamPermissionsResponse{ + ret := &Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6246,88 +6478,124 @@ func (c *ProjectsLocationsGlobalConnectivityTestsTestIamPermissionsCall) Do(opts if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.global.connectivityTests.testIamPermissions", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.global.connectivityTests.getIamPolicy", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsGlobalOperationsCancelCall struct { - s *Service - name string - canceloperationrequest *CancelOperationRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsGlobalConnectivityTestsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Cancel: Starts asynchronous cancellation on a long-running operation. The -// server makes a best effort to cancel the operation, but success is not -// guaranteed. If the server doesn't support this method, it returns -// `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or -// other methods to check whether the cancellation succeeded or whether the -// operation completed despite cancellation. On successful cancellation, the -// operation is not deleted; instead, it becomes an operation with an -// Operation.error value with a google.rpc.Status.code of `1`, corresponding to -// `Code.CANCELLED`. +// List: Lists all Connectivity Tests owned by a project. // -// - name: The name of the operation resource to be cancelled. -func (r *ProjectsLocationsGlobalOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsGlobalOperationsCancelCall { - c := &ProjectsLocationsGlobalOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.canceloperationrequest = canceloperationrequest +// - parent: The parent resource of the Connectivity Tests: +// `projects/{project_id}/locations/global`. +func (r *ProjectsLocationsGlobalConnectivityTestsService) List(parent string) *ProjectsLocationsGlobalConnectivityTestsListCall { + c := &ProjectsLocationsGlobalConnectivityTestsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Lists the `ConnectivityTests` +// that match the filter expression. A filter expression filters the resources +// listed in the response. The expression must be of the form ` ` where +// operators: `<`, `>`, `<=`, `>=`, `!=`, `=`, `:` are supported (colon `:` +// represents a HAS operator which is roughly synonymous with equality). can +// refer to a proto or JSON field, or a synthetic field. Field names can be +// camelCase or snake_case. Examples: - Filter by name: name = +// "projects/proj-1/locations/global/connectivityTests/test-1 - Filter by +// labels: - Resources that have a key called `foo` labels.foo:* - Resources +// that have a key called `foo` whose value is `bar` labels.foo = bar +func (c *ProjectsLocationsGlobalConnectivityTestsListCall) Filter(filter string) *ProjectsLocationsGlobalConnectivityTestsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": Field to use to sort the +// list. +func (c *ProjectsLocationsGlobalConnectivityTestsListCall) OrderBy(orderBy string) *ProjectsLocationsGlobalConnectivityTestsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": Number of +// `ConnectivityTests` to return. +func (c *ProjectsLocationsGlobalConnectivityTestsListCall) PageSize(pageSize int64) *ProjectsLocationsGlobalConnectivityTestsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Page token from an +// earlier query, as returned in `next_page_token`. +func (c *ProjectsLocationsGlobalConnectivityTestsListCall) PageToken(pageToken string) *ProjectsLocationsGlobalConnectivityTestsListCall { + c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsGlobalOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalOperationsCancelCall { +func (c *ProjectsLocationsGlobalConnectivityTestsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalConnectivityTestsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsGlobalConnectivityTestsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsGlobalConnectivityTestsListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsGlobalOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsGlobalOperationsCancelCall { +func (c *ProjectsLocationsGlobalConnectivityTestsListCall) Context(ctx context.Context) *ProjectsLocationsGlobalConnectivityTestsListCall { 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 *ProjectsLocationsGlobalOperationsCancelCall) Header() http.Header { +func (c *ProjectsLocationsGlobalConnectivityTestsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsGlobalOperationsCancelCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.canceloperationrequest) - if err != nil { - return nil, err +func (c *ProjectsLocationsGlobalConnectivityTestsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/connectivityTests") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.global.operations.cancel", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.global.connectivityTests.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networkmanagement.projects.locations.global.operations.cancel" call. +// Do executes the "networkmanagement.projects.locations.global.connectivityTests.list" call. // Any non-2xx status code is an error. Response headers are in either -// *Empty.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 *ProjectsLocationsGlobalOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) { +// *ListConnectivityTestsResponse.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 *ProjectsLocationsGlobalConnectivityTestsListCall) Do(opts ...googleapi.CallOption) (*ListConnectivityTestsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6346,7 +6614,7 @@ func (c *ProjectsLocationsGlobalOperationsCancelCall) Do(opts ...googleapi.CallO if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Empty{ + ret := &ListConnectivityTestsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6357,60 +6625,102 @@ func (c *ProjectsLocationsGlobalOperationsCancelCall) Do(opts ...googleapi.CallO if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.global.operations.cancel", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.global.connectivityTests.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsGlobalOperationsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsGlobalConnectivityTestsListCall) Pages(ctx context.Context, f func(*ListConnectivityTestsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } } -// Delete: Deletes a long-running operation. This method indicates that the -// client is no longer interested in the operation result. It does not cancel -// the operation. If the server doesn't support this method, it returns -// `google.rpc.Code.UNIMPLEMENTED`. +type ProjectsLocationsGlobalConnectivityTestsPatchCall struct { + s *Service + name string + connectivitytest *ConnectivityTest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates the configuration of an existing `ConnectivityTest`. After +// you update a test, the reachability analysis is performed as part of the +// long running operation, which completes when the analysis completes. The +// Reachability state in the test resource is updated with the new result. If +// the endpoint specifications in `ConnectivityTest` are invalid (for example, +// they contain non-existent resources in the network, or the user does not +// have read permissions to the network configurations of listed projects), +// then the reachability result returns a value of UNKNOWN. If the endpoint +// specifications in `ConnectivityTest` are incomplete, the reachability result +// returns a value of `AMBIGUOUS`. See the documentation in `ConnectivityTest` +// for more details. // -// - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsGlobalOperationsService) Delete(name string) *ProjectsLocationsGlobalOperationsDeleteCall { - c := &ProjectsLocationsGlobalOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Identifier. Unique name of the resource using the form: +// `projects/{project_id}/locations/global/connectivityTests/{test_id}`. +func (r *ProjectsLocationsGlobalConnectivityTestsService) Patch(name string, connectivitytest *ConnectivityTest) *ProjectsLocationsGlobalConnectivityTestsPatchCall { + c := &ProjectsLocationsGlobalConnectivityTestsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.connectivitytest = connectivitytest + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. Mask of +// fields to update. At least one path must be supplied in this field. +func (c *ProjectsLocationsGlobalConnectivityTestsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsGlobalConnectivityTestsPatchCall { + c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsGlobalOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalOperationsDeleteCall { +func (c *ProjectsLocationsGlobalConnectivityTestsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalConnectivityTestsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsGlobalOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsGlobalOperationsDeleteCall { +func (c *ProjectsLocationsGlobalConnectivityTestsPatchCall) Context(ctx context.Context) *ProjectsLocationsGlobalConnectivityTestsPatchCall { 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 *ProjectsLocationsGlobalOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsGlobalConnectivityTestsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsGlobalOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) +func (c *ProjectsLocationsGlobalConnectivityTestsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.connectivitytest) + if err != nil { + return nil, err + } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, nil) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } @@ -6418,16 +6728,16 @@ func (c *ProjectsLocationsGlobalOperationsDeleteCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.global.operations.delete", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.global.connectivityTests.patch", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networkmanagement.projects.locations.global.operations.delete" call. +// Do executes the "networkmanagement.projects.locations.global.connectivityTests.patch" call. // Any non-2xx status code is an error. Response headers are in either -// *Empty.ServerResponse.Header or (if a response was returned at all) in +// *Operation.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was returned. -func (c *ProjectsLocationsGlobalOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { +func (c *ProjectsLocationsGlobalConnectivityTestsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6446,7 +6756,7 @@ func (c *ProjectsLocationsGlobalOperationsDeleteCall) Do(opts ...googleapi.CallO if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Empty{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6457,71 +6767,72 @@ func (c *ProjectsLocationsGlobalOperationsDeleteCall) Do(opts ...googleapi.CallO if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.global.operations.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.global.connectivityTests.patch", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsGlobalOperationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsGlobalConnectivityTestsRerunCall struct { + s *Service + name string + rerunconnectivitytestrequest *RerunConnectivityTestRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can use this -// method to poll the operation result at intervals as recommended by the API -// service. +// Rerun: Rerun an existing `ConnectivityTest`. After the user triggers the +// rerun, the reachability analysis is performed as part of the long running +// operation, which completes when the analysis completes. Even though the test +// configuration remains the same, the reachability result may change due to +// underlying network configuration changes. If the endpoint specifications in +// `ConnectivityTest` become invalid (for example, specified resources are +// deleted in the network, or you lost read permissions to the network +// configurations of listed projects), then the reachability result returns a +// value of `UNKNOWN`. // -// - name: The name of the operation resource. -func (r *ProjectsLocationsGlobalOperationsService) Get(name string) *ProjectsLocationsGlobalOperationsGetCall { - c := &ProjectsLocationsGlobalOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} +// - name: Connectivity Test resource name using the form: +// `projects/{project_id}/locations/global/connectivityTests/{test_id}`. +func (r *ProjectsLocationsGlobalConnectivityTestsService) Rerun(name string, rerunconnectivitytestrequest *RerunConnectivityTestRequest) *ProjectsLocationsGlobalConnectivityTestsRerunCall { + c := &ProjectsLocationsGlobalConnectivityTestsRerunCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.rerunconnectivitytestrequest = rerunconnectivitytestrequest + 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 *ProjectsLocationsGlobalOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalOperationsGetCall { +func (c *ProjectsLocationsGlobalConnectivityTestsRerunCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalConnectivityTestsRerunCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *ProjectsLocationsGlobalOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGlobalOperationsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsGlobalOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsGlobalOperationsGetCall { +func (c *ProjectsLocationsGlobalConnectivityTestsRerunCall) Context(ctx context.Context) *ProjectsLocationsGlobalConnectivityTestsRerunCall { 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 *ProjectsLocationsGlobalOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsGlobalConnectivityTestsRerunCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsGlobalOperationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) +func (c *ProjectsLocationsGlobalConnectivityTestsRerunCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.rerunconnectivitytestrequest) + if err != nil { + return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:rerun") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -6529,16 +6840,16 @@ func (c *ProjectsLocationsGlobalOperationsGetCall) doRequest(alt string) (*http. googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.global.operations.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.global.connectivityTests.rerun", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networkmanagement.projects.locations.global.operations.get" call. +// Do executes the "networkmanagement.projects.locations.global.connectivityTests.rerun" call. // Any non-2xx status code is an error. Response headers are in either // *Operation.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was returned. -func (c *ProjectsLocationsGlobalOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsGlobalConnectivityTestsRerunCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6568,108 +6879,84 @@ func (c *ProjectsLocationsGlobalOperationsGetCall) Do(opts ...googleapi.CallOpti if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.global.operations.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.global.connectivityTests.rerun", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsGlobalOperationsListCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsGlobalConnectivityTestsSetIamPolicyCall struct { + s *Service + resource string + setiampolicyrequest *SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists operations that match the specified filter in the request. If -// the server doesn't support this method, it returns `UNIMPLEMENTED`. +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, +// and `PERMISSION_DENIED` errors. // -// - name: The name of the operation's parent resource. -func (r *ProjectsLocationsGlobalOperationsService) List(name string) *ProjectsLocationsGlobalOperationsListCall { - c := &ProjectsLocationsGlobalOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Filter sets the optional parameter "filter": The standard list filter. -func (c *ProjectsLocationsGlobalOperationsListCall) Filter(filter string) *ProjectsLocationsGlobalOperationsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The standard list page -// size. -func (c *ProjectsLocationsGlobalOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsGlobalOperationsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": The standard list page -// token. -func (c *ProjectsLocationsGlobalOperationsListCall) PageToken(pageToken string) *ProjectsLocationsGlobalOperationsListCall { - c.urlParams_.Set("pageToken", pageToken) +// - 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 *ProjectsLocationsGlobalConnectivityTestsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsGlobalConnectivityTestsSetIamPolicyCall { + c := &ProjectsLocationsGlobalConnectivityTestsSetIamPolicyCall{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 *ProjectsLocationsGlobalOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalOperationsListCall { +func (c *ProjectsLocationsGlobalConnectivityTestsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalConnectivityTestsSetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *ProjectsLocationsGlobalOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsGlobalOperationsListCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsGlobalOperationsListCall) Context(ctx context.Context) *ProjectsLocationsGlobalOperationsListCall { +func (c *ProjectsLocationsGlobalConnectivityTestsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsGlobalConnectivityTestsSetIamPolicyCall { 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 *ProjectsLocationsGlobalOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsGlobalConnectivityTestsSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsGlobalOperationsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) +func (c *ProjectsLocationsGlobalConnectivityTestsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.setiampolicyrequest) + if err != nil { + return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + 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, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.global.operations.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.global.connectivityTests.setIamPolicy", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networkmanagement.projects.locations.global.operations.list" call. +// Do executes the "networkmanagement.projects.locations.global.connectivityTests.setIamPolicy" call. // Any non-2xx status code is an error. Response headers are in either -// *ListOperationsResponse.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 *ProjectsLocationsGlobalOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) { +// *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 *ProjectsLocationsGlobalConnectivityTestsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6688,7 +6975,7 @@ func (c *ProjectsLocationsGlobalOperationsListCall) Do(opts ...googleapi.CallOpt if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListOperationsResponse{ + ret := &Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6699,92 +6986,68 @@ func (c *ProjectsLocationsGlobalOperationsListCall) Do(opts ...googleapi.CallOpt if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.global.operations.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.global.connectivityTests.setIamPolicy", "response", internallog.HTTPResponse(res, b)) return ret, nil } -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsGlobalOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - -type ProjectsLocationsNetworkMonitoringProvidersCreateCall struct { +type ProjectsLocationsGlobalConnectivityTestsTestIamPermissionsCall struct { s *Service - parent string - networkmonitoringprovider *NetworkMonitoringProvider + resource string + testiampermissionsrequest *TestIamPermissionsRequest urlParams_ gensupport.URLParams ctx_ context.Context header_ http.Header } -// Create: Creates a NetworkMonitoringProvider resource. +// 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. // -// - parent: Parent value for CreateNetworkMonitoringProviderRequest. Format: -// projects/{project}/locations/{location}. -func (r *ProjectsLocationsNetworkMonitoringProvidersService) Create(parent string, networkmonitoringprovider *NetworkMonitoringProvider) *ProjectsLocationsNetworkMonitoringProvidersCreateCall { - c := &ProjectsLocationsNetworkMonitoringProvidersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.networkmonitoringprovider = networkmonitoringprovider - return c -} - -// NetworkMonitoringProviderId sets the optional parameter -// "networkMonitoringProviderId": Required. The ID to use for the -// NetworkMonitoringProvider resource, which will become the final component of -// the NetworkMonitoringProvider resource's name. -func (c *ProjectsLocationsNetworkMonitoringProvidersCreateCall) NetworkMonitoringProviderId(networkMonitoringProviderId string) *ProjectsLocationsNetworkMonitoringProvidersCreateCall { - c.urlParams_.Set("networkMonitoringProviderId", networkMonitoringProviderId) +// - 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 *ProjectsLocationsGlobalConnectivityTestsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsGlobalConnectivityTestsTestIamPermissionsCall { + c := &ProjectsLocationsGlobalConnectivityTestsTestIamPermissionsCall{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 *ProjectsLocationsNetworkMonitoringProvidersCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsNetworkMonitoringProvidersCreateCall { +func (c *ProjectsLocationsGlobalConnectivityTestsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalConnectivityTestsTestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsNetworkMonitoringProvidersCreateCall) Context(ctx context.Context) *ProjectsLocationsNetworkMonitoringProvidersCreateCall { +func (c *ProjectsLocationsGlobalConnectivityTestsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsGlobalConnectivityTestsTestIamPermissionsCall { 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 *ProjectsLocationsNetworkMonitoringProvidersCreateCall) Header() http.Header { +func (c *ProjectsLocationsGlobalConnectivityTestsTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsNetworkMonitoringProvidersCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsGlobalConnectivityTestsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.networkmonitoringprovider) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.testiampermissionsrequest) if err != nil { return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/networkMonitoringProviders") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -6792,18 +7055,19 @@ func (c *ProjectsLocationsNetworkMonitoringProvidersCreateCall) doRequest(alt st } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "resource": c.resource, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.create", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.global.connectivityTests.testIamPermissions", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networkmanagement.projects.locations.networkMonitoringProviders.create" call. +// Do executes the "networkmanagement.projects.locations.global.connectivityTests.testIamPermissions" call. // Any non-2xx status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was returned. -func (c *ProjectsLocationsNetworkMonitoringProvidersCreateCall) Do(opts ...googleapi.CallOption) (*Operation, 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 *ProjectsLocationsGlobalConnectivityTestsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6822,7 +7086,7 @@ func (c *ProjectsLocationsNetworkMonitoringProvidersCreateCall) Do(opts ...googl if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &TestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6833,60 +7097,71 @@ func (c *ProjectsLocationsNetworkMonitoringProvidersCreateCall) Do(opts ...googl if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.create", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.global.connectivityTests.testIamPermissions", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsNetworkMonitoringProvidersDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsGlobalOperationsCancelCall struct { + s *Service + name string + canceloperationrequest *CancelOperationRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Delete: Deletes a NetworkMonitoringProvider resource and all of its child -// resources. +// Cancel: Starts asynchronous cancellation on a long-running operation. The +// server makes a best effort to cancel the operation, but success is not +// guaranteed. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or +// other methods to check whether the cancellation succeeded or whether the +// operation completed despite cancellation. On successful cancellation, the +// operation is not deleted; instead, it becomes an operation with an +// Operation.error value with a google.rpc.Status.code of `1`, corresponding to +// `Code.CANCELLED`. // -// - name: Name of the resource. Format: -// projects/{project}/locations/{location}/networkMonitoringProviders/{network -// _monitoring_provider}. -func (r *ProjectsLocationsNetworkMonitoringProvidersService) Delete(name string) *ProjectsLocationsNetworkMonitoringProvidersDeleteCall { - c := &ProjectsLocationsNetworkMonitoringProvidersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - name: The name of the operation resource to be cancelled. +func (r *ProjectsLocationsGlobalOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsGlobalOperationsCancelCall { + c := &ProjectsLocationsGlobalOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.canceloperationrequest = canceloperationrequest 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 *ProjectsLocationsNetworkMonitoringProvidersDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsNetworkMonitoringProvidersDeleteCall { +func (c *ProjectsLocationsGlobalOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalOperationsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsNetworkMonitoringProvidersDeleteCall) Context(ctx context.Context) *ProjectsLocationsNetworkMonitoringProvidersDeleteCall { +func (c *ProjectsLocationsGlobalOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsGlobalOperationsCancelCall { 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 *ProjectsLocationsNetworkMonitoringProvidersDeleteCall) Header() http.Header { +func (c *ProjectsLocationsGlobalOperationsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsNetworkMonitoringProvidersDeleteCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) +func (c *ProjectsLocationsGlobalOperationsCancelCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.canceloperationrequest) + if err != nil { + return nil, err + } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, nil) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -6894,16 +7169,16 @@ func (c *ProjectsLocationsNetworkMonitoringProvidersDeleteCall) doRequest(alt st googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.delete", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.global.operations.cancel", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networkmanagement.projects.locations.networkMonitoringProviders.delete" call. +// Do executes the "networkmanagement.projects.locations.global.operations.cancel" call. // Any non-2xx status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at all) in +// *Empty.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 *ProjectsLocationsNetworkMonitoringProvidersDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsGlobalOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6922,7 +7197,7 @@ func (c *ProjectsLocationsNetworkMonitoringProvidersDeleteCall) Do(opts ...googl if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &Empty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6933,26 +7208,26 @@ func (c *ProjectsLocationsNetworkMonitoringProvidersDeleteCall) Do(opts ...googl if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.global.operations.cancel", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsNetworkMonitoringProvidersGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsGlobalOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets the NetworkMonitoringProvider resource. +// Delete: Deletes a long-running operation. This method indicates that the +// client is no longer interested in the operation result. It does not cancel +// the operation. If the server doesn't support this method, it returns +// `google.rpc.Code.UNIMPLEMENTED`. // -// - name: Name of the resource. Format: -// `projects/{project}/locations/{location}/networkMonitoringProviders/{networ -// k_monitoring_provider}`. -func (r *ProjectsLocationsNetworkMonitoringProvidersService) Get(name string) *ProjectsLocationsNetworkMonitoringProvidersGetCall { - c := &ProjectsLocationsNetworkMonitoringProvidersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsGlobalOperationsService) Delete(name string) *ProjectsLocationsGlobalOperationsDeleteCall { + c := &ProjectsLocationsGlobalOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -6960,44 +7235,33 @@ func (r *ProjectsLocationsNetworkMonitoringProvidersService) Get(name string) *P // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsNetworkMonitoringProvidersGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsNetworkMonitoringProvidersGetCall { +func (c *ProjectsLocationsGlobalOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalOperationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *ProjectsLocationsNetworkMonitoringProvidersGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsNetworkMonitoringProvidersGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsNetworkMonitoringProvidersGetCall) Context(ctx context.Context) *ProjectsLocationsNetworkMonitoringProvidersGetCall { +func (c *ProjectsLocationsGlobalOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsGlobalOperationsDeleteCall { 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 *ProjectsLocationsNetworkMonitoringProvidersGetCall) Header() http.Header { +func (c *ProjectsLocationsGlobalOperationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsNetworkMonitoringProvidersGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsGlobalOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + req, err := http.NewRequest("DELETE", urls, nil) if err != nil { return nil, err } @@ -7005,17 +7269,16 @@ func (c *ProjectsLocationsNetworkMonitoringProvidersGetCall) doRequest(alt strin googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.global.operations.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networkmanagement.projects.locations.networkMonitoringProviders.get" call. +// Do executes the "networkmanagement.projects.locations.global.operations.delete" call. // Any non-2xx status code is an error. Response headers are in either -// *NetworkMonitoringProvider.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 *ProjectsLocationsNetworkMonitoringProvidersGetCall) Do(opts ...googleapi.CallOption) (*NetworkMonitoringProvider, error) { +// *Empty.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 *ProjectsLocationsGlobalOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7034,7 +7297,7 @@ func (c *ProjectsLocationsNetworkMonitoringProvidersGetCall) Do(opts ...googleap if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &NetworkMonitoringProvider{ + ret := &Empty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7045,51 +7308,34 @@ func (c *ProjectsLocationsNetworkMonitoringProvidersGetCall) Do(opts ...googleap if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.global.operations.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsNetworkMonitoringProvidersListCall struct { +type ProjectsLocationsGlobalOperationsGetCall struct { s *Service - parent string + name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists NetworkMonitoringProviders for a given project and location. +// Get: Gets the latest state of a long-running operation. Clients can use this +// method to poll the operation result at intervals as recommended by the API +// service. // -// - parent: Parent value for ListNetworkMonitoringProvidersRequest. Format: -// `projects/{project}/locations/{location}`. -func (r *ProjectsLocationsNetworkMonitoringProvidersService) List(parent string) *ProjectsLocationsNetworkMonitoringProvidersListCall { - c := &ProjectsLocationsNetworkMonitoringProvidersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number of -// monitoring points to return. The service may return fewer than this value. -// If unspecified, at most 20 monitoring points will be returned. The maximum -// value is 1000; values above 1000 will be coerced to 1000. -func (c *ProjectsLocationsNetworkMonitoringProvidersListCall) PageSize(pageSize int64) *ProjectsLocationsNetworkMonitoringProvidersListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": A page token, received -// from a previous `ListMonitoringPoints` call. Provide this to retrieve the -// subsequent page. When paginating, all other parameters provided to -// `ListMonitoringPoints` must match the call that provided the page token. -func (c *ProjectsLocationsNetworkMonitoringProvidersListCall) PageToken(pageToken string) *ProjectsLocationsNetworkMonitoringProvidersListCall { - c.urlParams_.Set("pageToken", pageToken) +// - name: The name of the operation resource. +func (r *ProjectsLocationsGlobalOperationsService) Get(name string) *ProjectsLocationsGlobalOperationsGetCall { + c := &ProjectsLocationsGlobalOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsNetworkMonitoringProvidersListCall) Fields(s ...googleapi.Field) *ProjectsLocationsNetworkMonitoringProvidersListCall { +func (c *ProjectsLocationsGlobalOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalOperationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -7097,34 +7343,34 @@ func (c *ProjectsLocationsNetworkMonitoringProvidersListCall) Fields(s ...google // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *ProjectsLocationsNetworkMonitoringProvidersListCall) IfNoneMatch(entityTag string) *ProjectsLocationsNetworkMonitoringProvidersListCall { +func (c *ProjectsLocationsGlobalOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGlobalOperationsGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsNetworkMonitoringProvidersListCall) Context(ctx context.Context) *ProjectsLocationsNetworkMonitoringProvidersListCall { +func (c *ProjectsLocationsGlobalOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsGlobalOperationsGetCall { 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 *ProjectsLocationsNetworkMonitoringProvidersListCall) Header() http.Header { +func (c *ProjectsLocationsGlobalOperationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsNetworkMonitoringProvidersListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsGlobalOperationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/networkMonitoringProviders") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { @@ -7132,19 +7378,18 @@ func (c *ProjectsLocationsNetworkMonitoringProvidersListCall) doRequest(alt stri } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.global.operations.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networkmanagement.projects.locations.networkMonitoringProviders.list" call. +// Do executes the "networkmanagement.projects.locations.global.operations.get" call. // Any non-2xx status code is an error. Response headers are in either -// *ListNetworkMonitoringProvidersResponse.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 *ProjectsLocationsNetworkMonitoringProvidersListCall) Do(opts ...googleapi.CallOption) (*ListNetworkMonitoringProvidersResponse, error) { +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsGlobalOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7163,7 +7408,7 @@ func (c *ProjectsLocationsNetworkMonitoringProvidersListCall) Do(opts ...googlea if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListNetworkMonitoringProvidersResponse{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7174,32 +7419,11 @@ func (c *ProjectsLocationsNetworkMonitoringProvidersListCall) Do(opts ...googlea if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.global.operations.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsNetworkMonitoringProvidersListCall) Pages(ctx context.Context, f func(*ListNetworkMonitoringProvidersResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - -type ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsGetCall struct { +type ProjectsLocationsGlobalOperationsListCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -7208,21 +7432,40 @@ type ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsGetCall struct { header_ http.Header } -// Get: Gets the MonitoringPoint resource. +// List: Lists operations that match the specified filter in the request. If +// the server doesn't support this method, it returns `UNIMPLEMENTED`. // -// - name: Name of the resource. Format: -// projects/{project}/locations/{location}/networkMonitoringProviders/{network -// _monitoring_provider}/monitoringPoints/{monitoring_point}. -func (r *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsService) Get(name string) *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsGetCall { - c := &ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsGlobalOperationsService) List(name string) *ProjectsLocationsGlobalOperationsListCall { + c := &ProjectsLocationsGlobalOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } +// Filter sets the optional parameter "filter": The standard list filter. +func (c *ProjectsLocationsGlobalOperationsListCall) Filter(filter string) *ProjectsLocationsGlobalOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list page +// size. +func (c *ProjectsLocationsGlobalOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsGlobalOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list page +// token. +func (c *ProjectsLocationsGlobalOperationsListCall) PageToken(pageToken string) *ProjectsLocationsGlobalOperationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsGetCall { +func (c *ProjectsLocationsGlobalOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalOperationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -7230,34 +7473,34 @@ func (c *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsGetCall) Fie // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsGetCall { +func (c *ProjectsLocationsGlobalOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsGlobalOperationsListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsGetCall) Context(ctx context.Context) *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsGetCall { +func (c *ProjectsLocationsGlobalOperationsListCall) Context(ctx context.Context) *ProjectsLocationsGlobalOperationsListCall { 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 *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsGetCall) Header() http.Header { +func (c *ProjectsLocationsGlobalOperationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsGlobalOperationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { @@ -7267,17 +7510,17 @@ func (c *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsGetCall) doR googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.monitoringPoints.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.global.operations.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networkmanagement.projects.locations.networkMonitoringProviders.monitoringPoints.get" call. +// Do executes the "networkmanagement.projects.locations.global.operations.list" call. // Any non-2xx status code is an error. Response headers are in either -// *MonitoringPoint.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// *ListOperationsResponse.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 *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsGetCall) Do(opts ...googleapi.CallOption) (*MonitoringPoint, error) { +func (c *ProjectsLocationsGlobalOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7296,7 +7539,7 @@ func (c *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsGetCall) Do( if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &MonitoringPoint{ + ret := &ListOperationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7307,89 +7550,94 @@ func (c *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsGetCall) Do( if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.monitoringPoints.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.global.operations.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Lists MonitoringPoints for a given network monitoring provider. -// -// - parent: Parent value for ListMonitoringPointsRequest. Format: -// projects/{project}/locations/{location}/networkMonitoringProviders/{network -// _monitoring_provider}. -func (r *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsService) List(parent string) *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsListCall { - c := &ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsGlobalOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } } -// PageSize sets the optional parameter "pageSize": The maximum number of -// monitoring points to return. The service may return fewer than this value. -// If unspecified, at most 20 monitoring points will be returned. The maximum -// value is 1000; values above 1000 will be coerced to 1000. -func (c *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsListCall) PageSize(pageSize int64) *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) +type ProjectsLocationsNetworkMonitoringProvidersCreateCall struct { + s *Service + parent string + networkmonitoringprovider *NetworkMonitoringProvider + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a NetworkMonitoringProvider resource. +// +// - parent: Parent value for CreateNetworkMonitoringProviderRequest. Format: +// projects/{project}/locations/{location}. +func (r *ProjectsLocationsNetworkMonitoringProvidersService) Create(parent string, networkmonitoringprovider *NetworkMonitoringProvider) *ProjectsLocationsNetworkMonitoringProvidersCreateCall { + c := &ProjectsLocationsNetworkMonitoringProvidersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.networkmonitoringprovider = networkmonitoringprovider return c } -// PageToken sets the optional parameter "pageToken": A page token, received -// from a previous `ListMonitoringPoints` call. Provide this to retrieve the -// subsequent page. When paginating, all other parameters provided to -// `ListMonitoringPoints` must match the call that provided the page token. -func (c *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsListCall) PageToken(pageToken string) *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsListCall { - c.urlParams_.Set("pageToken", pageToken) +// NetworkMonitoringProviderId sets the optional parameter +// "networkMonitoringProviderId": Required. The ID to use for the +// NetworkMonitoringProvider resource, which will become the final component of +// the NetworkMonitoringProvider resource's name. +func (c *ProjectsLocationsNetworkMonitoringProvidersCreateCall) NetworkMonitoringProviderId(networkMonitoringProviderId string) *ProjectsLocationsNetworkMonitoringProvidersCreateCall { + c.urlParams_.Set("networkMonitoringProviderId", networkMonitoringProviderId) 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 *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsListCall { +func (c *ProjectsLocationsNetworkMonitoringProvidersCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsNetworkMonitoringProvidersCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsListCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsListCall) Context(ctx context.Context) *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsListCall { +func (c *ProjectsLocationsNetworkMonitoringProvidersCreateCall) Context(ctx context.Context) *ProjectsLocationsNetworkMonitoringProvidersCreateCall { 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 *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsListCall) Header() http.Header { +func (c *ProjectsLocationsNetworkMonitoringProvidersCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) +func (c *ProjectsLocationsNetworkMonitoringProvidersCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.networkmonitoringprovider) + if err != nil { + return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/monitoringPoints") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/networkMonitoringProviders") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -7397,17 +7645,16 @@ func (c *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsListCall) do googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.monitoringPoints.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.create", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networkmanagement.projects.locations.networkMonitoringProviders.monitoringPoints.list" call. +// Do executes the "networkmanagement.projects.locations.networkMonitoringProviders.create" call. // Any non-2xx status code is an error. Response headers are in either -// *ListMonitoringPointsResponse.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 *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsListCall) Do(opts ...googleapi.CallOption) (*ListMonitoringPointsResponse, error) { +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsNetworkMonitoringProvidersCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7426,7 +7673,7 @@ func (c *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsListCall) Do if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListMonitoringPointsResponse{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7437,47 +7684,26 @@ func (c *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsListCall) Do if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.monitoringPoints.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.create", "response", internallog.HTTPResponse(res, b)) return ret, nil } -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsListCall) Pages(ctx context.Context, f func(*ListMonitoringPointsResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - -type ProjectsLocationsNetworkMonitoringProvidersNetworkPathsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsNetworkMonitoringProvidersDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets the NetworkPath resource. +// Delete: Deletes a NetworkMonitoringProvider resource and all of its child +// resources. // // - name: Name of the resource. Format: // projects/{project}/locations/{location}/networkMonitoringProviders/{network -// _monitoring_provider}/networkPaths/{network_path}. -func (r *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsService) Get(name string) *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsGetCall { - c := &ProjectsLocationsNetworkMonitoringProvidersNetworkPathsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// _monitoring_provider}. +func (r *ProjectsLocationsNetworkMonitoringProvidersService) Delete(name string) *ProjectsLocationsNetworkMonitoringProvidersDeleteCall { + c := &ProjectsLocationsNetworkMonitoringProvidersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -7485,44 +7711,33 @@ func (r *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsService) Get(nam // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsGetCall { +func (c *ProjectsLocationsNetworkMonitoringProvidersDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsNetworkMonitoringProvidersDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsGetCall) Context(ctx context.Context) *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsGetCall { +func (c *ProjectsLocationsNetworkMonitoringProvidersDeleteCall) Context(ctx context.Context) *ProjectsLocationsNetworkMonitoringProvidersDeleteCall { 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 *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsGetCall) Header() http.Header { +func (c *ProjectsLocationsNetworkMonitoringProvidersDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsNetworkMonitoringProvidersDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + req, err := http.NewRequest("DELETE", urls, nil) if err != nil { return nil, err } @@ -7530,16 +7745,16 @@ func (c *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsGetCall) doReque googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.networkPaths.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networkmanagement.projects.locations.networkMonitoringProviders.networkPaths.get" call. +// Do executes the "networkmanagement.projects.locations.networkMonitoringProviders.delete" call. // Any non-2xx status code is an error. Response headers are in either -// *NetworkPath.ServerResponse.Header or (if a response was returned at all) in +// *Operation.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was returned. -func (c *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsGetCall) Do(opts ...googleapi.CallOption) (*NetworkPath, error) { +func (c *ProjectsLocationsNetworkMonitoringProvidersDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7558,7 +7773,7 @@ func (c *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsGetCall) Do(opts if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &NetworkPath{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7569,52 +7784,34 @@ func (c *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsGetCall) Do(opts if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.networkPaths.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall struct { +type ProjectsLocationsNetworkMonitoringProvidersGetCall struct { s *Service - parent string + name string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists NetworkPaths for a given network monitoring provider. +// Get: Gets the NetworkMonitoringProvider resource. // -// - parent: Parent value for ListNetworkPathsRequest. Format: -// projects/{project}/locations/{location}/networkMonitoringProviders/{network -// _monitoring_provider}. -func (r *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsService) List(parent string) *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall { - c := &ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number of -// network paths to return. The service may return fewer than this value. If -// unspecified, at most 20 network pathswill be returned. The maximum value is -// 1000; values above 1000 will be coerced to 1000. -func (c *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall) PageSize(pageSize int64) *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": A page token, received -// from a previous `ListNetworkPaths` call. Provide this to retrieve the -// subsequent page. When paginating, all other parameters provided to -// `ListNetworkPaths` must match the call that provided the page token. -func (c *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall) PageToken(pageToken string) *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall { - c.urlParams_.Set("pageToken", pageToken) +// - name: Name of the resource. Format: +// `projects/{project}/locations/{location}/networkMonitoringProviders/{networ +// k_monitoring_provider}`. +func (r *ProjectsLocationsNetworkMonitoringProvidersService) Get(name string) *ProjectsLocationsNetworkMonitoringProvidersGetCall { + c := &ProjectsLocationsNetworkMonitoringProvidersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall { +func (c *ProjectsLocationsNetworkMonitoringProvidersGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsNetworkMonitoringProvidersGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -7622,34 +7819,34 @@ func (c *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall) Fields // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall { +func (c *ProjectsLocationsNetworkMonitoringProvidersGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsNetworkMonitoringProvidersGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall) Context(ctx context.Context) *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall { +func (c *ProjectsLocationsNetworkMonitoringProvidersGetCall) Context(ctx context.Context) *ProjectsLocationsNetworkMonitoringProvidersGetCall { 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 *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall) Header() http.Header { +func (c *ProjectsLocationsNetworkMonitoringProvidersGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsNetworkMonitoringProvidersGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/networkPaths") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { @@ -7657,19 +7854,19 @@ func (c *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall) doRequ } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.networkPaths.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networkmanagement.projects.locations.networkMonitoringProviders.networkPaths.list" call. +// Do executes the "networkmanagement.projects.locations.networkMonitoringProviders.get" call. // Any non-2xx status code is an error. Response headers are in either -// *ListNetworkPathsResponse.ServerResponse.Header or (if a response was +// *NetworkMonitoringProvider.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 *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall) Do(opts ...googleapi.CallOption) (*ListNetworkPathsResponse, error) { +func (c *ProjectsLocationsNetworkMonitoringProvidersGetCall) Do(opts ...googleapi.CallOption) (*NetworkMonitoringProvider, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7688,7 +7885,7 @@ func (c *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall) Do(opt if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListNetworkPathsResponse{ + ret := &NetworkMonitoringProvider{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7699,23 +7896,152 @@ func (c *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall) Do(opt if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.networkPaths.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall) Pages(ctx context.Context, f func(*ListNetworkPathsResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err +type ProjectsLocationsNetworkMonitoringProvidersListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists NetworkMonitoringProviders for a given project and location. +// +// - parent: Parent value for ListNetworkMonitoringProvidersRequest. Format: +// `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsNetworkMonitoringProvidersService) List(parent string) *ProjectsLocationsNetworkMonitoringProvidersListCall { + c := &ProjectsLocationsNetworkMonitoringProvidersListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of +// monitoring points to return. The service may return fewer than this value. +// If unspecified, at most 20 monitoring points will be returned. The maximum +// value is 1000; values above 1000 will be coerced to 1000. +func (c *ProjectsLocationsNetworkMonitoringProvidersListCall) PageSize(pageSize int64) *ProjectsLocationsNetworkMonitoringProvidersListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, received +// from a previous `ListMonitoringPoints` call. Provide this to retrieve the +// subsequent page. When paginating, all other parameters provided to +// `ListMonitoringPoints` must match the call that provided the page token. +func (c *ProjectsLocationsNetworkMonitoringProvidersListCall) PageToken(pageToken string) *ProjectsLocationsNetworkMonitoringProvidersListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsNetworkMonitoringProvidersListCall) Fields(s ...googleapi.Field) *ProjectsLocationsNetworkMonitoringProvidersListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsNetworkMonitoringProvidersListCall) IfNoneMatch(entityTag string) *ProjectsLocationsNetworkMonitoringProvidersListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsNetworkMonitoringProvidersListCall) Context(ctx context.Context) *ProjectsLocationsNetworkMonitoringProvidersListCall { + 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 *ProjectsLocationsNetworkMonitoringProvidersListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsNetworkMonitoringProvidersListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/networkMonitoringProviders") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.list", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networkmanagement.projects.locations.networkMonitoringProviders.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *ListNetworkMonitoringProvidersResponse.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 *ProjectsLocationsNetworkMonitoringProvidersListCall) Do(opts ...googleapi.CallOption) (*ListNetworkMonitoringProvidersResponse, 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 := &ListNetworkMonitoringProvidersResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.list", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsNetworkMonitoringProvidersListCall) Pages(ctx context.Context, f func(*ListNetworkMonitoringProvidersResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err } if x.NextPageToken == "" { return nil @@ -7724,7 +8050,7 @@ func (c *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall) Pages( } } -type ProjectsLocationsNetworkMonitoringProvidersWebPathsGetCall struct { +type ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -7733,13 +8059,13 @@ type ProjectsLocationsNetworkMonitoringProvidersWebPathsGetCall struct { header_ http.Header } -// Get: Gets the WebPath resource. +// Get: Gets the MonitoringPoint resource. // -// - name: Name of the resource.. Format: +// - name: Name of the resource. Format: // projects/{project}/locations/{location}/networkMonitoringProviders/{network -// _monitoring_provider}/webPaths/{web_path}. -func (r *ProjectsLocationsNetworkMonitoringProvidersWebPathsService) Get(name string) *ProjectsLocationsNetworkMonitoringProvidersWebPathsGetCall { - c := &ProjectsLocationsNetworkMonitoringProvidersWebPathsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// _monitoring_provider}/monitoringPoints/{monitoring_point}. +func (r *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsService) Get(name string) *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsGetCall { + c := &ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -7747,7 +8073,7 @@ func (r *ProjectsLocationsNetworkMonitoringProvidersWebPathsService) Get(name st // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsNetworkMonitoringProvidersWebPathsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsNetworkMonitoringProvidersWebPathsGetCall { +func (c *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -7755,27 +8081,27 @@ func (c *ProjectsLocationsNetworkMonitoringProvidersWebPathsGetCall) Fields(s .. // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *ProjectsLocationsNetworkMonitoringProvidersWebPathsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsNetworkMonitoringProvidersWebPathsGetCall { +func (c *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsGetCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsNetworkMonitoringProvidersWebPathsGetCall) Context(ctx context.Context) *ProjectsLocationsNetworkMonitoringProvidersWebPathsGetCall { +func (c *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsGetCall) Context(ctx context.Context) *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsGetCall { 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 *ProjectsLocationsNetworkMonitoringProvidersWebPathsGetCall) Header() http.Header { +func (c *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsNetworkMonitoringProvidersWebPathsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) @@ -7792,16 +8118,17 @@ func (c *ProjectsLocationsNetworkMonitoringProvidersWebPathsGetCall) doRequest(a googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.webPaths.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.monitoringPoints.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networkmanagement.projects.locations.networkMonitoringProviders.webPaths.get" call. +// Do executes the "networkmanagement.projects.locations.networkMonitoringProviders.monitoringPoints.get" call. // Any non-2xx status code is an error. Response headers are in either -// *WebPath.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 *ProjectsLocationsNetworkMonitoringProvidersWebPathsGetCall) Do(opts ...googleapi.CallOption) (*WebPath, error) { +// *MonitoringPoint.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 *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsGetCall) Do(opts ...googleapi.CallOption) (*MonitoringPoint, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7820,7 +8147,7 @@ func (c *ProjectsLocationsNetworkMonitoringProvidersWebPathsGetCall) Do(opts ... if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &WebPath{ + ret := &MonitoringPoint{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7831,11 +8158,11 @@ func (c *ProjectsLocationsNetworkMonitoringProvidersWebPathsGetCall) Do(opts ... if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.webPaths.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.monitoringPoints.get", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall struct { +type ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsListCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -7844,31 +8171,31 @@ type ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall struct { header_ http.Header } -// List: Lists WebPaths for a given network monitoring provider. +// List: Lists MonitoringPoints for a given network monitoring provider. // -// - parent: Parent value for ListWebPathsRequest. Format: +// - parent: Parent value for ListMonitoringPointsRequest. Format: // projects/{project}/locations/{location}/networkMonitoringProviders/{network // _monitoring_provider}. -func (r *ProjectsLocationsNetworkMonitoringProvidersWebPathsService) List(parent string) *ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall { - c := &ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsService) List(parent string) *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsListCall { + c := &ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } -// PageSize sets the optional parameter "pageSize": The maximum number of web -// paths to return. The service may return fewer than this value. If -// unspecified, at most 20 web paths will be returned. The maximum value is -// 1000; values above 1000 will be coerced to 1000. -func (c *ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall) PageSize(pageSize int64) *ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall { +// PageSize sets the optional parameter "pageSize": The maximum number of +// monitoring points to return. The service may return fewer than this value. +// If unspecified, at most 20 monitoring points will be returned. The maximum +// value is 1000; values above 1000 will be coerced to 1000. +func (c *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsListCall) PageSize(pageSize int64) *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": A page token, received -// from a previous `ListWebPaths` call. Provide this to retrieve the subsequent -// page. When paginating, all other parameters provided to `ListWebPaths` must -// match the call that provided the page token. -func (c *ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall) PageToken(pageToken string) *ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall { +// from a previous `ListMonitoringPoints` call. Provide this to retrieve the +// subsequent page. When paginating, all other parameters provided to +// `ListMonitoringPoints` must match the call that provided the page token. +func (c *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsListCall) PageToken(pageToken string) *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -7876,7 +8203,7 @@ func (c *ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall) PageToken( // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall { +func (c *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -7884,34 +8211,34 @@ func (c *ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall) Fields(s . // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall { +func (c *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsListCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall) Context(ctx context.Context) *ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall { +func (c *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsListCall) Context(ctx context.Context) *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsListCall { 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 *ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall) Header() http.Header { +func (c *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/webPaths") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/monitoringPoints") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { @@ -7921,17 +8248,17 @@ func (c *ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall) doRequest( googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.webPaths.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.monitoringPoints.list", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networkmanagement.projects.locations.networkMonitoringProviders.webPaths.list" call. +// Do executes the "networkmanagement.projects.locations.networkMonitoringProviders.monitoringPoints.list" call. // Any non-2xx status code is an error. Response headers are in either -// *ListWebPathsResponse.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 *ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall) Do(opts ...googleapi.CallOption) (*ListWebPathsResponse, error) { +// *ListMonitoringPointsResponse.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 *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsListCall) Do(opts ...googleapi.CallOption) (*ListMonitoringPointsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -7950,7 +8277,7 @@ func (c *ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall) Do(opts .. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListWebPathsResponse{ + ret := &ListMonitoringPointsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -7961,14 +8288,14 @@ func (c *ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall) Do(opts .. if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.webPaths.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.monitoringPoints.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall) Pages(ctx context.Context, f func(*ListWebPathsResponse) error) error { +func (c *ProjectsLocationsNetworkMonitoringProvidersMonitoringPointsListCall) Pages(ctx context.Context, f func(*ListMonitoringPointsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -7986,16 +8313,540 @@ func (c *ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall) Pages(ctx } } -type ProjectsLocationsVpcFlowLogsConfigsCreateCall struct { - s *Service - parent string - vpcflowlogsconfig *VpcFlowLogsConfig - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsNetworkMonitoringProvidersNetworkPathsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Create: Creates a new `VpcFlowLogsConfig`. If a configuration with the exact +// Get: Gets the NetworkPath resource. +// +// - name: Name of the resource. Format: +// projects/{project}/locations/{location}/networkMonitoringProviders/{network +// _monitoring_provider}/networkPaths/{network_path}. +func (r *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsService) Get(name string) *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsGetCall { + c := &ProjectsLocationsNetworkMonitoringProvidersNetworkPathsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsGetCall) Context(ctx context.Context) *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsGetCall { + 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 *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.networkPaths.get", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networkmanagement.projects.locations.networkMonitoringProviders.networkPaths.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *NetworkPath.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 *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsGetCall) Do(opts ...googleapi.CallOption) (*NetworkPath, 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 := &NetworkPath{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.networkPaths.get", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists NetworkPaths for a given network monitoring provider. +// +// - parent: Parent value for ListNetworkPathsRequest. Format: +// projects/{project}/locations/{location}/networkMonitoringProviders/{network +// _monitoring_provider}. +func (r *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsService) List(parent string) *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall { + c := &ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of +// network paths to return. The service may return fewer than this value. If +// unspecified, at most 20 network pathswill be returned. The maximum value is +// 1000; values above 1000 will be coerced to 1000. +func (c *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall) PageSize(pageSize int64) *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, received +// from a previous `ListNetworkPaths` call. Provide this to retrieve the +// subsequent page. When paginating, all other parameters provided to +// `ListNetworkPaths` must match the call that provided the page token. +func (c *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall) PageToken(pageToken string) *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall) Context(ctx context.Context) *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall { + 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 *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/networkPaths") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.networkPaths.list", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networkmanagement.projects.locations.networkMonitoringProviders.networkPaths.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *ListNetworkPathsResponse.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 *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall) Do(opts ...googleapi.CallOption) (*ListNetworkPathsResponse, 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 := &ListNetworkPathsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.networkPaths.list", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsNetworkMonitoringProvidersNetworkPathsListCall) Pages(ctx context.Context, f func(*ListNetworkPathsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +type ProjectsLocationsNetworkMonitoringProvidersWebPathsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the WebPath resource. +// +// - name: Name of the resource.. Format: +// projects/{project}/locations/{location}/networkMonitoringProviders/{network +// _monitoring_provider}/webPaths/{web_path}. +func (r *ProjectsLocationsNetworkMonitoringProvidersWebPathsService) Get(name string) *ProjectsLocationsNetworkMonitoringProvidersWebPathsGetCall { + c := &ProjectsLocationsNetworkMonitoringProvidersWebPathsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsNetworkMonitoringProvidersWebPathsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsNetworkMonitoringProvidersWebPathsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsNetworkMonitoringProvidersWebPathsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsNetworkMonitoringProvidersWebPathsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsNetworkMonitoringProvidersWebPathsGetCall) Context(ctx context.Context) *ProjectsLocationsNetworkMonitoringProvidersWebPathsGetCall { + 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 *ProjectsLocationsNetworkMonitoringProvidersWebPathsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsNetworkMonitoringProvidersWebPathsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.webPaths.get", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networkmanagement.projects.locations.networkMonitoringProviders.webPaths.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *WebPath.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 *ProjectsLocationsNetworkMonitoringProvidersWebPathsGetCall) Do(opts ...googleapi.CallOption) (*WebPath, 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 := &WebPath{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.webPaths.get", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists WebPaths for a given network monitoring provider. +// +// - parent: Parent value for ListWebPathsRequest. Format: +// projects/{project}/locations/{location}/networkMonitoringProviders/{network +// _monitoring_provider}. +func (r *ProjectsLocationsNetworkMonitoringProvidersWebPathsService) List(parent string) *ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall { + c := &ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of web +// paths to return. The service may return fewer than this value. If +// unspecified, at most 20 web paths will be returned. The maximum value is +// 1000; values above 1000 will be coerced to 1000. +func (c *ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall) PageSize(pageSize int64) *ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, received +// from a previous `ListWebPaths` call. Provide this to retrieve the subsequent +// page. When paginating, all other parameters provided to `ListWebPaths` must +// match the call that provided the page token. +func (c *ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall) PageToken(pageToken string) *ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall) Context(ctx context.Context) *ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall { + 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 *ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/webPaths") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.webPaths.list", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networkmanagement.projects.locations.networkMonitoringProviders.webPaths.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *ListWebPathsResponse.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 *ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall) Do(opts ...googleapi.CallOption) (*ListWebPathsResponse, 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 := &ListWebPathsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.networkMonitoringProviders.webPaths.list", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsNetworkMonitoringProvidersWebPathsListCall) Pages(ctx context.Context, f func(*ListWebPathsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +type ProjectsLocationsVpcFlowLogsConfigsCreateCall struct { + s *Service + parent string + vpcflowlogsconfig *VpcFlowLogsConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new `VpcFlowLogsConfig`. If a configuration with the exact // same settings already exists (even if the ID is different), the creation // fails. Notes: 1. Creating a configuration with `state=DISABLED` will fail 2. // The following fields are not considered as settings for the purpose of the @@ -8014,64 +8865,166 @@ func (r *ProjectsLocationsVpcFlowLogsConfigsService) Create(parent string, vpcfl return c } -// VpcFlowLogsConfigId sets the optional parameter "vpcFlowLogsConfigId": -// Required. ID of the `VpcFlowLogsConfig`. -func (c *ProjectsLocationsVpcFlowLogsConfigsCreateCall) VpcFlowLogsConfigId(vpcFlowLogsConfigId string) *ProjectsLocationsVpcFlowLogsConfigsCreateCall { - c.urlParams_.Set("vpcFlowLogsConfigId", vpcFlowLogsConfigId) +// VpcFlowLogsConfigId sets the optional parameter "vpcFlowLogsConfigId": +// Required. ID of the `VpcFlowLogsConfig`. +func (c *ProjectsLocationsVpcFlowLogsConfigsCreateCall) VpcFlowLogsConfigId(vpcFlowLogsConfigId string) *ProjectsLocationsVpcFlowLogsConfigsCreateCall { + c.urlParams_.Set("vpcFlowLogsConfigId", vpcFlowLogsConfigId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsVpcFlowLogsConfigsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsVpcFlowLogsConfigsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsVpcFlowLogsConfigsCreateCall) Context(ctx context.Context) *ProjectsLocationsVpcFlowLogsConfigsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsVpcFlowLogsConfigsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsVpcFlowLogsConfigsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.vpcflowlogsconfig) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/vpcFlowLogsConfigs") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.vpcFlowLogsConfigs.create", "request", internallog.HTTPRequest(req, body.Bytes())) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networkmanagement.projects.locations.vpcFlowLogsConfigs.create" call. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsVpcFlowLogsConfigsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.vpcFlowLogsConfigs.create", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsVpcFlowLogsConfigsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a specific `VpcFlowLogsConfig`. +// +// - name: The resource name of the VpcFlowLogsConfig, in one of the following +// formats: - For a project-level resource: +// `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_c +// onfig_id}` - For an organization-level resource: +// `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_f +// low_logs_config_id}`. +func (r *ProjectsLocationsVpcFlowLogsConfigsService) Delete(name string) *ProjectsLocationsVpcFlowLogsConfigsDeleteCall { + c := &ProjectsLocationsVpcFlowLogsConfigsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsVpcFlowLogsConfigsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsVpcFlowLogsConfigsCreateCall { +func (c *ProjectsLocationsVpcFlowLogsConfigsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsVpcFlowLogsConfigsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsVpcFlowLogsConfigsCreateCall) Context(ctx context.Context) *ProjectsLocationsVpcFlowLogsConfigsCreateCall { +func (c *ProjectsLocationsVpcFlowLogsConfigsDeleteCall) Context(ctx context.Context) *ProjectsLocationsVpcFlowLogsConfigsDeleteCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsVpcFlowLogsConfigsCreateCall) Header() http.Header { +func (c *ProjectsLocationsVpcFlowLogsConfigsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsVpcFlowLogsConfigsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.vpcflowlogsconfig) - if err != nil { - return nil, err - } +func (c *ProjectsLocationsVpcFlowLogsConfigsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/vpcFlowLogsConfigs") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.vpcFlowLogsConfigs.create", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.vpcFlowLogsConfigs.delete", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networkmanagement.projects.locations.vpcFlowLogsConfigs.create" call. +// Do executes the "networkmanagement.projects.locations.vpcFlowLogsConfigs.delete" call. // Any non-2xx status code is an error. Response headers are in either // *Operation.ServerResponse.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was returned. -func (c *ProjectsLocationsVpcFlowLogsConfigsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsVpcFlowLogsConfigsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8101,28 +9054,29 @@ func (c *ProjectsLocationsVpcFlowLogsConfigsCreateCall) Do(opts ...googleapi.Cal if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.vpcFlowLogsConfigs.create", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.vpcFlowLogsConfigs.delete", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsVpcFlowLogsConfigsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsVpcFlowLogsConfigsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Delete: Deletes a specific `VpcFlowLogsConfig`. +// Get: Gets the details of a specific `VpcFlowLogsConfig`. // // - name: The resource name of the VpcFlowLogsConfig, in one of the following -// formats: - For a project-level resource: +// formats: - For project-level resources: // `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_c -// onfig_id}` - For an organization-level resource: +// onfig_id}` - For organization-level resources: // `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_f // low_logs_config_id}`. -func (r *ProjectsLocationsVpcFlowLogsConfigsService) Delete(name string) *ProjectsLocationsVpcFlowLogsConfigsDeleteCall { - c := &ProjectsLocationsVpcFlowLogsConfigsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsVpcFlowLogsConfigsService) Get(name string) *ProjectsLocationsVpcFlowLogsConfigsGetCall { + c := &ProjectsLocationsVpcFlowLogsConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -8130,33 +9084,44 @@ func (r *ProjectsLocationsVpcFlowLogsConfigsService) Delete(name string) *Projec // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsVpcFlowLogsConfigsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsVpcFlowLogsConfigsDeleteCall { +func (c *ProjectsLocationsVpcFlowLogsConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsVpcFlowLogsConfigsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsVpcFlowLogsConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsVpcFlowLogsConfigsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsVpcFlowLogsConfigsDeleteCall) Context(ctx context.Context) *ProjectsLocationsVpcFlowLogsConfigsDeleteCall { +func (c *ProjectsLocationsVpcFlowLogsConfigsGetCall) Context(ctx context.Context) *ProjectsLocationsVpcFlowLogsConfigsGetCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsVpcFlowLogsConfigsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsVpcFlowLogsConfigsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsVpcFlowLogsConfigsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsVpcFlowLogsConfigsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, nil) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } @@ -8164,16 +9129,160 @@ func (c *ProjectsLocationsVpcFlowLogsConfigsDeleteCall) doRequest(alt string) (* googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.vpcFlowLogsConfigs.delete", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.vpcFlowLogsConfigs.get", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networkmanagement.projects.locations.vpcFlowLogsConfigs.delete" call. +// Do executes the "networkmanagement.projects.locations.vpcFlowLogsConfigs.get" call. // Any non-2xx status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was returned. -func (c *ProjectsLocationsVpcFlowLogsConfigsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// *VpcFlowLogsConfig.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsVpcFlowLogsConfigsGetCall) Do(opts ...googleapi.CallOption) (*VpcFlowLogsConfig, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &VpcFlowLogsConfig{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.vpcFlowLogsConfigs.get", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsVpcFlowLogsConfigsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists all `VpcFlowLogsConfigs` in a given project. +// +// - parent: The parent resource of the VpcFlowLogsConfig, in one of the +// following formats: - For project-level resourcs: +// `projects/{project_id}/locations/global` - For organization-level +// resources: `organizations/{organization_id}/locations/global`. +func (r *ProjectsLocationsVpcFlowLogsConfigsService) List(parent string) *ProjectsLocationsVpcFlowLogsConfigsListCall { + c := &ProjectsLocationsVpcFlowLogsConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Lists the `VpcFlowLogsConfigs` +// that match the filter expression. A filter expression must use the supported +// [CEL logic operators] +// (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators). +func (c *ProjectsLocationsVpcFlowLogsConfigsListCall) Filter(filter string) *ProjectsLocationsVpcFlowLogsConfigsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": Field to use to sort the +// list. +func (c *ProjectsLocationsVpcFlowLogsConfigsListCall) OrderBy(orderBy string) *ProjectsLocationsVpcFlowLogsConfigsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": Number of +// `VpcFlowLogsConfigs` to return. +func (c *ProjectsLocationsVpcFlowLogsConfigsListCall) PageSize(pageSize int64) *ProjectsLocationsVpcFlowLogsConfigsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Page token from an +// earlier query, as returned in `next_page_token`. +func (c *ProjectsLocationsVpcFlowLogsConfigsListCall) PageToken(pageToken string) *ProjectsLocationsVpcFlowLogsConfigsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsVpcFlowLogsConfigsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsVpcFlowLogsConfigsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsVpcFlowLogsConfigsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsVpcFlowLogsConfigsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsVpcFlowLogsConfigsListCall) Context(ctx context.Context) *ProjectsLocationsVpcFlowLogsConfigsListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsVpcFlowLogsConfigsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsVpcFlowLogsConfigsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/vpcFlowLogsConfigs") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.vpcFlowLogsConfigs.list", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networkmanagement.projects.locations.vpcFlowLogsConfigs.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *ListVpcFlowLogsConfigsResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsVpcFlowLogsConfigsListCall) Do(opts ...googleapi.CallOption) (*ListVpcFlowLogsConfigsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8192,7 +9301,7 @@ func (c *ProjectsLocationsVpcFlowLogsConfigsDeleteCall) Do(opts ...googleapi.Cal if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &ListVpcFlowLogsConfigsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8203,74 +9312,108 @@ func (c *ProjectsLocationsVpcFlowLogsConfigsDeleteCall) Do(opts ...googleapi.Cal if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.vpcFlowLogsConfigs.delete", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.vpcFlowLogsConfigs.list", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsVpcFlowLogsConfigsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsVpcFlowLogsConfigsListCall) Pages(ctx context.Context, f func(*ListVpcFlowLogsConfigsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } } -// Get: Gets the details of a specific `VpcFlowLogsConfig`. +type ProjectsLocationsVpcFlowLogsConfigsPatchCall struct { + s *Service + name string + vpcflowlogsconfig *VpcFlowLogsConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates an existing `VpcFlowLogsConfig`. If a configuration with the +// exact same settings already exists (even if the ID is different), the +// creation fails. Notes: 1. Updating a configuration with `state=DISABLED` +// will fail. 2. The following fields are not considered as settings for the +// purpose of the check mentioned above, therefore - updating another +// configuration with the same fields but different values for the following +// fields will fail as well: * name * create_time * update_time * labels * +// description // -// - name: The resource name of the VpcFlowLogsConfig, in one of the following -// formats: - For project-level resources: +// - name: Identifier. Unique name of the configuration. The name can have one +// of the following forms: - For project-level configurations: // `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_c -// onfig_id}` - For organization-level resources: +// onfig_id}` - For organization-level configurations: // `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_f // low_logs_config_id}`. -func (r *ProjectsLocationsVpcFlowLogsConfigsService) Get(name string) *ProjectsLocationsVpcFlowLogsConfigsGetCall { - c := &ProjectsLocationsVpcFlowLogsConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +func (r *ProjectsLocationsVpcFlowLogsConfigsService) Patch(name string, vpcflowlogsconfig *VpcFlowLogsConfig) *ProjectsLocationsVpcFlowLogsConfigsPatchCall { + c := &ProjectsLocationsVpcFlowLogsConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.vpcflowlogsconfig = vpcflowlogsconfig + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. Mask of +// fields to update. At least one path must be supplied in this field. For +// example, to change the state of the configuration to ENABLED, specify +// `update_mask` = "state", and the `vpc_flow_logs_config` would be: +// `vpc_flow_logs_config = { name = +// "projects/my-project/locations/global/vpcFlowLogsConfigs/my-config" state = +// "ENABLED" }` +func (c *ProjectsLocationsVpcFlowLogsConfigsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsVpcFlowLogsConfigsPatchCall { + c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsVpcFlowLogsConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsVpcFlowLogsConfigsGetCall { +func (c *ProjectsLocationsVpcFlowLogsConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsVpcFlowLogsConfigsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *ProjectsLocationsVpcFlowLogsConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsVpcFlowLogsConfigsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsVpcFlowLogsConfigsGetCall) Context(ctx context.Context) *ProjectsLocationsVpcFlowLogsConfigsGetCall { +func (c *ProjectsLocationsVpcFlowLogsConfigsPatchCall) Context(ctx context.Context) *ProjectsLocationsVpcFlowLogsConfigsPatchCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsVpcFlowLogsConfigsGetCall) Header() http.Header { +func (c *ProjectsLocationsVpcFlowLogsConfigsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsVpcFlowLogsConfigsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) +func (c *ProjectsLocationsVpcFlowLogsConfigsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.vpcflowlogsconfig) + if err != nil { + return nil, err } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, nil) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } @@ -8278,17 +9421,16 @@ func (c *ProjectsLocationsVpcFlowLogsConfigsGetCall) doRequest(alt string) (*htt googleapi.Expand(req.URL, map[string]string{ "name": c.name, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.vpcFlowLogsConfigs.get", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.vpcFlowLogsConfigs.patch", "request", internallog.HTTPRequest(req, body.Bytes())) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networkmanagement.projects.locations.vpcFlowLogsConfigs.get" call. +// Do executes the "networkmanagement.projects.locations.vpcFlowLogsConfigs.patch" call. // Any non-2xx status code is an error. Response headers are in either -// *VpcFlowLogsConfig.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified was -// returned. -func (c *ProjectsLocationsVpcFlowLogsConfigsGetCall) Do(opts ...googleapi.CallOption) (*VpcFlowLogsConfig, error) { +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsVpcFlowLogsConfigsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8307,7 +9449,7 @@ func (c *ProjectsLocationsVpcFlowLogsConfigsGetCall) Do(opts ...googleapi.CallOp if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &VpcFlowLogsConfig{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8318,11 +9460,11 @@ func (c *ProjectsLocationsVpcFlowLogsConfigsGetCall) Do(opts ...googleapi.CallOp if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.vpcFlowLogsConfigs.get", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.vpcFlowLogsConfigs.patch", "response", internallog.HTTPResponse(res, b)) return ret, nil } -type ProjectsLocationsVpcFlowLogsConfigsListCall struct { +type ProjectsLocationsVpcFlowLogsConfigsQueryOrgVpcFlowLogsConfigsCall struct { s *Service parent string urlParams_ gensupport.URLParams @@ -8331,14 +9473,14 @@ type ProjectsLocationsVpcFlowLogsConfigsListCall struct { header_ http.Header } -// List: Lists all `VpcFlowLogsConfigs` in a given project. +// QueryOrgVpcFlowLogsConfigs: QueryOrgVpcFlowLogsConfigs returns a list of all +// organization-level VPC Flow Logs configurations applicable to the specified +// project. // -// - parent: The parent resource of the VpcFlowLogsConfig, in one of the -// following formats: - For project-level resourcs: -// `projects/{project_id}/locations/global` - For organization-level -// resources: `organizations/{organization_id}/locations/global`. -func (r *ProjectsLocationsVpcFlowLogsConfigsService) List(parent string) *ProjectsLocationsVpcFlowLogsConfigsListCall { - c := &ProjectsLocationsVpcFlowLogsConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The parent resource of the VpcFlowLogsConfig, specified in the +// following format: `projects/{project_id}/locations/global`. +func (r *ProjectsLocationsVpcFlowLogsConfigsService) QueryOrgVpcFlowLogsConfigs(parent string) *ProjectsLocationsVpcFlowLogsConfigsQueryOrgVpcFlowLogsConfigsCall { + c := &ProjectsLocationsVpcFlowLogsConfigsQueryOrgVpcFlowLogsConfigsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent return c } @@ -8347,28 +9489,21 @@ func (r *ProjectsLocationsVpcFlowLogsConfigsService) List(parent string) *Projec // that match the filter expression. A filter expression must use the supported // [CEL logic operators] // (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators). -func (c *ProjectsLocationsVpcFlowLogsConfigsListCall) Filter(filter string) *ProjectsLocationsVpcFlowLogsConfigsListCall { +func (c *ProjectsLocationsVpcFlowLogsConfigsQueryOrgVpcFlowLogsConfigsCall) Filter(filter string) *ProjectsLocationsVpcFlowLogsConfigsQueryOrgVpcFlowLogsConfigsCall { c.urlParams_.Set("filter", filter) return c } -// OrderBy sets the optional parameter "orderBy": Field to use to sort the -// list. -func (c *ProjectsLocationsVpcFlowLogsConfigsListCall) OrderBy(orderBy string) *ProjectsLocationsVpcFlowLogsConfigsListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - // PageSize sets the optional parameter "pageSize": Number of // `VpcFlowLogsConfigs` to return. -func (c *ProjectsLocationsVpcFlowLogsConfigsListCall) PageSize(pageSize int64) *ProjectsLocationsVpcFlowLogsConfigsListCall { +func (c *ProjectsLocationsVpcFlowLogsConfigsQueryOrgVpcFlowLogsConfigsCall) PageSize(pageSize int64) *ProjectsLocationsVpcFlowLogsConfigsQueryOrgVpcFlowLogsConfigsCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } // PageToken sets the optional parameter "pageToken": Page token from an // earlier query, as returned in `next_page_token`. -func (c *ProjectsLocationsVpcFlowLogsConfigsListCall) PageToken(pageToken string) *ProjectsLocationsVpcFlowLogsConfigsListCall { +func (c *ProjectsLocationsVpcFlowLogsConfigsQueryOrgVpcFlowLogsConfigsCall) PageToken(pageToken string) *ProjectsLocationsVpcFlowLogsConfigsQueryOrgVpcFlowLogsConfigsCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -8376,7 +9511,7 @@ func (c *ProjectsLocationsVpcFlowLogsConfigsListCall) PageToken(pageToken string // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsVpcFlowLogsConfigsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsVpcFlowLogsConfigsListCall { +func (c *ProjectsLocationsVpcFlowLogsConfigsQueryOrgVpcFlowLogsConfigsCall) Fields(s ...googleapi.Field) *ProjectsLocationsVpcFlowLogsConfigsQueryOrgVpcFlowLogsConfigsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -8384,34 +9519,34 @@ func (c *ProjectsLocationsVpcFlowLogsConfigsListCall) Fields(s ...googleapi.Fiel // IfNoneMatch sets an optional parameter which makes the operation fail if the // object's ETag matches the given value. This is useful for getting updates // only after the object has changed since the last request. -func (c *ProjectsLocationsVpcFlowLogsConfigsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsVpcFlowLogsConfigsListCall { +func (c *ProjectsLocationsVpcFlowLogsConfigsQueryOrgVpcFlowLogsConfigsCall) IfNoneMatch(entityTag string) *ProjectsLocationsVpcFlowLogsConfigsQueryOrgVpcFlowLogsConfigsCall { c.ifNoneMatch_ = entityTag return c } // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsVpcFlowLogsConfigsListCall) Context(ctx context.Context) *ProjectsLocationsVpcFlowLogsConfigsListCall { +func (c *ProjectsLocationsVpcFlowLogsConfigsQueryOrgVpcFlowLogsConfigsCall) Context(ctx context.Context) *ProjectsLocationsVpcFlowLogsConfigsQueryOrgVpcFlowLogsConfigsCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsVpcFlowLogsConfigsListCall) Header() http.Header { +func (c *ProjectsLocationsVpcFlowLogsConfigsQueryOrgVpcFlowLogsConfigsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsVpcFlowLogsConfigsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsVpcFlowLogsConfigsQueryOrgVpcFlowLogsConfigsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) if c.ifNoneMatch_ != "" { reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/vpcFlowLogsConfigs") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/vpcFlowLogsConfigs:queryOrgVpcFlowLogsConfigs") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, nil) if err != nil { @@ -8421,17 +9556,17 @@ func (c *ProjectsLocationsVpcFlowLogsConfigsListCall) doRequest(alt string) (*ht googleapi.Expand(req.URL, map[string]string{ "parent": c.parent, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.vpcFlowLogsConfigs.list", "request", internallog.HTTPRequest(req, nil)) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.vpcFlowLogsConfigs.queryOrgVpcFlowLogsConfigs", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networkmanagement.projects.locations.vpcFlowLogsConfigs.list" call. +// Do executes the "networkmanagement.projects.locations.vpcFlowLogsConfigs.queryOrgVpcFlowLogsConfigs" call. // Any non-2xx status code is an error. Response headers are in either -// *ListVpcFlowLogsConfigsResponse.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use +// *QueryOrgVpcFlowLogsConfigsResponse.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was because // http.StatusNotModified was returned. -func (c *ProjectsLocationsVpcFlowLogsConfigsListCall) Do(opts ...googleapi.CallOption) (*ListVpcFlowLogsConfigsResponse, error) { +func (c *ProjectsLocationsVpcFlowLogsConfigsQueryOrgVpcFlowLogsConfigsCall) Do(opts ...googleapi.CallOption) (*QueryOrgVpcFlowLogsConfigsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8450,7 +9585,7 @@ func (c *ProjectsLocationsVpcFlowLogsConfigsListCall) Do(opts ...googleapi.CallO if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListVpcFlowLogsConfigsResponse{ + ret := &QueryOrgVpcFlowLogsConfigsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8461,14 +9596,14 @@ func (c *ProjectsLocationsVpcFlowLogsConfigsListCall) Do(opts ...googleapi.CallO if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.vpcFlowLogsConfigs.list", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.vpcFlowLogsConfigs.queryOrgVpcFlowLogsConfigs", "response", internallog.HTTPResponse(res, b)) return ret, nil } // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsVpcFlowLogsConfigsListCall) Pages(ctx context.Context, f func(*ListVpcFlowLogsConfigsResponse) error) error { +func (c *ProjectsLocationsVpcFlowLogsConfigsQueryOrgVpcFlowLogsConfigsCall) Pages(ctx context.Context, f func(*QueryOrgVpcFlowLogsConfigsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) for { @@ -8486,100 +9621,117 @@ func (c *ProjectsLocationsVpcFlowLogsConfigsListCall) Pages(ctx context.Context, } } -type ProjectsLocationsVpcFlowLogsConfigsPatchCall struct { - s *Service - name string - vpcflowlogsconfig *VpcFlowLogsConfig - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsVpcFlowLogsConfigsShowEffectiveFlowLogsConfigsCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Patch: Updates an existing `VpcFlowLogsConfig`. If a configuration with the -// exact same settings already exists (even if the ID is different), the -// creation fails. Notes: 1. Updating a configuration with `state=DISABLED` -// will fail. 2. The following fields are not considered as settings for the -// purpose of the check mentioned above, therefore - updating another -// configuration with the same fields but different values for the following -// fields will fail as well: * name * create_time * update_time * labels * -// description +// ShowEffectiveFlowLogsConfigs: ShowEffectiveFlowLogsConfigs returns a list of +// all VPC Flow Logs configurations applicable to a specified resource. // -// - name: Identifier. Unique name of the configuration. The name can have one -// of the following forms: - For project-level configurations: -// `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_c -// onfig_id}` - For organization-level configurations: -// `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_f -// low_logs_config_id}`. -func (r *ProjectsLocationsVpcFlowLogsConfigsService) Patch(name string, vpcflowlogsconfig *VpcFlowLogsConfig) *ProjectsLocationsVpcFlowLogsConfigsPatchCall { - c := &ProjectsLocationsVpcFlowLogsConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.vpcflowlogsconfig = vpcflowlogsconfig +// - parent: The parent resource of the VpcFlowLogsConfig, specified in the +// following format: `projects/{project_id}/locations/global`. +func (r *ProjectsLocationsVpcFlowLogsConfigsService) ShowEffectiveFlowLogsConfigs(parent string) *ProjectsLocationsVpcFlowLogsConfigsShowEffectiveFlowLogsConfigsCall { + c := &ProjectsLocationsVpcFlowLogsConfigsShowEffectiveFlowLogsConfigsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent return c } -// UpdateMask sets the optional parameter "updateMask": Required. Mask of -// fields to update. At least one path must be supplied in this field. For -// example, to change the state of the configuration to ENABLED, specify -// `update_mask` = "state", and the `vpc_flow_logs_config` would be: -// `vpc_flow_logs_config = { name = -// "projects/my-project/locations/global/vpcFlowLogsConfigs/my-config" state = -// "ENABLED" }` -func (c *ProjectsLocationsVpcFlowLogsConfigsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsVpcFlowLogsConfigsPatchCall { - c.urlParams_.Set("updateMask", updateMask) +// Filter sets the optional parameter "filter": Lists the +// `EffectiveVpcFlowLogsConfigs` that match the filter expression. A filter +// expression must use the supported [CEL logic operators] +// (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators). +func (c *ProjectsLocationsVpcFlowLogsConfigsShowEffectiveFlowLogsConfigsCall) Filter(filter string) *ProjectsLocationsVpcFlowLogsConfigsShowEffectiveFlowLogsConfigsCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": Number of +// `EffectiveVpcFlowLogsConfigs` to return. Default is 30. +func (c *ProjectsLocationsVpcFlowLogsConfigsShowEffectiveFlowLogsConfigsCall) PageSize(pageSize int64) *ProjectsLocationsVpcFlowLogsConfigsShowEffectiveFlowLogsConfigsCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Page token from an +// earlier query, as returned in `next_page_token`. +func (c *ProjectsLocationsVpcFlowLogsConfigsShowEffectiveFlowLogsConfigsCall) PageToken(pageToken string) *ProjectsLocationsVpcFlowLogsConfigsShowEffectiveFlowLogsConfigsCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Resource sets the optional parameter "resource": Required. The resource to +// get the effective VPC Flow Logs configuration for. The resource must belong +// to the same project as the parent. The resource must be a network, +// subnetwork, interconnect attachment, VPN tunnel, or a project. +func (c *ProjectsLocationsVpcFlowLogsConfigsShowEffectiveFlowLogsConfigsCall) Resource(resource string) *ProjectsLocationsVpcFlowLogsConfigsShowEffectiveFlowLogsConfigsCall { + c.urlParams_.Set("resource", resource) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. -func (c *ProjectsLocationsVpcFlowLogsConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsVpcFlowLogsConfigsPatchCall { +func (c *ProjectsLocationsVpcFlowLogsConfigsShowEffectiveFlowLogsConfigsCall) Fields(s ...googleapi.Field) *ProjectsLocationsVpcFlowLogsConfigsShowEffectiveFlowLogsConfigsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsVpcFlowLogsConfigsShowEffectiveFlowLogsConfigsCall) IfNoneMatch(entityTag string) *ProjectsLocationsVpcFlowLogsConfigsShowEffectiveFlowLogsConfigsCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsVpcFlowLogsConfigsPatchCall) Context(ctx context.Context) *ProjectsLocationsVpcFlowLogsConfigsPatchCall { +func (c *ProjectsLocationsVpcFlowLogsConfigsShowEffectiveFlowLogsConfigsCall) Context(ctx context.Context) *ProjectsLocationsVpcFlowLogsConfigsShowEffectiveFlowLogsConfigsCall { c.ctx_ = ctx return c } // Header returns a http.Header that can be modified by the caller to add // headers to the request. -func (c *ProjectsLocationsVpcFlowLogsConfigsPatchCall) Header() http.Header { +func (c *ProjectsLocationsVpcFlowLogsConfigsShowEffectiveFlowLogsConfigsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsVpcFlowLogsConfigsPatchCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - body, err := googleapi.WithoutDataWrapper.JSONBuffer(c.vpcflowlogsconfig) - if err != nil { - return nil, err +func (c *ProjectsLocationsVpcFlowLogsConfigsShowEffectiveFlowLogsConfigsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/vpcFlowLogsConfigs:showEffectiveFlowLogsConfigs") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("GET", urls, nil) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) - c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.vpcFlowLogsConfigs.patch", "request", internallog.HTTPRequest(req, body.Bytes())) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.vpcFlowLogsConfigs.showEffectiveFlowLogsConfigs", "request", internallog.HTTPRequest(req, nil)) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "networkmanagement.projects.locations.vpcFlowLogsConfigs.patch" call. +// Do executes the "networkmanagement.projects.locations.vpcFlowLogsConfigs.showEffectiveFlowLogsConfigs" call. // Any non-2xx status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at all) in -// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check -// whether the returned error was because http.StatusNotModified was returned. -func (c *ProjectsLocationsVpcFlowLogsConfigsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// *ShowEffectiveFlowLogsConfigsResponse.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 *ProjectsLocationsVpcFlowLogsConfigsShowEffectiveFlowLogsConfigsCall) Do(opts ...googleapi.CallOption) (*ShowEffectiveFlowLogsConfigsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -8598,7 +9750,7 @@ func (c *ProjectsLocationsVpcFlowLogsConfigsPatchCall) Do(opts ...googleapi.Call if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &ShowEffectiveFlowLogsConfigsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -8609,6 +9761,27 @@ func (c *ProjectsLocationsVpcFlowLogsConfigsPatchCall) Do(opts ...googleapi.Call if err != nil { return nil, err } - c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.vpcFlowLogsConfigs.patch", "response", internallog.HTTPResponse(res, b)) + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.vpcFlowLogsConfigs.showEffectiveFlowLogsConfigs", "response", internallog.HTTPResponse(res, b)) return ret, nil } + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsVpcFlowLogsConfigsShowEffectiveFlowLogsConfigsCall) Pages(ctx context.Context, f func(*ShowEffectiveFlowLogsConfigsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} diff --git a/networkmanagement/v1beta1/networkmanagement-api.json b/networkmanagement/v1beta1/networkmanagement-api.json index aa44faf22d..c681a1563e 100644 --- a/networkmanagement/v1beta1/networkmanagement-api.json +++ b/networkmanagement/v1beta1/networkmanagement-api.json @@ -144,7 +144,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -520,7 +520,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -1173,6 +1173,52 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "showEffectiveFlowLogsConfigs": { + "description": "ShowEffectiveFlowLogsConfigs returns a list of all VPC Flow Logs configurations applicable to a specified resource.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/vpcFlowLogsConfigs:showEffectiveFlowLogsConfigs", + "httpMethod": "GET", + "id": "networkmanagement.projects.locations.vpcFlowLogsConfigs.showEffectiveFlowLogsConfigs", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Lists the `EffectiveVpcFlowLogsConfigs` that match the filter expression. A filter expression must use the supported [CEL logic operators] (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators).", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. Number of `EffectiveVpcFlowLogsConfigs` to return. Default is 30.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. Page token from an earlier query, as returned in `next_page_token`.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource of the VpcFlowLogsConfig, specified in the following format: `projects/{project_id}/locations/global`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "resource": { + "description": "Required. The resource to get the effective VPC Flow Logs configuration for. The resource must belong to the same project as the parent. The resource must be a network, subnetwork, interconnect attachment, VPN tunnel, or a project.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+parent}/vpcFlowLogsConfigs:showEffectiveFlowLogsConfigs", + "response": { + "$ref": "ShowEffectiveFlowLogsConfigsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } } } @@ -1181,7 +1227,7 @@ } } }, - "revision": "20250901", + "revision": "20250905", "rootUrl": "https://networkmanagement.googleapis.com/", "schemas": { "AbortInfo": { @@ -1987,6 +2033,137 @@ }, "type": "object" }, + "EffectiveVpcFlowLogsConfig": { + "description": "A configuration to generate a response for GetEffectiveVpcFlowLogsConfig request.", + "id": "EffectiveVpcFlowLogsConfig", + "properties": { + "aggregationInterval": { + "description": "The aggregation interval for the logs. Default value is INTERVAL_5_SEC.", + "enum": [ + "AGGREGATION_INTERVAL_UNSPECIFIED", + "INTERVAL_5_SEC", + "INTERVAL_30_SEC", + "INTERVAL_1_MIN", + "INTERVAL_5_MIN", + "INTERVAL_10_MIN", + "INTERVAL_15_MIN" + ], + "enumDescriptions": [ + "If not specified, will default to INTERVAL_5_SEC.", + "Aggregate logs in 5s intervals.", + "Aggregate logs in 30s intervals.", + "Aggregate logs in 1m intervals.", + "Aggregate logs in 5m intervals.", + "Aggregate logs in 10m intervals.", + "Aggregate logs in 15m intervals." + ], + "type": "string" + }, + "crossProjectMetadata": { + "description": "Determines whether to include cross project annotations in the logs. This field is available only for organization configurations. If not specified in org configs will be set to CROSS_PROJECT_METADATA_ENABLED.", + "enum": [ + "CROSS_PROJECT_METADATA_UNSPECIFIED", + "CROSS_PROJECT_METADATA_ENABLED", + "CROSS_PROJECT_METADATA_DISABLED" + ], + "enumDescriptions": [ + "If not specified, the default is CROSS_PROJECT_METADATA_ENABLED.", + "When CROSS_PROJECT_METADATA_ENABLED, metadata from other projects will be included in the logs.", + "When CROSS_PROJECT_METADATA_DISABLED, metadata from other projects will not be included in the logs." + ], + "type": "string" + }, + "filterExpr": { + "description": "Export filter used to define which VPC Flow Logs should be logged.", + "type": "string" + }, + "flowSampling": { + "description": "The value of the field must be in (0, 1]. The sampling rate of VPC Flow Logs where 1.0 means all collected logs are reported. Setting the sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs, use the state field instead. Default value is 1.0.", + "format": "float", + "type": "number" + }, + "interconnectAttachment": { + "description": "Traffic will be logged from the Interconnect Attachment. Format: projects/{project_id}/regions/{region}/interconnectAttachments/{name}", + "type": "string" + }, + "metadata": { + "description": "Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default value is INCLUDE_ALL_METADATA.", + "enum": [ + "METADATA_UNSPECIFIED", + "INCLUDE_ALL_METADATA", + "EXCLUDE_ALL_METADATA", + "CUSTOM_METADATA" + ], + "enumDescriptions": [ + "If not specified, will default to INCLUDE_ALL_METADATA.", + "Include all metadata fields.", + "Exclude all metadata fields.", + "Include only custom fields (specified in metadata_fields)." + ], + "type": "string" + }, + "metadataFields": { + "description": "Custom metadata fields to include in the reported VPC flow logs. Can only be specified if \"metadata\" was set to CUSTOM_METADATA.", + "items": { + "type": "string" + }, + "type": "array" + }, + "name": { + "description": "Unique name of the configuration. The name can have one of the following forms: - For project-level configurations: `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - For organization-level configurations: `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` - For a Compute config, the name will be the path of the subnet: `projects/{project_id}/regions/{region}/subnetworks/{subnet_id}`", + "type": "string" + }, + "network": { + "description": "Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments within the network. Format: projects/{project_id}/global/networks/{name}", + "type": "string" + }, + "scope": { + "description": "Specifies the scope of the config (e.g., SUBNET, NETWORK, ORGANIZATION..).", + "enum": [ + "SCOPE_UNSPECIFIED", + "SUBNET", + "COMPUTE_API_SUBNET", + "NETWORK", + "VPN_TUNNEL", + "INTERCONNECT_ATTACHMENT", + "ORGANIZATION" + ], + "enumDescriptions": [ + "Scope is unspecified.", + "Target resource is a subnet (Network Management API).", + "Target resource is a subnet, and the config originates from the Compute API.", + "Target resource is a network.", + "Target resource is a VPN tunnel.", + "Target resource is an interconnect attachment.", + "Configuration applies to an entire organization." + ], + "type": "string" + }, + "state": { + "description": "The state of the VPC Flow Log configuration. Default value is ENABLED. When creating a new configuration, it must be enabled. Setting state=DISABLED will pause the log generation for this config.", + "enum": [ + "STATE_UNSPECIFIED", + "ENABLED", + "DISABLED" + ], + "enumDescriptions": [ + "If not specified, will default to ENABLED.", + "When ENABLED, this configuration will generate logs.", + "When DISABLED, this configuration will not generate logs." + ], + "type": "string" + }, + "subnet": { + "description": "Traffic will be logged from VMs within the subnetwork. Format: projects/{project_id}/regions/{region}/subnetworks/{name}", + "type": "string" + }, + "vpnTunnel": { + "description": "Traffic will be logged from the VPN Tunnel. Format: projects/{project_id}/regions/{region}/vpnTunnels/{name}", + "type": "string" + } + }, + "type": "object" + }, "Empty": { "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "id": "Empty", @@ -2048,6 +2225,10 @@ "description": "A cluster URI for [Google Kubernetes Engine cluster control plane](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture).", "type": "string" }, + "gkePod": { + "description": "A [GKE Pod](https://cloud.google.com/kubernetes-engine/docs/concepts/pod) URI.", + "type": "string" + }, "instance": { "description": "A Compute Engine instance URI.", "type": "string" @@ -2978,14 +3159,16 @@ "INTERNAL_TO_EXTERNAL", "EXTERNAL_TO_INTERNAL", "CLOUD_NAT", - "PRIVATE_SERVICE_CONNECT" + "PRIVATE_SERVICE_CONNECT", + "GKE_POD_IP_MASQUERADING" ], "enumDescriptions": [ "Type is unspecified.", "From Compute Engine instance's internal address to external address.", "From Compute Engine instance's external address to internal address.", "Cloud NAT Gateway.", - "Private service connect NAT." + "Private service connect NAT.", + "GKE Pod IP address masquerading." ], "type": "string" } @@ -3613,6 +3796,31 @@ }, "type": "object" }, + "ShowEffectiveFlowLogsConfigsResponse": { + "description": "Response for the `ShowEffectiveFlowLogsConfigs` method.", + "id": "ShowEffectiveFlowLogsConfigsResponse", + "properties": { + "effectiveFlowLogsConfigs": { + "description": "List of Effective Vpc Flow Logs configurations.", + "items": { + "$ref": "EffectiveVpcFlowLogsConfig" + }, + "type": "array" + }, + "nextPageToken": { + "description": "Page token to fetch the next set of configurations.", + "type": "string" + }, + "unreachable": { + "description": "Locations that could not be reached (when querying all locations with `-`).", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "SingleEdgeResponse": { "description": "Probing results for a single edge device.", "id": "SingleEdgeResponse", @@ -3926,7 +4134,7 @@ "Forwarding state: arriving at a VPC connector.", "Forwarding state: for packets originating from a serverless endpoint forwarded through Direct VPC egress.", "Forwarding state: for packets originating from a serverless endpoint forwarded through public (external) connectivity.", - "Transition state: packet header translated.", + "Transition state: packet header translated. The `nat` field is populated with the translation information.", "Transition state: original connection is terminated and a new proxied connection is initiated.", "Final state: packet could be delivered.", "Final state: packet could be dropped.", diff --git a/networkmanagement/v1beta1/networkmanagement-gen.go b/networkmanagement/v1beta1/networkmanagement-gen.go index 615a2ab387..ad1bb9a752 100644 --- a/networkmanagement/v1beta1/networkmanagement-gen.go +++ b/networkmanagement/v1beta1/networkmanagement-gen.go @@ -1277,6 +1277,134 @@ func (s EdgeLocation) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// EffectiveVpcFlowLogsConfig: A configuration to generate a response for +// GetEffectiveVpcFlowLogsConfig request. +type EffectiveVpcFlowLogsConfig struct { + // AggregationInterval: The aggregation interval for the logs. Default value is + // INTERVAL_5_SEC. + // + // Possible values: + // "AGGREGATION_INTERVAL_UNSPECIFIED" - If not specified, will default to + // INTERVAL_5_SEC. + // "INTERVAL_5_SEC" - Aggregate logs in 5s intervals. + // "INTERVAL_30_SEC" - Aggregate logs in 30s intervals. + // "INTERVAL_1_MIN" - Aggregate logs in 1m intervals. + // "INTERVAL_5_MIN" - Aggregate logs in 5m intervals. + // "INTERVAL_10_MIN" - Aggregate logs in 10m intervals. + // "INTERVAL_15_MIN" - Aggregate logs in 15m intervals. + AggregationInterval string `json:"aggregationInterval,omitempty"` + // CrossProjectMetadata: Determines whether to include cross project + // annotations in the logs. This field is available only for organization + // configurations. If not specified in org configs will be set to + // CROSS_PROJECT_METADATA_ENABLED. + // + // Possible values: + // "CROSS_PROJECT_METADATA_UNSPECIFIED" - If not specified, the default is + // CROSS_PROJECT_METADATA_ENABLED. + // "CROSS_PROJECT_METADATA_ENABLED" - When CROSS_PROJECT_METADATA_ENABLED, + // metadata from other projects will be included in the logs. + // "CROSS_PROJECT_METADATA_DISABLED" - When CROSS_PROJECT_METADATA_DISABLED, + // metadata from other projects will not be included in the logs. + CrossProjectMetadata string `json:"crossProjectMetadata,omitempty"` + // FilterExpr: Export filter used to define which VPC Flow Logs should be + // logged. + FilterExpr string `json:"filterExpr,omitempty"` + // FlowSampling: The value of the field must be in (0, 1]. The sampling rate of + // VPC Flow Logs where 1.0 means all collected logs are reported. Setting the + // sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs, + // use the state field instead. Default value is 1.0. + FlowSampling float64 `json:"flowSampling,omitempty"` + // InterconnectAttachment: Traffic will be logged from the Interconnect + // Attachment. Format: + // projects/{project_id}/regions/{region}/interconnectAttachments/{name} + InterconnectAttachment string `json:"interconnectAttachment,omitempty"` + // Metadata: Configures whether all, none or a subset of metadata fields should + // be added to the reported VPC flow logs. Default value is + // INCLUDE_ALL_METADATA. + // + // Possible values: + // "METADATA_UNSPECIFIED" - If not specified, will default to + // INCLUDE_ALL_METADATA. + // "INCLUDE_ALL_METADATA" - Include all metadata fields. + // "EXCLUDE_ALL_METADATA" - Exclude all metadata fields. + // "CUSTOM_METADATA" - Include only custom fields (specified in + // metadata_fields). + Metadata string `json:"metadata,omitempty"` + // MetadataFields: Custom metadata fields to include in the reported VPC flow + // logs. Can only be specified if "metadata" was set to CUSTOM_METADATA. + MetadataFields []string `json:"metadataFields,omitempty"` + // Name: Unique name of the configuration. The name can have one of the + // following forms: - For project-level configurations: + // `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_con + // fig_id}` - For organization-level configurations: + // `organizations/{organization_id}/locations/global/vpcFlowLogsConfigs/{vpc_flo + // w_logs_config_id}` - For a Compute config, the name will be the path of the + // subnet: `projects/{project_id}/regions/{region}/subnetworks/{subnet_id}` + Name string `json:"name,omitempty"` + // Network: Traffic will be logged from VMs, VPN tunnels and Interconnect + // Attachments within the network. Format: + // projects/{project_id}/global/networks/{name} + Network string `json:"network,omitempty"` + // Scope: Specifies the scope of the config (e.g., SUBNET, NETWORK, + // ORGANIZATION..). + // + // Possible values: + // "SCOPE_UNSPECIFIED" - Scope is unspecified. + // "SUBNET" - Target resource is a subnet (Network Management API). + // "COMPUTE_API_SUBNET" - Target resource is a subnet, and the config + // originates from the Compute API. + // "NETWORK" - Target resource is a network. + // "VPN_TUNNEL" - Target resource is a VPN tunnel. + // "INTERCONNECT_ATTACHMENT" - Target resource is an interconnect attachment. + // "ORGANIZATION" - Configuration applies to an entire organization. + Scope string `json:"scope,omitempty"` + // State: The state of the VPC Flow Log configuration. Default value is + // ENABLED. When creating a new configuration, it must be enabled. Setting + // state=DISABLED will pause the log generation for this config. + // + // Possible values: + // "STATE_UNSPECIFIED" - If not specified, will default to ENABLED. + // "ENABLED" - When ENABLED, this configuration will generate logs. + // "DISABLED" - When DISABLED, this configuration will not generate logs. + State string `json:"state,omitempty"` + // Subnet: Traffic will be logged from VMs within the subnetwork. Format: + // projects/{project_id}/regions/{region}/subnetworks/{name} + Subnet string `json:"subnet,omitempty"` + // VpnTunnel: Traffic will be logged from the VPN Tunnel. Format: + // projects/{project_id}/regions/{region}/vpnTunnels/{name} + VpnTunnel string `json:"vpnTunnel,omitempty"` + // ForceSendFields is a list of field names (e.g. "AggregationInterval") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AggregationInterval") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s EffectiveVpcFlowLogsConfig) MarshalJSON() ([]byte, error) { + type NoMethod EffectiveVpcFlowLogsConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *EffectiveVpcFlowLogsConfig) UnmarshalJSON(data []byte) error { + type NoMethod EffectiveVpcFlowLogsConfig + var s1 struct { + FlowSampling gensupport.JSONFloat64 `json:"flowSampling"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.FlowSampling = float64(s1.FlowSampling) + return nil +} + // Empty: A generic empty message that you can re-use to avoid defining // duplicated empty messages in your APIs. A typical example is to use it as // the request or the response type of an API method. For instance: service Foo @@ -1332,6 +1460,9 @@ type Endpoint struct { // plane // (https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). GkeMasterCluster string `json:"gkeMasterCluster,omitempty"` + // GkePod: A GKE Pod + // (https://cloud.google.com/kubernetes-engine/docs/concepts/pod) URI. + GkePod string `json:"gkePod,omitempty"` // Instance: A Compute Engine instance URI. Instance string `json:"instance,omitempty"` // IpAddress: The IP address of the endpoint, which can be an external or @@ -2299,6 +2430,7 @@ type NatInfo struct { // to internal address. // "CLOUD_NAT" - Cloud NAT Gateway. // "PRIVATE_SERVICE_CONNECT" - Private service connect NAT. + // "GKE_POD_IP_MASQUERADING" - GKE Pod IP address masquerading. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "NatGatewayName") to // unconditionally include in API requests. By default, fields with empty or @@ -3012,6 +3144,37 @@ func (s SetIamPolicyRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// ShowEffectiveFlowLogsConfigsResponse: Response for the +// `ShowEffectiveFlowLogsConfigs` method. +type ShowEffectiveFlowLogsConfigsResponse struct { + // EffectiveFlowLogsConfigs: List of Effective Vpc Flow Logs configurations. + EffectiveFlowLogsConfigs []*EffectiveVpcFlowLogsConfig `json:"effectiveFlowLogsConfigs,omitempty"` + // NextPageToken: Page token to fetch the next set of configurations. + NextPageToken string `json:"nextPageToken,omitempty"` + // Unreachable: Locations that could not be reached (when querying all + // locations with `-`). + Unreachable []string `json:"unreachable,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "EffectiveFlowLogsConfigs") + // 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. "EffectiveFlowLogsConfigs") 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 ShowEffectiveFlowLogsConfigsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ShowEffectiveFlowLogsConfigsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // SingleEdgeResponse: Probing results for a single edge device. type SingleEdgeResponse struct { // DestinationEgressLocation: The EdgeLocation from which a packet, destined to @@ -3244,7 +3407,8 @@ type Step struct { // "SERVERLESS_EXTERNAL_CONNECTION" - Forwarding state: for packets // originating from a serverless endpoint forwarded through public (external) // connectivity. - // "NAT" - Transition state: packet header translated. + // "NAT" - Transition state: packet header translated. The `nat` field is + // populated with the translation information. // "PROXY_CONNECTION" - Transition state: original connection is terminated // and a new proxied connection is initiated. // "DELIVER" - Final state: packet could be delivered. @@ -3770,9 +3934,9 @@ func (r *OrganizationsLocationsService) List(name string) *OrganizationsLocation return c } -// ExtraLocationTypes sets the optional parameter "extraLocationTypes": Do not -// use this field. It is unsupported and is ignored unless explicitly -// documented otherwise. This is primarily for internal usage. +// ExtraLocationTypes sets the optional parameter "extraLocationTypes": Unless +// explicitly documented otherwise, don't use this unsupported field which is +// primarily intended for internal usage. func (c *OrganizationsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *OrganizationsLocationsListCall { c.urlParams_.SetMulti("extraLocationTypes", append([]string{}, extraLocationTypes...)) return c @@ -5143,9 +5307,9 @@ func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall return c } -// ExtraLocationTypes sets the optional parameter "extraLocationTypes": Do not -// use this field. It is unsupported and is ignored unless explicitly -// documented otherwise. This is primarily for internal usage. +// ExtraLocationTypes sets the optional parameter "extraLocationTypes": Unless +// explicitly documented otherwise, don't use this unsupported field which is +// primarily intended for internal usage. func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall { c.urlParams_.SetMulti("extraLocationTypes", append([]string{}, extraLocationTypes...)) return c @@ -7624,3 +7788,168 @@ func (c *ProjectsLocationsVpcFlowLogsConfigsQueryOrgVpcFlowLogsConfigsCall) Page c.PageToken(x.NextPageToken) } } + +type ProjectsLocationsVpcFlowLogsConfigsShowEffectiveFlowLogsConfigsCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// ShowEffectiveFlowLogsConfigs: ShowEffectiveFlowLogsConfigs returns a list of +// all VPC Flow Logs configurations applicable to a specified resource. +// +// - parent: The parent resource of the VpcFlowLogsConfig, specified in the +// following format: `projects/{project_id}/locations/global`. +func (r *ProjectsLocationsVpcFlowLogsConfigsService) ShowEffectiveFlowLogsConfigs(parent string) *ProjectsLocationsVpcFlowLogsConfigsShowEffectiveFlowLogsConfigsCall { + c := &ProjectsLocationsVpcFlowLogsConfigsShowEffectiveFlowLogsConfigsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Lists the +// `EffectiveVpcFlowLogsConfigs` that match the filter expression. A filter +// expression must use the supported [CEL logic operators] +// (https://cloud.google.com/vpc/docs/about-flow-logs-records#supported_cel_logic_operators). +func (c *ProjectsLocationsVpcFlowLogsConfigsShowEffectiveFlowLogsConfigsCall) Filter(filter string) *ProjectsLocationsVpcFlowLogsConfigsShowEffectiveFlowLogsConfigsCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": Number of +// `EffectiveVpcFlowLogsConfigs` to return. Default is 30. +func (c *ProjectsLocationsVpcFlowLogsConfigsShowEffectiveFlowLogsConfigsCall) PageSize(pageSize int64) *ProjectsLocationsVpcFlowLogsConfigsShowEffectiveFlowLogsConfigsCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Page token from an +// earlier query, as returned in `next_page_token`. +func (c *ProjectsLocationsVpcFlowLogsConfigsShowEffectiveFlowLogsConfigsCall) PageToken(pageToken string) *ProjectsLocationsVpcFlowLogsConfigsShowEffectiveFlowLogsConfigsCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Resource sets the optional parameter "resource": Required. The resource to +// get the effective VPC Flow Logs configuration for. The resource must belong +// to the same project as the parent. The resource must be a network, +// subnetwork, interconnect attachment, VPN tunnel, or a project. +func (c *ProjectsLocationsVpcFlowLogsConfigsShowEffectiveFlowLogsConfigsCall) Resource(resource string) *ProjectsLocationsVpcFlowLogsConfigsShowEffectiveFlowLogsConfigsCall { + c.urlParams_.Set("resource", resource) + 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 *ProjectsLocationsVpcFlowLogsConfigsShowEffectiveFlowLogsConfigsCall) Fields(s ...googleapi.Field) *ProjectsLocationsVpcFlowLogsConfigsShowEffectiveFlowLogsConfigsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsVpcFlowLogsConfigsShowEffectiveFlowLogsConfigsCall) IfNoneMatch(entityTag string) *ProjectsLocationsVpcFlowLogsConfigsShowEffectiveFlowLogsConfigsCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsVpcFlowLogsConfigsShowEffectiveFlowLogsConfigsCall) Context(ctx context.Context) *ProjectsLocationsVpcFlowLogsConfigsShowEffectiveFlowLogsConfigsCall { + 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 *ProjectsLocationsVpcFlowLogsConfigsShowEffectiveFlowLogsConfigsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsVpcFlowLogsConfigsShowEffectiveFlowLogsConfigsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/vpcFlowLogsConfigs:showEffectiveFlowLogsConfigs") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.vpcFlowLogsConfigs.showEffectiveFlowLogsConfigs", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networkmanagement.projects.locations.vpcFlowLogsConfigs.showEffectiveFlowLogsConfigs" call. +// Any non-2xx status code is an error. Response headers are in either +// *ShowEffectiveFlowLogsConfigsResponse.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 *ProjectsLocationsVpcFlowLogsConfigsShowEffectiveFlowLogsConfigsCall) Do(opts ...googleapi.CallOption) (*ShowEffectiveFlowLogsConfigsResponse, 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 := &ShowEffectiveFlowLogsConfigsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "networkmanagement.projects.locations.vpcFlowLogsConfigs.showEffectiveFlowLogsConfigs", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsVpcFlowLogsConfigsShowEffectiveFlowLogsConfigsCall) Pages(ctx context.Context, f func(*ShowEffectiveFlowLogsConfigsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} diff --git a/run/v1/run-api.json b/run/v1/run-api.json index 1c507cbc8b..0c4504cce8 100644 --- a/run/v1/run-api.json +++ b/run/v1/run-api.json @@ -186,6 +186,11 @@ "endpointUrl": "https://us-central1-run.googleapis.com/", "location": "us-central1" }, + { + "description": "Locational Endpoint", + "endpointUrl": "https://us-central2-run.googleapis.com/", + "location": "us-central2" + }, { "description": "Locational Endpoint", "endpointUrl": "https://us-east1-run.googleapis.com/", @@ -201,6 +206,11 @@ "endpointUrl": "https://us-east5-run.googleapis.com/", "location": "us-east5" }, + { + "description": "Locational Endpoint", + "endpointUrl": "https://us-east7-run.googleapis.com/", + "location": "us-east7" + }, { "description": "Locational Endpoint", "endpointUrl": "https://us-south1-run.googleapis.com/", @@ -225,6 +235,11 @@ "description": "Locational Endpoint", "endpointUrl": "https://us-west4-run.googleapis.com/", "location": "us-west4" + }, + { + "description": "Locational Endpoint", + "endpointUrl": "https://us-west8-run.googleapis.com/", + "location": "us-west8" } ], "fullyEncodeReservedExpansion": true, @@ -1727,7 +1742,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -2887,7 +2902,7 @@ } } }, - "revision": "20250829", + "revision": "20250905", "rootUrl": "https://run.googleapis.com/", "schemas": { "Addressable": { diff --git a/run/v1/run-gen.go b/run/v1/run-gen.go index 1ffa9cd989..a387d6cc32 100644 --- a/run/v1/run-gen.go +++ b/run/v1/run-gen.go @@ -10326,9 +10326,9 @@ func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall return c } -// ExtraLocationTypes sets the optional parameter "extraLocationTypes": Do not -// use this field. It is unsupported and is ignored unless explicitly -// documented otherwise. This is primarily for internal usage. +// ExtraLocationTypes sets the optional parameter "extraLocationTypes": Unless +// explicitly documented otherwise, don't use this unsupported field which is +// primarily intended for internal usage. func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall { c.urlParams_.SetMulti("extraLocationTypes", append([]string{}, extraLocationTypes...)) return c diff --git a/saasservicemgmt/v1beta1/saasservicemgmt-api.json b/saasservicemgmt/v1beta1/saasservicemgmt-api.json index 382c7e1644..34535de33a 100644 --- a/saasservicemgmt/v1beta1/saasservicemgmt-api.json +++ b/saasservicemgmt/v1beta1/saasservicemgmt-api.json @@ -1804,7 +1804,7 @@ } } }, - "revision": "20250818", + "revision": "20250903", "rootUrl": "https://saasservicemgmt.googleapis.com/", "schemas": { "Aggregate": { @@ -2349,7 +2349,7 @@ "type": "string" }, "rolloutOrchestrationStrategy": { - "description": "Optional. The strategy used for executing this Rollout. This strategy will override whatever strategy is specified in the RolloutType. If not specified on creation, the strategy from RolloutType will be used. There are two supported values strategies which are used to control - \"Google.Cloud.Simple.AllAtOnce\" - \"Google.Cloud.Simple.OneLocationAtATime\" A rollout with one of these simple strategies will rollout across all locations defined in the targeted UnitKind's Saas Locations.", + "description": "Optional. The strategy used for executing this Rollout. This strategy will override whatever strategy is specified in the RolloutKind. If not specified on creation, the strategy from RolloutKind will be used. There are two supported values strategies which are used to control - \"Google.Cloud.Simple.AllAtOnce\" - \"Google.Cloud.Simple.OneLocationAtATime\" A rollout with one of these simple strategies will rollout across all locations defined in the targeted UnitKind's Saas Locations.", "type": "string" }, "rootRollout": { @@ -2414,7 +2414,7 @@ "type": "string" }, "unitFilter": { - "description": "Optional. CEL(https://github.com/google/cel-spec) formatted filter string against Unit. The filter will be applied to determine the eligible unit population. This filter can only reduce, but not expand the scope of the rollout. If not provided, the unit_filter from the RolloutType will be used.", + "description": "Optional. CEL(https://github.com/google/cel-spec) formatted filter string against Unit. The filter will be applied to determine the eligible unit population. This filter can only reduce, but not expand the scope of the rollout. If not provided, the unit_filter from the RolloutKind will be used.", "type": "string" }, "updateTime": { diff --git a/saasservicemgmt/v1beta1/saasservicemgmt-gen.go b/saasservicemgmt/v1beta1/saasservicemgmt-gen.go index dc86b5486f..3dc979d241 100644 --- a/saasservicemgmt/v1beta1/saasservicemgmt-gen.go +++ b/saasservicemgmt/v1beta1/saasservicemgmt-gen.go @@ -960,7 +960,7 @@ type Rollout struct { RolloutKind string `json:"rolloutKind,omitempty"` // RolloutOrchestrationStrategy: Optional. The strategy used for executing this // Rollout. This strategy will override whatever strategy is specified in the - // RolloutType. If not specified on creation, the strategy from RolloutType + // RolloutKind. If not specified on creation, the strategy from RolloutKind // will be used. There are two supported values strategies which are used to // control - "Google.Cloud.Simple.AllAtOnce" - // "Google.Cloud.Simple.OneLocationAtATime" A rollout with one of these simple @@ -1007,7 +1007,7 @@ type Rollout struct { // UnitFilter: Optional. CEL(https://github.com/google/cel-spec) formatted // filter string against Unit. The filter will be applied to determine the // eligible unit population. This filter can only reduce, but not expand the - // scope of the rollout. If not provided, the unit_filter from the RolloutType + // scope of the rollout. If not provided, the unit_filter from the RolloutKind // will be used. UnitFilter string `json:"unitFilter,omitempty"` // UpdateTime: Output only. The timestamp when the resource was last updated. diff --git a/workloadmanager/v1/workloadmanager-api.json b/workloadmanager/v1/workloadmanager-api.json index 444e76194a..2d0ee04fe7 100644 --- a/workloadmanager/v1/workloadmanager-api.json +++ b/workloadmanager/v1/workloadmanager-api.json @@ -144,7 +144,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", + "description": "Optional. Unless explicitly documented otherwise, don't use this unsupported field which is primarily intended for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -879,7 +879,7 @@ } } }, - "revision": "20250820", + "revision": "20250903", "rootUrl": "https://workloadmanager.googleapis.com/", "schemas": { "AgentCommand": { @@ -1687,7 +1687,7 @@ "description": "The insights data for the agent status." }, "instanceId": { - "description": "Required. The instance id where the insight is generated from", + "description": "Optional. The instance id where the insight is generated from", "type": "string" }, "sapDiscovery": { @@ -3241,7 +3241,7 @@ "type": "string" }, "instanceName": { - "description": "Required. instance_name lists the human readable name of the instance that the data comes from.", + "description": "Optional. instance_name lists the human readable name of the instance that the data comes from.", "type": "string" }, "projectId": { diff --git a/workloadmanager/v1/workloadmanager-gen.go b/workloadmanager/v1/workloadmanager-gen.go index 12734199c0..c8d665fcf1 100644 --- a/workloadmanager/v1/workloadmanager-gen.go +++ b/workloadmanager/v1/workloadmanager-gen.go @@ -995,7 +995,7 @@ func (s IAMPermission) MarshalJSON() ([]byte, error) { type Insight struct { // AgentStatus: The insights data for the agent status. AgentStatus *AgentStatus `json:"agentStatus,omitempty"` - // InstanceId: Required. The instance id where the insight is generated from + // InstanceId: Optional. The instance id where the insight is generated from InstanceId string `json:"instanceId,omitempty"` // SapDiscovery: The insights data for SAP system discovery. This is a copy of // SAP System proto and should get updated whenever that one changes. @@ -2653,7 +2653,7 @@ type TorsoValidation struct { // AgentVersion: Required. agent_version lists the version of the agent that // collected this data. AgentVersion string `json:"agentVersion,omitempty"` - // InstanceName: Required. instance_name lists the human readable name of the + // InstanceName: Optional. instance_name lists the human readable name of the // instance that the data comes from. InstanceName string `json:"instanceName,omitempty"` // ProjectId: Required. project_id lists the human readable cloud project that @@ -2950,9 +2950,9 @@ func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall return c } -// ExtraLocationTypes sets the optional parameter "extraLocationTypes": Do not -// use this field. It is unsupported and is ignored unless explicitly -// documented otherwise. This is primarily for internal usage. +// ExtraLocationTypes sets the optional parameter "extraLocationTypes": Unless +// explicitly documented otherwise, don't use this unsupported field which is +// primarily intended for internal usage. func (c *ProjectsLocationsListCall) ExtraLocationTypes(extraLocationTypes ...string) *ProjectsLocationsListCall { c.urlParams_.SetMulti("extraLocationTypes", append([]string{}, extraLocationTypes...)) return c