Skip to content

Commit e0d60f1

Browse files
feat(dataproc): update the API
#### dataproc:v1 The following keys were added: - resources.projects.resources.locations.resources.operations.methods.list.parameters.returnPartialSuccess.description - resources.projects.resources.locations.resources.operations.methods.list.parameters.returnPartialSuccess.location - resources.projects.resources.locations.resources.operations.methods.list.parameters.returnPartialSuccess.type - resources.projects.resources.regions.resources.operations.methods.list.parameters.returnPartialSuccess.description - resources.projects.resources.regions.resources.operations.methods.list.parameters.returnPartialSuccess.location - resources.projects.resources.regions.resources.operations.methods.list.parameters.returnPartialSuccess.type - schemas.ListOperationsResponse.properties.unreachable.description - schemas.ListOperationsResponse.properties.unreachable.items.type - schemas.ListOperationsResponse.properties.unreachable.type - schemas.YarnApplication.properties.memoryMbSeconds.description - schemas.YarnApplication.properties.memoryMbSeconds.format - schemas.YarnApplication.properties.memoryMbSeconds.type - schemas.YarnApplication.properties.vcoreSeconds.description - schemas.YarnApplication.properties.vcoreSeconds.format - schemas.YarnApplication.properties.vcoreSeconds.type The following keys were changed: - schemas.GceClusterConfig.properties.resourceManagerTags.description - schemas.UsageMetrics.properties.acceleratorType.description - schemas.UsageMetrics.properties.milliAcceleratorSeconds.description
1 parent 9dae517 commit e0d60f1

File tree

2 files changed

+62
-9
lines changed

2 files changed

+62
-9
lines changed

