diff --git a/discovery/networkmanagement-v1beta1.json b/discovery/networkmanagement-v1beta1.json index a6f9324ba62..590633f6359 100644 --- a/discovery/networkmanagement-v1beta1.json +++ b/discovery/networkmanagement-v1beta1.json @@ -585,180 +585,13 @@ } } } - }, - "vpcFlowLogsConfigs": { - "methods": { - "create": { - "description": "Creates a new VPC Flow Logs configuration. If a configuration with the exact same settings already exists, the creation fails.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/vpcFlowLogsConfigs", - "httpMethod": "POST", - "id": "networkmanagement.projects.locations.vpcFlowLogsConfigs.create", - "parameterOrder": [ - "parent" - ], - "parameters": { - "parent": { - "description": "Required. The parent resource of the VPC Flow Logs configuration to create: `projects/{project_id}/locations/global`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - }, - "vpcFlowLogsConfigId": { - "description": "Required. ID of the VpcFlowLogsConfig.", - "location": "query", - "type": "string" - } - }, - "path": "v1beta1/{+parent}/vpcFlowLogsConfigs", - "request": { - "$ref": "VpcFlowLogsConfig" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "delete": { - "description": "Deletes a specific VpcFlowLog configuration.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/vpcFlowLogsConfigs/{vpcFlowLogsConfigsId}", - "httpMethod": "DELETE", - "id": "networkmanagement.projects.locations.vpcFlowLogsConfigs.delete", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. VpcFlowLogsConfig name using the form: `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/vpcFlowLogsConfigs/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1beta1/{+name}", - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "get": { - "description": "Gets the details of a specific VPC Flow Log configuration.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/vpcFlowLogsConfigs/{vpcFlowLogsConfigsId}", - "httpMethod": "GET", - "id": "networkmanagement.projects.locations.vpcFlowLogsConfigs.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. `VpcFlowLog` resource name using the form: `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config}`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/vpcFlowLogsConfigs/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1beta1/{+name}", - "response": { - "$ref": "VpcFlowLogsConfig" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "list": { - "description": "Lists all VPC Flow Logs configurations in a given project.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/vpcFlowLogsConfigs", - "httpMethod": "GET", - "id": "networkmanagement.projects.locations.vpcFlowLogsConfigs.list", - "parameterOrder": [ - "parent" - ], - "parameters": { - "filter": { - "description": "Optional. Lists the `VpcFlowLogsConfig`s that match the filter expression. A filter expression filters the resources listed in the response. The expression must be of the form ` ` where operators: `<`, `>`, `<=`, `>=`, `!=`, `=`, `:` are supported (colon `:` represents a HAS operator which is roughly synonymous with equality). can refer to a proto or JSON field, or a synthetic field. Field names can be camelCase or snake_case. Examples: - Filter by name: name = \"projects/proj-1/locations/global/vpcFlowLogsConfigs/config-1 - Filter by target resource: - Configurations at the VPC network level target_resource.network:* - Configurations for a VPC network called `vpc-1` target_resource.network = vpc-1", - "location": "query", - "type": "string" - }, - "orderBy": { - "description": "Optional. Field to use to sort the list.", - "location": "query", - "type": "string" - }, - "pageSize": { - "description": "Optional. Number of `VpcFlowLogsConfig`s to return.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "Optional. Page token from an earlier query, as returned in `next_page_token`.", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Required. The parent resource of the VpcFlowLogsConfig: `projects/{project_id}/locations/global`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1beta1/{+parent}/vpcFlowLogsConfigs", - "response": { - "$ref": "ListVpcFlowLogsConfigsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "patch": { - "description": "Updates an existing VpcFlowLogsConfig. If a configuration with the exact same settings already exists, the creation fails.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/vpcFlowLogsConfigs/{vpcFlowLogsConfigsId}", - "httpMethod": "PATCH", - "id": "networkmanagement.projects.locations.vpcFlowLogsConfigs.patch", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Identifier. Unique name of the configuration using the form: `projects/{project_id}/locations/global/vpcFlowLogs/{vpc_flow_log}`", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/vpcFlowLogsConfigs/[^/]+$", - "required": true, - "type": "string" - }, - "updateMask": { - "description": "Required. Mask of fields to update. At least one path must be supplied in this field.", - "format": "google-fieldmask", - "location": "query", - "type": "string" - } - }, - "path": "v1beta1/{+name}", - "request": { - "$ref": "VpcFlowLogsConfig" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } } } } } } }, - "revision": "20240424", + "revision": "20240501", "rootUrl": "https://networkmanagement.googleapis.com/", "schemas": { "AbortInfo": { @@ -1941,31 +1774,6 @@ }, "type": "object" }, - "ListVpcFlowLogsConfigsResponse": { - "description": "Response for the `ListVpcFlowLogsConfigs` method.", - "id": "ListVpcFlowLogsConfigsResponse", - "properties": { - "nextPageToken": { - "description": "Page token to fetch the next set of configurations.", - "type": "string" - }, - "unreachable": { - "description": "Locations that could not be reached (when querying all locations with `-`).", - "items": { - "type": "string" - }, - "type": "array" - }, - "vpcFlowLogsConfigs": { - "description": "List of VPC Flow Log configurations.", - "items": { - "$ref": "VpcFlowLogsConfig" - }, - "type": "array" - } - }, - "type": "object" - }, "LoadBalancerBackend": { "description": "For display only. Metadata associated with a specific load balancer backend.", "id": "LoadBalancerBackend", @@ -3022,124 +2830,6 @@ }, "type": "object" }, - "VpcFlowLogsConfig": { - "description": "A configuration to generate VPC Flow Logs.", - "id": "VpcFlowLogsConfig", - "properties": { - "aggregationInterval": { - "description": "Optional. The aggregation interval for the logs. Default value is INTERVAL_5_SEC.", - "enum": [ - "AGGREGATION_INTERVAL_UNSPECIFIED", - "INTERVAL_5_SEC", - "INTERVAL_30_SEC", - "INTERVAL_1_MIN", - "INTERVAL_5_MIN", - "INTERVAL_10_MIN", - "INTERVAL_15_MIN" - ], - "enumDescriptions": [ - "If not specified, will default to INTERVAL_5_SEC.", - "Aggregate logs in 5s intervals.", - "Aggregate logs in 30s intervals.", - "Aggregate logs in 1m intervals.", - "Aggregate logs in 5m intervals.", - "Aggregate logs in 10m intervals.", - "Aggregate logs in 15m intervals." - ], - "type": "string" - }, - "createTime": { - "description": "Output only. The time the config was created.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, - "description": { - "description": "Optional. The user-supplied description of the VPC Flow Logs configuration. Maximum of 512 characters.", - "type": "string" - }, - "filterExpr": { - "description": "Export filter used to define which VPC flow logs should be logged.", - "type": "string" - }, - "flowSampling": { - "description": "Optional. The value of the field must be in [0, 1]. The sampling rate of VPC flow logs within the subnetwork where 1.0 means all collected logs are reported and 0.0 means no logs are reported. Default value is 1.0.", - "format": "float", - "type": "number" - }, - "interconnectAttachment": { - "description": "Traffic will be logged from the Interconnect Attachment. Format: projects/{project_id}/locations/{region}/interconnectAttachments/{name}", - "type": "string" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Optional. Resource labels to represent user-provided metadata.", - "type": "object" - }, - "metadata": { - "description": "Optional. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default value is INCLUDE_ALL_METADATA.", - "enum": [ - "METADATA_UNSPECIFIED", - "INCLUDE_ALL_METADATA", - "EXCLUDE_ALL_METADATA", - "CUSTOM_METADATA" - ], - "enumDescriptions": [ - "If not specified, will default to INCLUDE_ALL_METADATA.", - "Include all metadata fields.", - "Exclude all metadata fields.", - "Include only custom fields (specified in metadata_fields)." - ], - "type": "string" - }, - "metadataFields": { - "description": "Optional. Custom metadata fields to include in the reported VPC flow logs. Can only be specified if \"metadata\" was set to CUSTOM_METADATA.", - "items": { - "type": "string" - }, - "type": "array" - }, - "name": { - "description": "Identifier. Unique name of the configuration using the form: `projects/{project_id}/locations/global/vpcFlowLogs/{vpc_flow_log}`", - "type": "string" - }, - "network": { - "description": "Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments within the network. Format: projects/{project_id}/networks/{name}", - "type": "string" - }, - "state": { - "description": "Optional. The state of the VPC Flow Log. Default value is ENABLED.", - "enum": [ - "STATE_UNSPECIFIED", - "ENABLED", - "DISABLED" - ], - "enumDescriptions": [ - "If not specified, will default to ENABLED.", - "When ENABLED, this configuration will generate logs.", - "When DISABLED, this configuration will not generate logs." - ], - "type": "string" - }, - "subnet": { - "description": "Traffic will be logged from VMs within the subnetwork. Format: projects/{project_id}/locations/{region}/subnetworks/{name}", - "type": "string" - }, - "updateTime": { - "description": "Output only. The time the config was updated.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, - "vpnTunnel": { - "description": "Traffic will be logged from the VPN Tunnel. Format: projects/{project_id}/locations/{region}/vpnTunnels/{name}", - "type": "string" - } - }, - "type": "object" - }, "VpnGatewayInfo": { "description": "For display only. Metadata associated with a Compute Engine VPN gateway.", "id": "VpnGatewayInfo", diff --git a/src/apis/networkmanagement/v1beta1.ts b/src/apis/networkmanagement/v1beta1.ts index 587176ee937..ea0a3326dfa 100644 --- a/src/apis/networkmanagement/v1beta1.ts +++ b/src/apis/networkmanagement/v1beta1.ts @@ -777,23 +777,6 @@ export namespace networkmanagement_v1beta1 { */ operations?: Schema$Operation[]; } - /** - * Response for the `ListVpcFlowLogsConfigs` method. - */ - export interface Schema$ListVpcFlowLogsConfigsResponse { - /** - * Page token to fetch the next set of configurations. - */ - nextPageToken?: string | null; - /** - * Locations that could not be reached (when querying all locations with `-`). - */ - unreachable?: string[] | null; - /** - * List of VPC Flow Log configurations. - */ - vpcFlowLogsConfigs?: Schema$VpcFlowLogsConfig[]; - } /** * For display only. Metadata associated with a specific load balancer backend. */ @@ -1459,71 +1442,6 @@ export namespace networkmanagement_v1beta1 { */ uri?: string | null; } - /** - * A configuration to generate VPC Flow Logs. - */ - export interface Schema$VpcFlowLogsConfig { - /** - * Optional. The aggregation interval for the logs. Default value is INTERVAL_5_SEC. - */ - aggregationInterval?: string | null; - /** - * Output only. The time the config was created. - */ - createTime?: string | null; - /** - * Optional. The user-supplied description of the VPC Flow Logs configuration. Maximum of 512 characters. - */ - description?: string | null; - /** - * Export filter used to define which VPC flow logs should be logged. - */ - filterExpr?: string | null; - /** - * Optional. The value of the field must be in [0, 1]. The sampling rate of VPC flow logs within the subnetwork where 1.0 means all collected logs are reported and 0.0 means no logs are reported. Default value is 1.0. - */ - flowSampling?: number | null; - /** - * Traffic will be logged from the Interconnect Attachment. Format: projects/{project_id\}/locations/{region\}/interconnectAttachments/{name\} - */ - interconnectAttachment?: string | null; - /** - * Optional. Resource labels to represent user-provided metadata. - */ - labels?: {[key: string]: string} | null; - /** - * Optional. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default value is INCLUDE_ALL_METADATA. - */ - metadata?: string | null; - /** - * Optional. Custom metadata fields to include in the reported VPC flow logs. Can only be specified if "metadata" was set to CUSTOM_METADATA. - */ - metadataFields?: string[] | null; - /** - * Identifier. Unique name of the configuration using the form: `projects/{project_id\}/locations/global/vpcFlowLogs/{vpc_flow_log\}` - */ - name?: string | null; - /** - * Traffic will be logged from VMs, VPN tunnels and Interconnect Attachments within the network. Format: projects/{project_id\}/networks/{name\} - */ - network?: string | null; - /** - * Optional. The state of the VPC Flow Log. Default value is ENABLED. - */ - state?: string | null; - /** - * Traffic will be logged from VMs within the subnetwork. Format: projects/{project_id\}/locations/{region\}/subnetworks/{name\} - */ - subnet?: string | null; - /** - * Output only. The time the config was updated. - */ - updateTime?: string | null; - /** - * Traffic will be logged from the VPN Tunnel. Format: projects/{project_id\}/locations/{region\}/vpnTunnels/{name\} - */ - vpnTunnel?: string | null; - } /** * For display only. Metadata associated with a Compute Engine VPN gateway. */ @@ -1607,12 +1525,9 @@ export namespace networkmanagement_v1beta1 { export class Resource$Projects$Locations { context: APIRequestContext; global: Resource$Projects$Locations$Global; - vpcFlowLogsConfigs: Resource$Projects$Locations$Vpcflowlogsconfigs; constructor(context: APIRequestContext) { this.context = context; this.global = new Resource$Projects$Locations$Global(this.context); - this.vpcFlowLogsConfigs = - new Resource$Projects$Locations$Vpcflowlogsconfigs(this.context); } /** @@ -3188,534 +3103,4 @@ export namespace networkmanagement_v1beta1 { */ pageToken?: string; } - - export class Resource$Projects$Locations$Vpcflowlogsconfigs { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } - - /** - * Creates a new VPC Flow Logs configuration. If a configuration with the exact same settings already exists, the creation fails. - * - * @param params - Parameters for request - * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. - * @param callback - Optional callback that handles the response. - * @returns A promise if used with async/await, or void if used with a callback. - */ - create( - params: Params$Resource$Projects$Locations$Vpcflowlogsconfigs$Create, - options: StreamMethodOptions - ): GaxiosPromise; - create( - params?: Params$Resource$Projects$Locations$Vpcflowlogsconfigs$Create, - options?: MethodOptions - ): GaxiosPromise; - create( - params: Params$Resource$Projects$Locations$Vpcflowlogsconfigs$Create, - options: StreamMethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - create( - params: Params$Resource$Projects$Locations$Vpcflowlogsconfigs$Create, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - create( - params: Params$Resource$Projects$Locations$Vpcflowlogsconfigs$Create, - callback: BodyResponseCallback - ): void; - create(callback: BodyResponseCallback): void; - create( - paramsOrCallback?: - | Params$Resource$Projects$Locations$Vpcflowlogsconfigs$Create - | BodyResponseCallback - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | StreamMethodOptions - | BodyResponseCallback - | BodyResponseCallback, - callback?: - | BodyResponseCallback - | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Vpcflowlogsconfigs$Create; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = - {} as Params$Resource$Projects$Locations$Vpcflowlogsconfigs$Create; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = - options.rootUrl || 'https://networkmanagement.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1beta1/{+parent}/vpcFlowLogsConfigs').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'POST', - apiVersion: '', - }, - options - ), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback - ); - } else { - return createAPIRequest(parameters); - } - } - - /** - * Deletes a specific VpcFlowLog configuration. - * - * @param params - Parameters for request - * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. - * @param callback - Optional callback that handles the response. - * @returns A promise if used with async/await, or void if used with a callback. - */ - delete( - params: Params$Resource$Projects$Locations$Vpcflowlogsconfigs$Delete, - options: StreamMethodOptions - ): GaxiosPromise; - delete( - params?: Params$Resource$Projects$Locations$Vpcflowlogsconfigs$Delete, - options?: MethodOptions - ): GaxiosPromise; - delete( - params: Params$Resource$Projects$Locations$Vpcflowlogsconfigs$Delete, - options: StreamMethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - delete( - params: Params$Resource$Projects$Locations$Vpcflowlogsconfigs$Delete, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - delete( - params: Params$Resource$Projects$Locations$Vpcflowlogsconfigs$Delete, - callback: BodyResponseCallback - ): void; - delete(callback: BodyResponseCallback): void; - delete( - paramsOrCallback?: - | Params$Resource$Projects$Locations$Vpcflowlogsconfigs$Delete - | BodyResponseCallback - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | StreamMethodOptions - | BodyResponseCallback - | BodyResponseCallback, - callback?: - | BodyResponseCallback - | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Vpcflowlogsconfigs$Delete; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = - {} as Params$Resource$Projects$Locations$Vpcflowlogsconfigs$Delete; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = - options.rootUrl || 'https://networkmanagement.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - apiVersion: '', - }, - options - ), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback - ); - } else { - return createAPIRequest(parameters); - } - } - - /** - * Gets the details of a specific VPC Flow Log configuration. - * - * @param params - Parameters for request - * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. - * @param callback - Optional callback that handles the response. - * @returns A promise if used with async/await, or void if used with a callback. - */ - get( - params: Params$Resource$Projects$Locations$Vpcflowlogsconfigs$Get, - options: StreamMethodOptions - ): GaxiosPromise; - get( - params?: Params$Resource$Projects$Locations$Vpcflowlogsconfigs$Get, - options?: MethodOptions - ): GaxiosPromise; - get( - params: Params$Resource$Projects$Locations$Vpcflowlogsconfigs$Get, - options: StreamMethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - get( - params: Params$Resource$Projects$Locations$Vpcflowlogsconfigs$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - get( - params: Params$Resource$Projects$Locations$Vpcflowlogsconfigs$Get, - callback: BodyResponseCallback - ): void; - get(callback: BodyResponseCallback): void; - get( - paramsOrCallback?: - | Params$Resource$Projects$Locations$Vpcflowlogsconfigs$Get - | BodyResponseCallback - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | StreamMethodOptions - | BodyResponseCallback - | BodyResponseCallback, - callback?: - | BodyResponseCallback - | BodyResponseCallback - ): - | void - | GaxiosPromise - | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Vpcflowlogsconfigs$Get; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = - {} as Params$Resource$Projects$Locations$Vpcflowlogsconfigs$Get; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = - options.rootUrl || 'https://networkmanagement.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - apiVersion: '', - }, - options - ), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback - ); - } else { - return createAPIRequest(parameters); - } - } - - /** - * Lists all VPC Flow Logs configurations in a given project. - * - * @param params - Parameters for request - * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. - * @param callback - Optional callback that handles the response. - * @returns A promise if used with async/await, or void if used with a callback. - */ - list( - params: Params$Resource$Projects$Locations$Vpcflowlogsconfigs$List, - options: StreamMethodOptions - ): GaxiosPromise; - list( - params?: Params$Resource$Projects$Locations$Vpcflowlogsconfigs$List, - options?: MethodOptions - ): GaxiosPromise; - list( - params: Params$Resource$Projects$Locations$Vpcflowlogsconfigs$List, - options: StreamMethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - list( - params: Params$Resource$Projects$Locations$Vpcflowlogsconfigs$List, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - list( - params: Params$Resource$Projects$Locations$Vpcflowlogsconfigs$List, - callback: BodyResponseCallback - ): void; - list( - callback: BodyResponseCallback - ): void; - list( - paramsOrCallback?: - | Params$Resource$Projects$Locations$Vpcflowlogsconfigs$List - | BodyResponseCallback - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | StreamMethodOptions - | BodyResponseCallback - | BodyResponseCallback, - callback?: - | BodyResponseCallback - | BodyResponseCallback - ): - | void - | GaxiosPromise - | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Vpcflowlogsconfigs$List; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = - {} as Params$Resource$Projects$Locations$Vpcflowlogsconfigs$List; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = - options.rootUrl || 'https://networkmanagement.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1beta1/{+parent}/vpcFlowLogsConfigs').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'GET', - apiVersion: '', - }, - options - ), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback - ); - } else { - return createAPIRequest( - parameters - ); - } - } - - /** - * Updates an existing VpcFlowLogsConfig. If a configuration with the exact same settings already exists, the creation fails. - * - * @param params - Parameters for request - * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. - * @param callback - Optional callback that handles the response. - * @returns A promise if used with async/await, or void if used with a callback. - */ - patch( - params: Params$Resource$Projects$Locations$Vpcflowlogsconfigs$Patch, - options: StreamMethodOptions - ): GaxiosPromise; - patch( - params?: Params$Resource$Projects$Locations$Vpcflowlogsconfigs$Patch, - options?: MethodOptions - ): GaxiosPromise; - patch( - params: Params$Resource$Projects$Locations$Vpcflowlogsconfigs$Patch, - options: StreamMethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - patch( - params: Params$Resource$Projects$Locations$Vpcflowlogsconfigs$Patch, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - patch( - params: Params$Resource$Projects$Locations$Vpcflowlogsconfigs$Patch, - callback: BodyResponseCallback - ): void; - patch(callback: BodyResponseCallback): void; - patch( - paramsOrCallback?: - | Params$Resource$Projects$Locations$Vpcflowlogsconfigs$Patch - | BodyResponseCallback - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | StreamMethodOptions - | BodyResponseCallback - | BodyResponseCallback, - callback?: - | BodyResponseCallback - | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Vpcflowlogsconfigs$Patch; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = - {} as Params$Resource$Projects$Locations$Vpcflowlogsconfigs$Patch; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = - options.rootUrl || 'https://networkmanagement.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', - apiVersion: '', - }, - options - ), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback - ); - } else { - return createAPIRequest(parameters); - } - } - } - - export interface Params$Resource$Projects$Locations$Vpcflowlogsconfigs$Create - extends StandardParameters { - /** - * Required. The parent resource of the VPC Flow Logs configuration to create: `projects/{project_id\}/locations/global` - */ - parent?: string; - /** - * Required. ID of the VpcFlowLogsConfig. - */ - vpcFlowLogsConfigId?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$VpcFlowLogsConfig; - } - export interface Params$Resource$Projects$Locations$Vpcflowlogsconfigs$Delete - extends StandardParameters { - /** - * Required. VpcFlowLogsConfig name using the form: `projects/{project_id\}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config\}` - */ - name?: string; - } - export interface Params$Resource$Projects$Locations$Vpcflowlogsconfigs$Get - extends StandardParameters { - /** - * Required. `VpcFlowLog` resource name using the form: `projects/{project_id\}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config\}` - */ - name?: string; - } - export interface Params$Resource$Projects$Locations$Vpcflowlogsconfigs$List - extends StandardParameters { - /** - * Optional. Lists the `VpcFlowLogsConfig`s that match the filter expression. A filter expression filters the resources listed in the response. The expression must be of the form ` ` where operators: `<`, `\>`, `<=`, `\>=`, `!=`, `=`, `:` are supported (colon `:` represents a HAS operator which is roughly synonymous with equality). can refer to a proto or JSON field, or a synthetic field. Field names can be camelCase or snake_case. Examples: - Filter by name: name = "projects/proj-1/locations/global/vpcFlowLogsConfigs/config-1 - Filter by target resource: - Configurations at the VPC network level target_resource.network:* - Configurations for a VPC network called `vpc-1` target_resource.network = vpc-1 - */ - filter?: string; - /** - * Optional. Field to use to sort the list. - */ - orderBy?: string; - /** - * Optional. Number of `VpcFlowLogsConfig`s to return. - */ - pageSize?: number; - /** - * Optional. Page token from an earlier query, as returned in `next_page_token`. - */ - pageToken?: string; - /** - * Required. The parent resource of the VpcFlowLogsConfig: `projects/{project_id\}/locations/global` - */ - parent?: string; - } - export interface Params$Resource$Projects$Locations$Vpcflowlogsconfigs$Patch - extends StandardParameters { - /** - * Identifier. Unique name of the configuration using the form: `projects/{project_id\}/locations/global/vpcFlowLogs/{vpc_flow_log\}` - */ - name?: string; - /** - * Required. Mask of fields to update. At least one path must be supplied in this field. - */ - updateMask?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$VpcFlowLogsConfig; - } }