@maxim_mazurok/gapi.client.logging-v2 0.0.20230203 → 0.0.20230211

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.d.ts +763 -35
  2. package/package.json +1 -1
  3. package/tests.ts +336 -16
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://logging.googleapis.com/$discovery/rest?version=v2
12
- // Revision: 20230203
12
+ // Revision: 20230211
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -36,6 +36,18 @@ declare namespace gapi.client {
36
36
  */
37
37
  usesTimestampColumnPartitioning?: boolean;
38
38
  }
39
+ interface BucketMetadata {
40
+ /** LongRunningCreateBucket RPC request. */
41
+ createBucketRequest?: CreateBucketRequest;
42
+ /** The end time of an operation. */
43
+ endTime?: string;
44
+ /** The create time of an operation. */
45
+ startTime?: string;
46
+ /** State of an operation. */
47
+ state?: string;
48
+ /** LongRunningUpdateBucket RPC request. */
49
+ updateBucketRequest?: UpdateBucketRequest;
50
+ }
39
51
  interface BucketOptions {
40
52
  /** The explicit buckets. */
41
53
  explicitBuckets?: Explicit;
@@ -105,6 +117,14 @@ declare namespace gapi.client {
105
117
  /** Number of log entries copied. */
106
118
  logEntriesCopiedCount?: string;
107
119
  }
120
+ interface CreateBucketRequest {
121
+ /** Required. The new bucket. The region specified in the new bucket must be compliant with any Location Restriction Org Policy. The name field in the bucket is ignored. */
122
+ bucket?: LogBucket;
123
+ /** Required. A client-assigned identifier such as "my-bucket". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods. */
124
+ bucketId?: string;
125
+ /** Required. The resource in which to create the log bucket: "projects/[PROJECT_ID]/locations/[LOCATION_ID]" For example:"projects/my-project/locations/global" */
126
+ parent?: string;
127
+ }
108
128
  // tslint:disable-next-line:no-empty-interface
109
129
  interface Empty {
110
130
  }
@@ -318,6 +338,8 @@ declare namespace gapi.client {
318
338
  name?: string;
319
339
  }
320
340
  interface LogBucket {
341
+ /** Whether log analytics is enabled for this bucket.Once enabled, log analytics features cannot be disabled. */
342
+ analyticsEnabled?: boolean;
321
343
  /**
322
344
  * The CMEK settings of the log bucket. If present, new log entries written to this log bucket are encrypted using the CMEK key provided in this configuration. If a log bucket has CMEK
323
345
  * settings, the CMEK settings cannot be disabled later by updating the log bucket. Changing the KMS key is allowed.
@@ -946,6 +968,22 @@ declare namespace gapi.client {
946
968
  // tslint:disable-next-line:no-empty-interface
947
969
  interface UndeleteBucketRequest {
948
970
  }
971
+ interface UpdateBucketRequest {
972
+ /** Required. The updated bucket. */
973
+ bucket?: LogBucket;
974
+ /**
975
+ * Required. The full resource name of the bucket to update. "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
976
+ * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
977
+ * "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" For example:"projects/my-project/locations/global/buckets/my-bucket"
978
+ */
979
+ name?: string;
980
+ /**
981
+ * Required. Field mask that specifies the fields in bucket that need an update. A bucket field will be overwritten if, and only if, it is in the update mask. name and output only
982
+ * fields cannot be updated.For a detailed FieldMask definition, see: https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskFor
983
+ * example: updateMask=retention_days
984
+ */
985
+ updateMask?: string;
986
+ }
949
987
  interface WriteLogEntriesRequest {
950
988
  /**
951
989
  * Optional. If true, the request should expect normal response, but the entries won't be persisted nor exported. Useful for checking whether the logging API endpoints are working
@@ -1585,6 +1623,66 @@ declare namespace gapi.client {
1585
1623
  uploadType?: string;
1586
1624
  },
1587
1625
  body: LogBucket): Request<LogBucket>;
1626
+ /** Creates a log bucket asynchronously that can be used to store log entries.After a bucket has been created, the bucket's location cannot be changed. */
1627
+ createAsync(request: {
1628
+ /** V1 error format. */
1629
+ "$.xgafv"?: string;
1630
+ /** OAuth access token. */
1631
+ access_token?: string;
1632
+ /** Data format for response. */
1633
+ alt?: string;
1634
+ /** Required. A client-assigned identifier such as "my-bucket". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods. */
1635
+ bucketId?: string;
1636
+ /** JSONP */
1637
+ callback?: string;
1638
+ /** Selector specifying which fields to include in a partial response. */
1639
+ fields?: string;
1640
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1641
+ key?: string;
1642
+ /** OAuth 2.0 token for the current user. */
1643
+ oauth_token?: string;
1644
+ /** Required. The resource in which to create the log bucket: "projects/[PROJECT_ID]/locations/[LOCATION_ID]" For example:"projects/my-project/locations/global" */
1645
+ parent: string;
1646
+ /** Returns response with indentations and line breaks. */
1647
+ prettyPrint?: boolean;
1648
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1649
+ quotaUser?: string;
1650
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1651
+ upload_protocol?: string;
1652
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1653
+ uploadType?: string;
1654
+ /** Request body */
1655
+ resource: LogBucket;
1656
+ }): Request<Operation>;
1657
+ createAsync(request: {
1658
+ /** V1 error format. */
1659
+ "$.xgafv"?: string;
1660
+ /** OAuth access token. */
1661
+ access_token?: string;
1662
+ /** Data format for response. */
1663
+ alt?: string;
1664
+ /** Required. A client-assigned identifier such as "my-bucket". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods. */
1665
+ bucketId?: string;
1666
+ /** JSONP */
1667
+ callback?: string;
1668
+ /** Selector specifying which fields to include in a partial response. */
1669
+ fields?: string;
1670
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1671
+ key?: string;
1672
+ /** OAuth 2.0 token for the current user. */
1673
+ oauth_token?: string;
1674
+ /** Required. The resource in which to create the log bucket: "projects/[PROJECT_ID]/locations/[LOCATION_ID]" For example:"projects/my-project/locations/global" */
1675
+ parent: string;
1676
+ /** Returns response with indentations and line breaks. */
1677
+ prettyPrint?: boolean;
1678
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1679
+ quotaUser?: string;
1680
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1681
+ upload_protocol?: string;
1682
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1683
+ uploadType?: string;
1684
+ },
1685
+ body: LogBucket): Request<Operation>;
1588
1686
  /**
1589
1687
  * Deletes a log bucket.Changes the bucket's lifecycle_state to the DELETE_REQUESTED state. After 7 days, the bucket will be purged and all log entries in the bucket will be
1590
1688
  * permanently deleted.
@@ -1692,9 +1790,8 @@ declare namespace gapi.client {
1692
1790
  uploadType?: string;
1693
1791
  }): Request<ListBucketsResponse>;
1694
1792
  /**
1695
- * Updates a log bucket. This method replaces the following fields in the existing bucket with values from the new bucket: retention_periodIf the retention period is decreased and the
1696
- * bucket is locked, FAILED_PRECONDITION will be returned.If the bucket has a lifecycle_state of DELETE_REQUESTED, then FAILED_PRECONDITION will be returned.After a bucket has been
1697
- * created, the bucket's location cannot be changed.
1793
+ * Updates a log bucket.If the bucket has a lifecycle_state of DELETE_REQUESTED, then FAILED_PRECONDITION will be returned.After a bucket has been created, the bucket's location cannot
1794
+ * be changed.
1698
1795
  */
1699
1796
  patch(request: {
1700
1797
  /** V1 error format. */
@@ -1835,6 +1932,85 @@ declare namespace gapi.client {
1835
1932
  uploadType?: string;
1836
1933
  },
1837
1934
  body: UndeleteBucketRequest): Request<{}>;
1935
+ /**
1936
+ * Updates a log bucket asynchronously.If the bucket has a lifecycle_state of DELETE_REQUESTED, then FAILED_PRECONDITION will be returned.After a bucket has been created, the bucket's
1937
+ * location cannot be changed.
1938
+ */
1939
+ updateAsync(request: {
1940
+ /** V1 error format. */
1941
+ "$.xgafv"?: string;
1942
+ /** OAuth access token. */
1943
+ access_token?: string;
1944
+ /** Data format for response. */
1945
+ alt?: string;
1946
+ /** JSONP */
1947
+ callback?: string;
1948
+ /** Selector specifying which fields to include in a partial response. */
1949
+ fields?: string;
1950
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1951
+ key?: string;
1952
+ /**
1953
+ * Required. The full resource name of the bucket to update. "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
1954
+ * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
1955
+ * "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" For example:"projects/my-project/locations/global/buckets/my-bucket"
1956
+ */
1957
+ name: string;
1958
+ /** OAuth 2.0 token for the current user. */
1959
+ oauth_token?: string;
1960
+ /** Returns response with indentations and line breaks. */
1961
+ prettyPrint?: boolean;
1962
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1963
+ quotaUser?: string;
1964
+ /**
1965
+ * Required. Field mask that specifies the fields in bucket that need an update. A bucket field will be overwritten if, and only if, it is in the update mask. name and output only
1966
+ * fields cannot be updated.For a detailed FieldMask definition, see: https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskFor
1967
+ * example: updateMask=retention_days
1968
+ */
1969
+ updateMask?: string;
1970
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1971
+ upload_protocol?: string;
1972
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1973
+ uploadType?: string;
1974
+ /** Request body */
1975
+ resource: LogBucket;
1976
+ }): Request<Operation>;
1977
+ updateAsync(request: {
1978
+ /** V1 error format. */
1979
+ "$.xgafv"?: string;
1980
+ /** OAuth access token. */
1981
+ access_token?: string;
1982
+ /** Data format for response. */
1983
+ alt?: string;
1984
+ /** JSONP */
1985
+ callback?: string;
1986
+ /** Selector specifying which fields to include in a partial response. */
1987
+ fields?: string;
1988
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1989
+ key?: string;
1990
+ /**
1991
+ * Required. The full resource name of the bucket to update. "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
1992
+ * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
1993
+ * "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" For example:"projects/my-project/locations/global/buckets/my-bucket"
1994
+ */
1995
+ name: string;
1996
+ /** OAuth 2.0 token for the current user. */
1997
+ oauth_token?: string;
1998
+ /** Returns response with indentations and line breaks. */
1999
+ prettyPrint?: boolean;
2000
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2001
+ quotaUser?: string;
2002
+ /**
2003
+ * Required. Field mask that specifies the fields in bucket that need an update. A bucket field will be overwritten if, and only if, it is in the update mask. name and output only
2004
+ * fields cannot be updated.For a detailed FieldMask definition, see: https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskFor
2005
+ * example: updateMask=retention_days
2006
+ */
2007
+ updateMask?: string;
2008
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
2009
+ upload_protocol?: string;
2010
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2011
+ uploadType?: string;
2012
+ },
2013
+ body: LogBucket): Request<Operation>;
1838
2014
  views: ViewsResource;
1839
2015
  }
1840
2016
  interface OperationsResource {
@@ -3616,6 +3792,66 @@ declare namespace gapi.client {
3616
3792
  uploadType?: string;
3617
3793
  },
3618
3794
  body: LogBucket): Request<LogBucket>;
3795
+ /** Creates a log bucket asynchronously that can be used to store log entries.After a bucket has been created, the bucket's location cannot be changed. */
3796
+ createAsync(request: {
3797
+ /** V1 error format. */
3798
+ "$.xgafv"?: string;
3799
+ /** OAuth access token. */
3800
+ access_token?: string;
3801
+ /** Data format for response. */
3802
+ alt?: string;
3803
+ /** Required. A client-assigned identifier such as "my-bucket". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods. */
3804
+ bucketId?: string;
3805
+ /** JSONP */
3806
+ callback?: string;
3807
+ /** Selector specifying which fields to include in a partial response. */
3808
+ fields?: string;
3809
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3810
+ key?: string;
3811
+ /** OAuth 2.0 token for the current user. */
3812
+ oauth_token?: string;
3813
+ /** Required. The resource in which to create the log bucket: "projects/[PROJECT_ID]/locations/[LOCATION_ID]" For example:"projects/my-project/locations/global" */
3814
+ parent: string;
3815
+ /** Returns response with indentations and line breaks. */
3816
+ prettyPrint?: boolean;
3817
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3818
+ quotaUser?: string;
3819
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3820
+ upload_protocol?: string;
3821
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3822
+ uploadType?: string;
3823
+ /** Request body */
3824
+ resource: LogBucket;
3825
+ }): Request<Operation>;
3826
+ createAsync(request: {
3827
+ /** V1 error format. */
3828
+ "$.xgafv"?: string;
3829
+ /** OAuth access token. */
3830
+ access_token?: string;
3831
+ /** Data format for response. */
3832
+ alt?: string;
3833
+ /** Required. A client-assigned identifier such as "my-bucket". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods. */
3834
+ bucketId?: string;
3835
+ /** JSONP */
3836
+ callback?: string;
3837
+ /** Selector specifying which fields to include in a partial response. */
3838
+ fields?: string;
3839
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3840
+ key?: string;
3841
+ /** OAuth 2.0 token for the current user. */
3842
+ oauth_token?: string;
3843
+ /** Required. The resource in which to create the log bucket: "projects/[PROJECT_ID]/locations/[LOCATION_ID]" For example:"projects/my-project/locations/global" */
3844
+ parent: string;
3845
+ /** Returns response with indentations and line breaks. */
3846
+ prettyPrint?: boolean;
3847
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3848
+ quotaUser?: string;
3849
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3850
+ upload_protocol?: string;
3851
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3852
+ uploadType?: string;
3853
+ },
3854
+ body: LogBucket): Request<Operation>;
3619
3855
  /**
3620
3856
  * Deletes a log bucket.Changes the bucket's lifecycle_state to the DELETE_REQUESTED state. After 7 days, the bucket will be purged and all log entries in the bucket will be
3621
3857
  * permanently deleted.
@@ -3723,9 +3959,8 @@ declare namespace gapi.client {
3723
3959
  uploadType?: string;
3724
3960
  }): Request<ListBucketsResponse>;
3725
3961
  /**
3726
- * Updates a log bucket. This method replaces the following fields in the existing bucket with values from the new bucket: retention_periodIf the retention period is decreased and the
3727
- * bucket is locked, FAILED_PRECONDITION will be returned.If the bucket has a lifecycle_state of DELETE_REQUESTED, then FAILED_PRECONDITION will be returned.After a bucket has been
3728
- * created, the bucket's location cannot be changed.
3962
+ * Updates a log bucket.If the bucket has a lifecycle_state of DELETE_REQUESTED, then FAILED_PRECONDITION will be returned.After a bucket has been created, the bucket's location cannot
3963
+ * be changed.
3729
3964
  */
3730
3965
  patch(request: {
3731
3966
  /** V1 error format. */
@@ -3866,16 +4101,11 @@ declare namespace gapi.client {
3866
4101
  uploadType?: string;
3867
4102
  },
3868
4103
  body: UndeleteBucketRequest): Request<{}>;
3869
- views: ViewsResource;
3870
- }
3871
- interface OperationsResource {
3872
4104
  /**
3873
- * 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
3874
- * 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
3875
- * completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a
3876
- * google.rpc.Status.code of 1, corresponding to Code.CANCELLED.
4105
+ * Updates a log bucket asynchronously.If the bucket has a lifecycle_state of DELETE_REQUESTED, then FAILED_PRECONDITION will be returned.After a bucket has been created, the bucket's
4106
+ * location cannot be changed.
3877
4107
  */
3878
- cancel(request: {
4108
+ updateAsync(request: {
3879
4109
  /** V1 error format. */
3880
4110
  "$.xgafv"?: string;
3881
4111
  /** OAuth access token. */
@@ -3888,7 +4118,11 @@ declare namespace gapi.client {
3888
4118
  fields?: string;
3889
4119
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3890
4120
  key?: string;
3891
- /** The name of the operation resource to be cancelled. */
4121
+ /**
4122
+ * Required. The full resource name of the bucket to update. "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
4123
+ * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
4124
+ * "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" For example:"projects/my-project/locations/global/buckets/my-bucket"
4125
+ */
3892
4126
  name: string;
3893
4127
  /** OAuth 2.0 token for the current user. */
3894
4128
  oauth_token?: string;
@@ -3896,14 +4130,20 @@ declare namespace gapi.client {
3896
4130
  prettyPrint?: boolean;
3897
4131
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3898
4132
  quotaUser?: string;
4133
+ /**
4134
+ * Required. Field mask that specifies the fields in bucket that need an update. A bucket field will be overwritten if, and only if, it is in the update mask. name and output only
4135
+ * fields cannot be updated.For a detailed FieldMask definition, see: https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskFor
4136
+ * example: updateMask=retention_days
4137
+ */
4138
+ updateMask?: string;
3899
4139
  /** Upload protocol for media (e.g. "raw", "multipart"). */
3900
4140
  upload_protocol?: string;
3901
4141
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3902
4142
  uploadType?: string;
3903
4143
  /** Request body */
3904
- resource: CancelOperationRequest;
3905
- }): Request<{}>;
3906
- cancel(request: {
4144
+ resource: LogBucket;
4145
+ }): Request<Operation>;
4146
+ updateAsync(request: {
3907
4147
  /** V1 error format. */
3908
4148
  "$.xgafv"?: string;
3909
4149
  /** OAuth access token. */
@@ -3916,7 +4156,11 @@ declare namespace gapi.client {
3916
4156
  fields?: string;
3917
4157
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3918
4158
  key?: string;
3919
- /** The name of the operation resource to be cancelled. */
4159
+ /**
4160
+ * Required. The full resource name of the bucket to update. "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
4161
+ * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
4162
+ * "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" For example:"projects/my-project/locations/global/buckets/my-bucket"
4163
+ */
3920
4164
  name: string;
3921
4165
  /** OAuth 2.0 token for the current user. */
3922
4166
  oauth_token?: string;
@@ -3924,14 +4168,28 @@ declare namespace gapi.client {
3924
4168
  prettyPrint?: boolean;
3925
4169
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
3926
4170
  quotaUser?: string;
4171
+ /**
4172
+ * Required. Field mask that specifies the fields in bucket that need an update. A bucket field will be overwritten if, and only if, it is in the update mask. name and output only
4173
+ * fields cannot be updated.For a detailed FieldMask definition, see: https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskFor
4174
+ * example: updateMask=retention_days
4175
+ */
4176
+ updateMask?: string;
3927
4177
  /** Upload protocol for media (e.g. "raw", "multipart"). */
3928
4178
  upload_protocol?: string;
3929
4179
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3930
4180
  uploadType?: string;
3931
4181
  },
3932
- body: CancelOperationRequest): Request<{}>;
3933
- /** 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. */
3934
- get(request?: {
4182
+ body: LogBucket): Request<Operation>;
4183
+ views: ViewsResource;
4184
+ }
4185
+ interface OperationsResource {
4186
+ /**
4187
+ * 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
4188
+ * 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
4189
+ * completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a
4190
+ * google.rpc.Status.code of 1, corresponding to Code.CANCELLED.
4191
+ */
4192
+ cancel(request: {
3935
4193
  /** V1 error format. */
3936
4194
  "$.xgafv"?: string;
3937
4195
  /** OAuth access token. */
@@ -3944,7 +4202,7 @@ declare namespace gapi.client {
3944
4202
  fields?: string;
3945
4203
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
3946
4204
  key?: string;
3947
- /** The name of the operation resource. */
4205
+ /** The name of the operation resource to be cancelled. */
3948
4206
  name: string;
3949
4207
  /** OAuth 2.0 token for the current user. */
3950
4208
  oauth_token?: string;
@@ -3956,8 +4214,64 @@ declare namespace gapi.client {
3956
4214
  upload_protocol?: string;
3957
4215
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3958
4216
  uploadType?: string;
3959
- }): Request<Operation>;
3960
- /**
4217
+ /** Request body */
4218
+ resource: CancelOperationRequest;
4219
+ }): Request<{}>;
4220
+ cancel(request: {
4221
+ /** V1 error format. */
4222
+ "$.xgafv"?: string;
4223
+ /** OAuth access token. */
4224
+ access_token?: string;
4225
+ /** Data format for response. */
4226
+ alt?: string;
4227
+ /** JSONP */
4228
+ callback?: string;
4229
+ /** Selector specifying which fields to include in a partial response. */
4230
+ fields?: string;
4231
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
4232
+ key?: string;
4233
+ /** The name of the operation resource to be cancelled. */
4234
+ name: string;
4235
+ /** OAuth 2.0 token for the current user. */
4236
+ oauth_token?: string;
4237
+ /** Returns response with indentations and line breaks. */
4238
+ prettyPrint?: boolean;
4239
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
4240
+ quotaUser?: string;
4241
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4242
+ upload_protocol?: string;
4243
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4244
+ uploadType?: string;
4245
+ },
4246
+ body: CancelOperationRequest): Request<{}>;
4247
+ /** 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. */
4248
+ get(request?: {
4249
+ /** V1 error format. */
4250
+ "$.xgafv"?: string;
4251
+ /** OAuth access token. */
4252
+ access_token?: string;
4253
+ /** Data format for response. */
4254
+ alt?: string;
4255
+ /** JSONP */
4256
+ callback?: string;
4257
+ /** Selector specifying which fields to include in a partial response. */
4258
+ fields?: string;
4259
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
4260
+ key?: string;
4261
+ /** The name of the operation resource. */
4262
+ name: string;
4263
+ /** OAuth 2.0 token for the current user. */
4264
+ oauth_token?: string;
4265
+ /** Returns response with indentations and line breaks. */
4266
+ prettyPrint?: boolean;
4267
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
4268
+ quotaUser?: string;
4269
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
4270
+ upload_protocol?: string;
4271
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
4272
+ uploadType?: string;
4273
+ }): Request<Operation>;
4274
+ /**
3961
4275
  * Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding allows API services to
3962
4276
  * override the binding to use different resource name schemes, such as users/*‍/operations. To override the binding, API services can add a binding such as
3963
4277
  * "/v1/{name=users/*}/operations" to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
@@ -4977,6 +5291,66 @@ declare namespace gapi.client {
4977
5291
  uploadType?: string;
4978
5292
  },
4979
5293
  body: LogBucket): Request<LogBucket>;
5294
+ /** Creates a log bucket asynchronously that can be used to store log entries.After a bucket has been created, the bucket's location cannot be changed. */
5295
+ createAsync(request: {
5296
+ /** V1 error format. */
5297
+ "$.xgafv"?: string;
5298
+ /** OAuth access token. */
5299
+ access_token?: string;
5300
+ /** Data format for response. */
5301
+ alt?: string;
5302
+ /** Required. A client-assigned identifier such as "my-bucket". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods. */
5303
+ bucketId?: string;
5304
+ /** JSONP */
5305
+ callback?: string;
5306
+ /** Selector specifying which fields to include in a partial response. */
5307
+ fields?: string;
5308
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
5309
+ key?: string;
5310
+ /** OAuth 2.0 token for the current user. */
5311
+ oauth_token?: string;
5312
+ /** Required. The resource in which to create the log bucket: "projects/[PROJECT_ID]/locations/[LOCATION_ID]" For example:"projects/my-project/locations/global" */
5313
+ parent: string;
5314
+ /** Returns response with indentations and line breaks. */
5315
+ prettyPrint?: boolean;
5316
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
5317
+ quotaUser?: string;
5318
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
5319
+ upload_protocol?: string;
5320
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
5321
+ uploadType?: string;
5322
+ /** Request body */
5323
+ resource: LogBucket;
5324
+ }): Request<Operation>;
5325
+ createAsync(request: {
5326
+ /** V1 error format. */
5327
+ "$.xgafv"?: string;
5328
+ /** OAuth access token. */
5329
+ access_token?: string;
5330
+ /** Data format for response. */
5331
+ alt?: string;
5332
+ /** Required. A client-assigned identifier such as "my-bucket". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods. */
5333
+ bucketId?: string;
5334
+ /** JSONP */
5335
+ callback?: string;
5336
+ /** Selector specifying which fields to include in a partial response. */
5337
+ fields?: string;
5338
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
5339
+ key?: string;
5340
+ /** OAuth 2.0 token for the current user. */
5341
+ oauth_token?: string;
5342
+ /** Required. The resource in which to create the log bucket: "projects/[PROJECT_ID]/locations/[LOCATION_ID]" For example:"projects/my-project/locations/global" */
5343
+ parent: string;
5344
+ /** Returns response with indentations and line breaks. */
5345
+ prettyPrint?: boolean;
5346
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
5347
+ quotaUser?: string;
5348
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
5349
+ upload_protocol?: string;
5350
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
5351
+ uploadType?: string;
5352
+ },
5353
+ body: LogBucket): Request<Operation>;
4980
5354
  /**
4981
5355
  * Deletes a log bucket.Changes the bucket's lifecycle_state to the DELETE_REQUESTED state. After 7 days, the bucket will be purged and all log entries in the bucket will be
4982
5356
  * permanently deleted.
@@ -5084,9 +5458,8 @@ declare namespace gapi.client {
5084
5458
  uploadType?: string;
5085
5459
  }): Request<ListBucketsResponse>;
5086
5460
  /**
5087
- * Updates a log bucket. This method replaces the following fields in the existing bucket with values from the new bucket: retention_periodIf the retention period is decreased and the
5088
- * bucket is locked, FAILED_PRECONDITION will be returned.If the bucket has a lifecycle_state of DELETE_REQUESTED, then FAILED_PRECONDITION will be returned.After a bucket has been
5089
- * created, the bucket's location cannot be changed.
5461
+ * Updates a log bucket.If the bucket has a lifecycle_state of DELETE_REQUESTED, then FAILED_PRECONDITION will be returned.After a bucket has been created, the bucket's location cannot
5462
+ * be changed.
5090
5463
  */
5091
5464
  patch(request: {
5092
5465
  /** V1 error format. */
@@ -5227,6 +5600,85 @@ declare namespace gapi.client {
5227
5600
  uploadType?: string;
5228
5601
  },
5229
5602
  body: UndeleteBucketRequest): Request<{}>;
5603
+ /**
5604
+ * Updates a log bucket asynchronously.If the bucket has a lifecycle_state of DELETE_REQUESTED, then FAILED_PRECONDITION will be returned.After a bucket has been created, the bucket's
5605
+ * location cannot be changed.
5606
+ */
5607
+ updateAsync(request: {
5608
+ /** V1 error format. */
5609
+ "$.xgafv"?: string;
5610
+ /** OAuth access token. */
5611
+ access_token?: string;
5612
+ /** Data format for response. */
5613
+ alt?: string;
5614
+ /** JSONP */
5615
+ callback?: string;
5616
+ /** Selector specifying which fields to include in a partial response. */
5617
+ fields?: string;
5618
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
5619
+ key?: string;
5620
+ /**
5621
+ * Required. The full resource name of the bucket to update. "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
5622
+ * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
5623
+ * "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" For example:"projects/my-project/locations/global/buckets/my-bucket"
5624
+ */
5625
+ name: string;
5626
+ /** OAuth 2.0 token for the current user. */
5627
+ oauth_token?: string;
5628
+ /** Returns response with indentations and line breaks. */
5629
+ prettyPrint?: boolean;
5630
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
5631
+ quotaUser?: string;
5632
+ /**
5633
+ * Required. Field mask that specifies the fields in bucket that need an update. A bucket field will be overwritten if, and only if, it is in the update mask. name and output only
5634
+ * fields cannot be updated.For a detailed FieldMask definition, see: https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskFor
5635
+ * example: updateMask=retention_days
5636
+ */
5637
+ updateMask?: string;
5638
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
5639
+ upload_protocol?: string;
5640
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
5641
+ uploadType?: string;
5642
+ /** Request body */
5643
+ resource: LogBucket;
5644
+ }): Request<Operation>;
5645
+ updateAsync(request: {
5646
+ /** V1 error format. */
5647
+ "$.xgafv"?: string;
5648
+ /** OAuth access token. */
5649
+ access_token?: string;
5650
+ /** Data format for response. */
5651
+ alt?: string;
5652
+ /** JSONP */
5653
+ callback?: string;
5654
+ /** Selector specifying which fields to include in a partial response. */
5655
+ fields?: string;
5656
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
5657
+ key?: string;
5658
+ /**
5659
+ * Required. The full resource name of the bucket to update. "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
5660
+ * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
5661
+ * "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" For example:"projects/my-project/locations/global/buckets/my-bucket"
5662
+ */
5663
+ name: string;
5664
+ /** OAuth 2.0 token for the current user. */
5665
+ oauth_token?: string;
5666
+ /** Returns response with indentations and line breaks. */
5667
+ prettyPrint?: boolean;
5668
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
5669
+ quotaUser?: string;
5670
+ /**
5671
+ * Required. Field mask that specifies the fields in bucket that need an update. A bucket field will be overwritten if, and only if, it is in the update mask. name and output only
5672
+ * fields cannot be updated.For a detailed FieldMask definition, see: https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskFor
5673
+ * example: updateMask=retention_days
5674
+ */
5675
+ updateMask?: string;
5676
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
5677
+ upload_protocol?: string;
5678
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
5679
+ uploadType?: string;
5680
+ },
5681
+ body: LogBucket): Request<Operation>;
5230
5682
  views: ViewsResource;
5231
5683
  }
5232
5684
  interface OperationsResource {
@@ -6137,6 +6589,66 @@ declare namespace gapi.client {
6137
6589
  uploadType?: string;
6138
6590
  },
6139
6591
  body: LogBucket): Request<LogBucket>;
6592
+ /** Creates a log bucket asynchronously that can be used to store log entries.After a bucket has been created, the bucket's location cannot be changed. */
6593
+ createAsync(request: {
6594
+ /** V1 error format. */
6595
+ "$.xgafv"?: string;
6596
+ /** OAuth access token. */
6597
+ access_token?: string;
6598
+ /** Data format for response. */
6599
+ alt?: string;
6600
+ /** Required. A client-assigned identifier such as "my-bucket". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods. */
6601
+ bucketId?: string;
6602
+ /** JSONP */
6603
+ callback?: string;
6604
+ /** Selector specifying which fields to include in a partial response. */
6605
+ fields?: string;
6606
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
6607
+ key?: string;
6608
+ /** OAuth 2.0 token for the current user. */
6609
+ oauth_token?: string;
6610
+ /** Required. The resource in which to create the log bucket: "projects/[PROJECT_ID]/locations/[LOCATION_ID]" For example:"projects/my-project/locations/global" */
6611
+ parent: string;
6612
+ /** Returns response with indentations and line breaks. */
6613
+ prettyPrint?: boolean;
6614
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
6615
+ quotaUser?: string;
6616
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
6617
+ upload_protocol?: string;
6618
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6619
+ uploadType?: string;
6620
+ /** Request body */
6621
+ resource: LogBucket;
6622
+ }): Request<Operation>;
6623
+ createAsync(request: {
6624
+ /** V1 error format. */
6625
+ "$.xgafv"?: string;
6626
+ /** OAuth access token. */
6627
+ access_token?: string;
6628
+ /** Data format for response. */
6629
+ alt?: string;
6630
+ /** Required. A client-assigned identifier such as "my-bucket". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods. */
6631
+ bucketId?: string;
6632
+ /** JSONP */
6633
+ callback?: string;
6634
+ /** Selector specifying which fields to include in a partial response. */
6635
+ fields?: string;
6636
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
6637
+ key?: string;
6638
+ /** OAuth 2.0 token for the current user. */
6639
+ oauth_token?: string;
6640
+ /** Required. The resource in which to create the log bucket: "projects/[PROJECT_ID]/locations/[LOCATION_ID]" For example:"projects/my-project/locations/global" */
6641
+ parent: string;
6642
+ /** Returns response with indentations and line breaks. */
6643
+ prettyPrint?: boolean;
6644
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
6645
+ quotaUser?: string;
6646
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
6647
+ upload_protocol?: string;
6648
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6649
+ uploadType?: string;
6650
+ },
6651
+ body: LogBucket): Request<Operation>;
6140
6652
  /**
6141
6653
  * Deletes a log bucket.Changes the bucket's lifecycle_state to the DELETE_REQUESTED state. After 7 days, the bucket will be purged and all log entries in the bucket will be
6142
6654
  * permanently deleted.
@@ -6244,9 +6756,8 @@ declare namespace gapi.client {
6244
6756
  uploadType?: string;
6245
6757
  }): Request<ListBucketsResponse>;
6246
6758
  /**
6247
- * Updates a log bucket. This method replaces the following fields in the existing bucket with values from the new bucket: retention_periodIf the retention period is decreased and the
6248
- * bucket is locked, FAILED_PRECONDITION will be returned.If the bucket has a lifecycle_state of DELETE_REQUESTED, then FAILED_PRECONDITION will be returned.After a bucket has been
6249
- * created, the bucket's location cannot be changed.
6759
+ * Updates a log bucket.If the bucket has a lifecycle_state of DELETE_REQUESTED, then FAILED_PRECONDITION will be returned.After a bucket has been created, the bucket's location cannot
6760
+ * be changed.
6250
6761
  */
6251
6762
  patch(request: {
6252
6763
  /** V1 error format. */
@@ -6387,6 +6898,85 @@ declare namespace gapi.client {
6387
6898
  uploadType?: string;
6388
6899
  },
6389
6900
  body: UndeleteBucketRequest): Request<{}>;
6901
+ /**
6902
+ * Updates a log bucket asynchronously.If the bucket has a lifecycle_state of DELETE_REQUESTED, then FAILED_PRECONDITION will be returned.After a bucket has been created, the bucket's
6903
+ * location cannot be changed.
6904
+ */
6905
+ updateAsync(request: {
6906
+ /** V1 error format. */
6907
+ "$.xgafv"?: string;
6908
+ /** OAuth access token. */
6909
+ access_token?: string;
6910
+ /** Data format for response. */
6911
+ alt?: string;
6912
+ /** JSONP */
6913
+ callback?: string;
6914
+ /** Selector specifying which fields to include in a partial response. */
6915
+ fields?: string;
6916
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
6917
+ key?: string;
6918
+ /**
6919
+ * Required. The full resource name of the bucket to update. "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
6920
+ * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
6921
+ * "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" For example:"projects/my-project/locations/global/buckets/my-bucket"
6922
+ */
6923
+ name: string;
6924
+ /** OAuth 2.0 token for the current user. */
6925
+ oauth_token?: string;
6926
+ /** Returns response with indentations and line breaks. */
6927
+ prettyPrint?: boolean;
6928
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
6929
+ quotaUser?: string;
6930
+ /**
6931
+ * Required. Field mask that specifies the fields in bucket that need an update. A bucket field will be overwritten if, and only if, it is in the update mask. name and output only
6932
+ * fields cannot be updated.For a detailed FieldMask definition, see: https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskFor
6933
+ * example: updateMask=retention_days
6934
+ */
6935
+ updateMask?: string;
6936
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
6937
+ upload_protocol?: string;
6938
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6939
+ uploadType?: string;
6940
+ /** Request body */
6941
+ resource: LogBucket;
6942
+ }): Request<Operation>;
6943
+ updateAsync(request: {
6944
+ /** V1 error format. */
6945
+ "$.xgafv"?: string;
6946
+ /** OAuth access token. */
6947
+ access_token?: string;
6948
+ /** Data format for response. */
6949
+ alt?: string;
6950
+ /** JSONP */
6951
+ callback?: string;
6952
+ /** Selector specifying which fields to include in a partial response. */
6953
+ fields?: string;
6954
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
6955
+ key?: string;
6956
+ /**
6957
+ * Required. The full resource name of the bucket to update. "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
6958
+ * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
6959
+ * "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" For example:"projects/my-project/locations/global/buckets/my-bucket"
6960
+ */
6961
+ name: string;
6962
+ /** OAuth 2.0 token for the current user. */
6963
+ oauth_token?: string;
6964
+ /** Returns response with indentations and line breaks. */
6965
+ prettyPrint?: boolean;
6966
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
6967
+ quotaUser?: string;
6968
+ /**
6969
+ * Required. Field mask that specifies the fields in bucket that need an update. A bucket field will be overwritten if, and only if, it is in the update mask. name and output only
6970
+ * fields cannot be updated.For a detailed FieldMask definition, see: https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskFor
6971
+ * example: updateMask=retention_days
6972
+ */
6973
+ updateMask?: string;
6974
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
6975
+ upload_protocol?: string;
6976
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
6977
+ uploadType?: string;
6978
+ },
6979
+ body: LogBucket): Request<Operation>;
6390
6980
  views: ViewsResource;
6391
6981
  }
6392
6982
  interface OperationsResource {
@@ -7866,6 +8456,66 @@ declare namespace gapi.client {
7866
8456
  uploadType?: string;
7867
8457
  },
7868
8458
  body: LogBucket): Request<LogBucket>;
8459
+ /** Creates a log bucket asynchronously that can be used to store log entries.After a bucket has been created, the bucket's location cannot be changed. */
8460
+ createAsync(request: {
8461
+ /** V1 error format. */
8462
+ "$.xgafv"?: string;
8463
+ /** OAuth access token. */
8464
+ access_token?: string;
8465
+ /** Data format for response. */
8466
+ alt?: string;
8467
+ /** Required. A client-assigned identifier such as "my-bucket". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods. */
8468
+ bucketId?: string;
8469
+ /** JSONP */
8470
+ callback?: string;
8471
+ /** Selector specifying which fields to include in a partial response. */
8472
+ fields?: string;
8473
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
8474
+ key?: string;
8475
+ /** OAuth 2.0 token for the current user. */
8476
+ oauth_token?: string;
8477
+ /** Required. The resource in which to create the log bucket: "projects/[PROJECT_ID]/locations/[LOCATION_ID]" For example:"projects/my-project/locations/global" */
8478
+ parent: string;
8479
+ /** Returns response with indentations and line breaks. */
8480
+ prettyPrint?: boolean;
8481
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
8482
+ quotaUser?: string;
8483
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
8484
+ upload_protocol?: string;
8485
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
8486
+ uploadType?: string;
8487
+ /** Request body */
8488
+ resource: LogBucket;
8489
+ }): Request<Operation>;
8490
+ createAsync(request: {
8491
+ /** V1 error format. */
8492
+ "$.xgafv"?: string;
8493
+ /** OAuth access token. */
8494
+ access_token?: string;
8495
+ /** Data format for response. */
8496
+ alt?: string;
8497
+ /** Required. A client-assigned identifier such as "my-bucket". Identifiers are limited to 100 characters and can include only letters, digits, underscores, hyphens, and periods. */
8498
+ bucketId?: string;
8499
+ /** JSONP */
8500
+ callback?: string;
8501
+ /** Selector specifying which fields to include in a partial response. */
8502
+ fields?: string;
8503
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
8504
+ key?: string;
8505
+ /** OAuth 2.0 token for the current user. */
8506
+ oauth_token?: string;
8507
+ /** Required. The resource in which to create the log bucket: "projects/[PROJECT_ID]/locations/[LOCATION_ID]" For example:"projects/my-project/locations/global" */
8508
+ parent: string;
8509
+ /** Returns response with indentations and line breaks. */
8510
+ prettyPrint?: boolean;
8511
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
8512
+ quotaUser?: string;
8513
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
8514
+ upload_protocol?: string;
8515
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
8516
+ uploadType?: string;
8517
+ },
8518
+ body: LogBucket): Request<Operation>;
7869
8519
  /**
7870
8520
  * Deletes a log bucket.Changes the bucket's lifecycle_state to the DELETE_REQUESTED state. After 7 days, the bucket will be purged and all log entries in the bucket will be
7871
8521
  * permanently deleted.
@@ -7973,9 +8623,8 @@ declare namespace gapi.client {
7973
8623
  uploadType?: string;
7974
8624
  }): Request<ListBucketsResponse>;
7975
8625
  /**
7976
- * Updates a log bucket. This method replaces the following fields in the existing bucket with values from the new bucket: retention_periodIf the retention period is decreased and the
7977
- * bucket is locked, FAILED_PRECONDITION will be returned.If the bucket has a lifecycle_state of DELETE_REQUESTED, then FAILED_PRECONDITION will be returned.After a bucket has been
7978
- * created, the bucket's location cannot be changed.
8626
+ * Updates a log bucket.If the bucket has a lifecycle_state of DELETE_REQUESTED, then FAILED_PRECONDITION will be returned.After a bucket has been created, the bucket's location cannot
8627
+ * be changed.
7979
8628
  */
7980
8629
  patch(request: {
7981
8630
  /** V1 error format. */
@@ -8116,6 +8765,85 @@ declare namespace gapi.client {
8116
8765
  uploadType?: string;
8117
8766
  },
8118
8767
  body: UndeleteBucketRequest): Request<{}>;
8768
+ /**
8769
+ * Updates a log bucket asynchronously.If the bucket has a lifecycle_state of DELETE_REQUESTED, then FAILED_PRECONDITION will be returned.After a bucket has been created, the bucket's
8770
+ * location cannot be changed.
8771
+ */
8772
+ updateAsync(request: {
8773
+ /** V1 error format. */
8774
+ "$.xgafv"?: string;
8775
+ /** OAuth access token. */
8776
+ access_token?: string;
8777
+ /** Data format for response. */
8778
+ alt?: string;
8779
+ /** JSONP */
8780
+ callback?: string;
8781
+ /** Selector specifying which fields to include in a partial response. */
8782
+ fields?: string;
8783
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
8784
+ key?: string;
8785
+ /**
8786
+ * Required. The full resource name of the bucket to update. "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
8787
+ * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
8788
+ * "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" For example:"projects/my-project/locations/global/buckets/my-bucket"
8789
+ */
8790
+ name: string;
8791
+ /** OAuth 2.0 token for the current user. */
8792
+ oauth_token?: string;
8793
+ /** Returns response with indentations and line breaks. */
8794
+ prettyPrint?: boolean;
8795
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
8796
+ quotaUser?: string;
8797
+ /**
8798
+ * Required. Field mask that specifies the fields in bucket that need an update. A bucket field will be overwritten if, and only if, it is in the update mask. name and output only
8799
+ * fields cannot be updated.For a detailed FieldMask definition, see: https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskFor
8800
+ * example: updateMask=retention_days
8801
+ */
8802
+ updateMask?: string;
8803
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
8804
+ upload_protocol?: string;
8805
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
8806
+ uploadType?: string;
8807
+ /** Request body */
8808
+ resource: LogBucket;
8809
+ }): Request<Operation>;
8810
+ updateAsync(request: {
8811
+ /** V1 error format. */
8812
+ "$.xgafv"?: string;
8813
+ /** OAuth access token. */
8814
+ access_token?: string;
8815
+ /** Data format for response. */
8816
+ alt?: string;
8817
+ /** JSONP */
8818
+ callback?: string;
8819
+ /** Selector specifying which fields to include in a partial response. */
8820
+ fields?: string;
8821
+ /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
8822
+ key?: string;
8823
+ /**
8824
+ * Required. The full resource name of the bucket to update. "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
8825
+ * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
8826
+ * "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" For example:"projects/my-project/locations/global/buckets/my-bucket"
8827
+ */
8828
+ name: string;
8829
+ /** OAuth 2.0 token for the current user. */
8830
+ oauth_token?: string;
8831
+ /** Returns response with indentations and line breaks. */
8832
+ prettyPrint?: boolean;
8833
+ /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
8834
+ quotaUser?: string;
8835
+ /**
8836
+ * Required. Field mask that specifies the fields in bucket that need an update. A bucket field will be overwritten if, and only if, it is in the update mask. name and output only
8837
+ * fields cannot be updated.For a detailed FieldMask definition, see: https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskFor
8838
+ * example: updateMask=retention_days
8839
+ */
8840
+ updateMask?: string;
8841
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
8842
+ upload_protocol?: string;
8843
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
8844
+ uploadType?: string;
8845
+ },
8846
+ body: LogBucket): Request<Operation>;
8119
8847
  views: ViewsResource;
8120
8848
  }
8121
8849
  interface OperationsResource {