discovery/dataproc-v1.json

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1613,6 +1613,11 @@
16131613
"description": "The standard list page token.",
16141614
"location": "query",
16151615
"type": "string"
1616+
},
1617+
"returnPartialSuccess": {
1618+
"description": "When set to true, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field.This can only be true when reading across collections e.g. when parent is set to \"projects/example/locations/-\".This field is not by default supported and will result in an UNIMPLEMENTED error if set unless explicitly documented otherwise in service or product specific documentation.",
1619+
"location": "query",
1620+
"type": "boolean"
16161621
}
16171622
},
16181623
"path": "v1/{+name}",
@@ -4636,6 +4641,11 @@
46364641
"description": "The standard list page token.",
46374642
"location": "query",
46384643
"type": "string"
4644+
},
4645+
"returnPartialSuccess": {
4646+
"description": "When set to true, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field.This can only be true when reading across collections e.g. when parent is set to \"projects/example/locations/-\".This field is not by default supported and will result in an UNIMPLEMENTED error if set unless explicitly documented otherwise in service or product specific documentation.",
4647+
"location": "query",
4648+
"type": "boolean"
46394649
}
46404650
},
46414651
"path": "v1/{+name}",
@@ -5012,7 +5022,7 @@
50125022
}
50135023
}
50145024
},
5015-
"revision": "20251001",
5025+
"revision": "20251003",
50165026
"rootUrl": "https://dataproc.googleapis.com/",
50175027
"schemas": {
50185028
"AcceleratorConfig": {
@@ -7083,7 +7093,7 @@
70837093
"additionalProperties": {
70847094
"type": "string"
70857095
},
7086-
"description": "Optional. Resource manager tags (https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing) to add to all instances (see Use secure tags in Dataproc (https://cloud.google.com/dataproc/docs/guides/attach-secure-tags)).",
7096+
"description": "Optional. Resource manager tags (https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing) to add to all instances (see Use secure tags in Dataproc (https://cloud.google.com/dataproc/docs/guides/use-secure-tags)).",
70877097
"type": "object"
70887098
},
70897099
"serviceAccount": {
@@ -8391,6 +8401,13 @@
83918401
"$ref": "Operation"
83928402
},
83938403
"type": "array"
8404+
},
8405+
"unreachable": {
8406+
"description": "Unordered list. Unreachable resources. Populated when the request sets ListOperationsRequest.return_partial_success and reads across collections e.g. when attempting to list all resources across all supported locations.",
8407+
"items": {
8408+
"type": "string"
8409+
},
8410+
"type": "array"
83948411
}
83958412
},
83968413
"type": "object"
@@ -12591,11 +12608,11 @@
1259112608
"id": "UsageMetrics",
1259212609
"properties": {
1259312610
"acceleratorType": {
12594-
"description": "Optional. Accelerator type being used, if any",
12611+
"description": "Optional. DEPRECATED Accelerator type being used, if any",
1259512612
"type": "string"
1259612613
},
1259712614
"milliAcceleratorSeconds": {
12598-
"description": "Optional. Accelerator usage in (milliAccelerator x seconds) (see Dataproc Serverless pricing (https://cloud.google.com/dataproc-serverless/pricing)).",
12615+
"description": "Optional. DEPRECATED Accelerator usage in (milliAccelerator x seconds) (see Dataproc Serverless pricing (https://cloud.google.com/dataproc-serverless/pricing)).",
1259912616
"format": "int64",
1260012617
"type": "string"
1260112618
},
@@ -13005,6 +13022,11 @@
1300513022
"description": "A YARN application created by a job. Application information is a subset of org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto.Beta Feature: This report is available for testing purposes only. It may be changed before final release.",
1300613023
"id": "YarnApplication",
1300713024
"properties": {
13025+
"memoryMbSeconds": {
13026+
"description": "Optional. The cumulative memory usage of the application for a job, measured in mb-seconds.",
13027+
"format": "int64",
13028+
"type": "string"
13029+
},
1300813030
"name": {
1300913031
"description": "Required. The application name.",
1301013032
"type": "string"
@@ -13043,6 +13065,11 @@
1304313065
"trackingUrl": {
1304413066
"description": "Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or TimelineServer that provides application-specific information. The URL uses the internal hostname, and requires a proxy server for resolution and, possibly, access.",
1304513067
"type": "string"
13068+
},
13069+
"vcoreSeconds": {
13070+
"description": "Optional. The cumulative CPU time consumed by the application for a job, measured in vcore-seconds.",
13071+
"format": "int64",
13072+
"type": "string"
1304613073
}
1304713074
},
1304813075
"type": "object"

src/apis/dataproc/v1.ts

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1288,7 +1288,7 @@ export namespace dataproc_v1 {
12881288
*/
12891289
reservationAffinity?: Schema$ReservationAffinity;
12901290
/**
1291-
* Optional. Resource manager tags (https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing) to add to all instances (see Use secure tags in Dataproc (https://cloud.google.com/dataproc/docs/guides/attach-secure-tags)).
1291+
* Optional. Resource manager tags (https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing) to add to all instances (see Use secure tags in Dataproc (https://cloud.google.com/dataproc/docs/guides/use-secure-tags)).
12921292
*/
12931293
resourceManagerTags?: {[key: string]: string} | null;
12941294
/**
@@ -2175,6 +2175,10 @@ export namespace dataproc_v1 {
21752175
* A list of operations that matches the specified filter in the request.
21762176
*/
21772177
operations?: Schema$Operation[];
2178+
/**
2179+
* Unordered list. Unreachable resources. Populated when the request sets ListOperationsRequest.return_partial_success and reads across collections e.g. when attempting to list all resources across all supported locations.
2180+
*/
2181+
unreachable?: string[] | null;
21782182
}
21792183
/**
21802184
* A list of interactive sessions.
@@ -4405,11 +4409,11 @@ export namespace dataproc_v1 {
44054409
*/
44064410
export interface Schema$UsageMetrics {
44074411
/**
4408-
* Optional. Accelerator type being used, if any
4412+
* Optional. DEPRECATED Accelerator type being used, if any
44094413
*/
44104414
acceleratorType?: string | null;
44114415
/**
4412-
* Optional. Accelerator usage in (milliAccelerator x seconds) (see Dataproc Serverless pricing (https://cloud.google.com/dataproc-serverless/pricing)).
4416+
* Optional. DEPRECATED Accelerator usage in (milliAccelerator x seconds) (see Dataproc Serverless pricing (https://cloud.google.com/dataproc-serverless/pricing)).
44134417
*/
44144418
milliAcceleratorSeconds?: string | null;
44154419
/**
@@ -4690,6 +4694,10 @@ export namespace dataproc_v1 {
46904694
* A YARN application created by a job. Application information is a subset of org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto.Beta Feature: This report is available for testing purposes only. It may be changed before final release.
46914695
*/
46924696
export interface Schema$YarnApplication {
4697+
/**
4698+
* Optional. The cumulative memory usage of the application for a job, measured in mb-seconds.
4699+
*/
4700+
memoryMbSeconds?: string | null;
46934701
/**
46944702
* Required. The application name.
46954703
*/
@@ -4706,6 +4714,10 @@ export namespace dataproc_v1 {
47064714
* Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or TimelineServer that provides application-specific information. The URL uses the internal hostname, and requires a proxy server for resolution and, possibly, access.
47074715
*/
47084716
trackingUrl?: string | null;
4717+
/**
4718+
* Optional. The cumulative CPU time consumed by the application for a job, measured in vcore-seconds.
4719+
*/
4720+
vcoreSeconds?: string | null;
47094721
}
47104722

47114723
export class Resource$Projects {
@@ -10848,13 +10860,16 @@ export namespace dataproc_v1 {
1084810860
* pageSize: 'placeholder-value',
1084910861
* // The standard list page token.
1085010862
* pageToken: 'placeholder-value',
10863+
* // When set to true, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field.This can only be true when reading across collections e.g. when parent is set to "projects/example/locations/-".This field is not by default supported and will result in an UNIMPLEMENTED error if set unless explicitly documented otherwise in service or product specific documentation.
10864+
* returnPartialSuccess: 'placeholder-value',
1085110865
* });
1085210866
* console.log(res.data);
1085310867
*
1085410868
* // Example response
1085510869
* // {
1085610870
* // "nextPageToken": "my_nextPageToken",
10857-
* // "operations": []
10871+
* // "operations": [],
10872+
* // "unreachable": []
1085810873
* // }
1085910874
* }
1086010875
*
@@ -10992,6 +11007,10 @@ export namespace dataproc_v1 {
1099211007
* The standard list page token.
1099311008
*/
1099411009
pageToken?: string;
11010+
/**
11011+
* When set to true, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field.This can only be true when reading across collections e.g. when parent is set to "projects/example/locations/-".This field is not by default supported and will result in an UNIMPLEMENTED error if set unless explicitly documented otherwise in service or product specific documentation.
11012+
*/
11013+
returnPartialSuccess?: boolean;
1099511014
}
1099611015

1099711016
export class Resource$Projects$Locations$Sessions {
@@ -24465,13 +24484,16 @@ export namespace dataproc_v1 {
2446524484
* pageSize: 'placeholder-value',
2446624485
* // The standard list page token.
2446724486
* pageToken: 'placeholder-value',
24487+
* // When set to true, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field.This can only be true when reading across collections e.g. when parent is set to "projects/example/locations/-".This field is not by default supported and will result in an UNIMPLEMENTED error if set unless explicitly documented otherwise in service or product specific documentation.
24488+
* returnPartialSuccess: 'placeholder-value',
2446824489
* });
2446924490
* console.log(res.data);
2447024491
*
2447124492
* // Example response
2447224493
* // {
2447324494
* // "nextPageToken": "my_nextPageToken",
24474-
* // "operations": []
24495+
* // "operations": [],
24496+
* // "unreachable": []
2447524497
* // }
2447624498
* }
2447724499
*
@@ -24918,6 +24940,10 @@ export namespace dataproc_v1 {
2491824940
* The standard list page token.
2491924941
*/
2492024942
pageToken?: string;
24943+
/**
24944+
* When set to true, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field.This can only be true when reading across collections e.g. when parent is set to "projects/example/locations/-".This field is not by default supported and will result in an UNIMPLEMENTED error if set unless explicitly documented otherwise in service or product specific documentation.
24945+
*/
24946+
returnPartialSuccess?: boolean;
2492124947
}
2492224948
export interface Params$Resource$Projects$Regions$Operations$Setiampolicy
2492324949
extends StandardParameters {

0 commit comments

Comments
 (0)