@@ -446,6 +446,29 @@ export namespace bigquerydatatransfer_v1 {
446
446
*/
447
447
runs ?: Schema$TransferRun [ ] ;
448
448
}
449
+ /**
450
+ * A request to start manual transfer runs.
451
+ */
452
+ export interface Schema$StartManualTransferRunsRequest {
453
+ /**
454
+ * Specific run_time for a transfer run to be started. The
455
+ * requested_run_time must not be in the future.
456
+ */
457
+ requestedRunTime ?: string ;
458
+ /**
459
+ * Time range for the transfer runs that should be started.
460
+ */
461
+ requestedTimeRange ?: Schema$TimeRange ;
462
+ }
463
+ /**
464
+ * A response to start manual transfer runs.
465
+ */
466
+ export interface Schema$StartManualTransferRunsResponse {
467
+ /**
468
+ * The transfer runs that were created.
469
+ */
470
+ runs ?: Schema$TransferRun [ ] ;
471
+ }
449
472
/**
450
473
* The `Status` type defines a logical error model that is suitable for
451
474
* different programming environments, including REST APIs and RPC APIs. It is
@@ -499,6 +522,26 @@ export namespace bigquerydatatransfer_v1 {
499
522
*/
500
523
message ?: string ;
501
524
}
525
+ /**
526
+ * A specification for a time range, this will request transfer runs with
527
+ * run_time between start_time (inclusive) and end_time (exclusive).
528
+ */
529
+ export interface Schema$TimeRange {
530
+ /**
531
+ * End time of the range of transfer runs. For example,
532
+ * `"2017-05-30T00:00:00+00:00"`. The end_time must not be in the
533
+ * future. Creates transfer runs where run_time is in the range betwen
534
+ * start_time (inclusive) and end_time (exlusive).
535
+ */
536
+ endTime ?: string ;
537
+ /**
538
+ * Start time of the range of transfer runs. For example,
539
+ * `"2017-05-25T00:00:00+00:00"`. The start_time must be strictly
540
+ * less than the end_time. Creates transfer runs where run_time is in the
541
+ * range betwen start_time (inclusive) and end_time (exlusive).
542
+ */
543
+ startTime ?: string ;
544
+ }
502
545
/**
503
546
* Represents a data transfer configuration. A transfer configuration contains
504
547
* all metadata needed to perform a data transfer. For example,
@@ -1776,7 +1819,7 @@ export namespace bigquerydatatransfer_v1 {
1776
1819
* @desc Creates transfer runs for a time range [start_time, end_time]. For
1777
1820
* each date - or whatever granularity the data source supports - in the
1778
1821
* range, one transfer run is created. Note that runs are created per UTC
1779
- * time in the time range.
1822
+ * time in the time range. DEPRECATED: use StartManualTransferRuns instead.
1780
1823
* @alias
1781
1824
* bigquerydatatransfer.projects.locations.transferConfigs.scheduleRuns
1782
1825
* @memberOf ! ()
@@ -1853,6 +1896,93 @@ export namespace bigquerydatatransfer_v1 {
1853
1896
parameters ) ;
1854
1897
}
1855
1898
}
1899
+
1900
+
1901
+ /**
1902
+ * bigquerydatatransfer.projects.locations.transferConfigs.startManualRuns
1903
+ * @desc Start manual transfer runs to be executed now with schedule_time
1904
+ * equal to current time. The transfer runs can be created for a time range
1905
+ * where the run_time is between start_time (inclusive) and end_time
1906
+ * (exclusive), or for a specific run_time.
1907
+ * @alias
1908
+ * bigquerydatatransfer.projects.locations.transferConfigs.startManualRuns
1909
+ * @memberOf ! ()
1910
+ *
1911
+ * @param {object } params Parameters for request
1912
+ * @param {string } params.parent Transfer configuration name in the form: `projects/{project_id}/transferConfigs/{config_id}`.
1913
+ * @param {().StartManualTransferRunsRequest } params.resource Request body data
1914
+ * @param {object } [options] Optionally override request options, such as `url`, `method`, and `encoding`.
1915
+ * @param {callback } callback The callback that handles the response.
1916
+ * @return {object } Request object
1917
+ */
1918
+ startManualRuns (
1919
+ params ?:
1920
+ Params$Resource$Projects$Locations$Transferconfigs$Startmanualruns ,
1921
+ options ?: MethodOptions ) :
1922
+ GaxiosPromise < Schema$StartManualTransferRunsResponse > ;
1923
+ startManualRuns (
1924
+ params :
1925
+ Params$Resource$Projects$Locations$Transferconfigs$Startmanualruns ,
1926
+ options : MethodOptions |
1927
+ BodyResponseCallback < Schema$StartManualTransferRunsResponse > ,
1928
+ callback : BodyResponseCallback < Schema$StartManualTransferRunsResponse > ) :
1929
+ void ;
1930
+ startManualRuns (
1931
+ params :
1932
+ Params$Resource$Projects$Locations$Transferconfigs$Startmanualruns ,
1933
+ callback : BodyResponseCallback < Schema$StartManualTransferRunsResponse > ) :
1934
+ void ;
1935
+ startManualRuns (
1936
+ callback : BodyResponseCallback < Schema$StartManualTransferRunsResponse > ) :
1937
+ void ;
1938
+ startManualRuns (
1939
+ paramsOrCallback ?:
1940
+ Params$Resource$Projects$Locations$Transferconfigs$Startmanualruns |
1941
+ BodyResponseCallback < Schema$StartManualTransferRunsResponse > ,
1942
+ optionsOrCallback ?: MethodOptions |
1943
+ BodyResponseCallback < Schema$StartManualTransferRunsResponse > ,
1944
+ callback ?:
1945
+ BodyResponseCallback < Schema$StartManualTransferRunsResponse > ) :
1946
+ void | GaxiosPromise < Schema$StartManualTransferRunsResponse > {
1947
+ let params = ( paramsOrCallback || { } ) as
1948
+ Params$Resource$Projects$Locations$Transferconfigs$Startmanualruns ;
1949
+ let options = ( optionsOrCallback || { } ) as MethodOptions ;
1950
+
1951
+ if ( typeof paramsOrCallback === 'function' ) {
1952
+ callback = paramsOrCallback ;
1953
+ params = { } as
1954
+ Params$Resource$Projects$Locations$Transferconfigs$Startmanualruns ;
1955
+ options = { } ;
1956
+ }
1957
+
1958
+ if ( typeof optionsOrCallback === 'function' ) {
1959
+ callback = optionsOrCallback ;
1960
+ options = { } ;
1961
+ }
1962
+
1963
+ const rootUrl =
1964
+ options . rootUrl || 'https://bigquerydatatransfer.googleapis.com/' ;
1965
+ const parameters = {
1966
+ options : Object . assign (
1967
+ {
1968
+ url : ( rootUrl + '/v1/{+parent}:startManualRuns' )
1969
+ . replace ( / ( [ ^ : ] \/ ) \/ + / g, '$1' ) ,
1970
+ method : 'POST'
1971
+ } ,
1972
+ options ) ,
1973
+ params,
1974
+ requiredParams : [ 'parent' ] ,
1975
+ pathParams : [ 'parent' ] ,
1976
+ context
1977
+ } ;
1978
+ if ( callback ) {
1979
+ createAPIRequest < Schema$StartManualTransferRunsResponse > (
1980
+ parameters , callback ) ;
1981
+ } else {
1982
+ return createAPIRequest < Schema$StartManualTransferRunsResponse > (
1983
+ parameters ) ;
1984
+ }
1985
+ }
1856
1986
}
1857
1987
1858
1988
export interface Params$Resource$Projects$Locations$Transferconfigs$Create
@@ -2028,6 +2158,24 @@ export namespace bigquerydatatransfer_v1 {
2028
2158
*/
2029
2159
requestBody ?: Schema$ScheduleTransferRunsRequest ;
2030
2160
}
2161
+ export interface Params$Resource$Projects$Locations$Transferconfigs$Startmanualruns
2162
+ extends StandardParameters {
2163
+ /**
2164
+ * Auth client or API Key for the request
2165
+ */
2166
+ auth ?: string | OAuth2Client | JWT | Compute | UserRefreshClient ;
2167
+
2168
+ /**
2169
+ * Transfer configuration name in the form:
2170
+ * `projects/{project_id}/transferConfigs/{config_id}`.
2171
+ */
2172
+ parent ?: string ;
2173
+
2174
+ /**
2175
+ * Request body metadata
2176
+ */
2177
+ requestBody ?: Schema$StartManualTransferRunsRequest ;
2178
+ }
2031
2179
2032
2180
export class Resource$Projects$Locations$Transferconfigs$Runs {
2033
2181
transferLogs : Resource$Projects$Locations$Transferconfigs$Runs$Transferlogs ;
@@ -2784,7 +2932,7 @@ export namespace bigquerydatatransfer_v1 {
2784
2932
* @desc Creates transfer runs for a time range [start_time, end_time]. For
2785
2933
* each date - or whatever granularity the data source supports - in the
2786
2934
* range, one transfer run is created. Note that runs are created per UTC
2787
- * time in the time range.
2935
+ * time in the time range. DEPRECATED: use StartManualTransferRuns instead.
2788
2936
* @alias bigquerydatatransfer.projects.transferConfigs.scheduleRuns
2789
2937
* @memberOf ! ()
2790
2938
*
@@ -2858,6 +3006,88 @@ export namespace bigquerydatatransfer_v1 {
2858
3006
parameters ) ;
2859
3007
}
2860
3008
}
3009
+
3010
+
3011
+ /**
3012
+ * bigquerydatatransfer.projects.transferConfigs.startManualRuns
3013
+ * @desc Start manual transfer runs to be executed now with schedule_time
3014
+ * equal to current time. The transfer runs can be created for a time range
3015
+ * where the run_time is between start_time (inclusive) and end_time
3016
+ * (exclusive), or for a specific run_time.
3017
+ * @alias bigquerydatatransfer.projects.transferConfigs.startManualRuns
3018
+ * @memberOf ! ()
3019
+ *
3020
+ * @param {object } params Parameters for request
3021
+ * @param {string } params.parent Transfer configuration name in the form: `projects/{project_id}/transferConfigs/{config_id}`.
3022
+ * @param {().StartManualTransferRunsRequest } params.resource Request body data
3023
+ * @param {object } [options] Optionally override request options, such as `url`, `method`, and `encoding`.
3024
+ * @param {callback } callback The callback that handles the response.
3025
+ * @return {object } Request object
3026
+ */
3027
+ startManualRuns (
3028
+ params ?: Params$Resource$Projects$Transferconfigs$Startmanualruns ,
3029
+ options ?: MethodOptions ) :
3030
+ GaxiosPromise < Schema$StartManualTransferRunsResponse > ;
3031
+ startManualRuns (
3032
+ params : Params$Resource$Projects$Transferconfigs$Startmanualruns ,
3033
+ options : MethodOptions |
3034
+ BodyResponseCallback < Schema$StartManualTransferRunsResponse > ,
3035
+ callback : BodyResponseCallback < Schema$StartManualTransferRunsResponse > ) :
3036
+ void ;
3037
+ startManualRuns (
3038
+ params : Params$Resource$Projects$Transferconfigs$Startmanualruns ,
3039
+ callback : BodyResponseCallback < Schema$StartManualTransferRunsResponse > ) :
3040
+ void ;
3041
+ startManualRuns (
3042
+ callback : BodyResponseCallback < Schema$StartManualTransferRunsResponse > ) :
3043
+ void ;
3044
+ startManualRuns (
3045
+ paramsOrCallback ?:
3046
+ Params$Resource$Projects$Transferconfigs$Startmanualruns |
3047
+ BodyResponseCallback < Schema$StartManualTransferRunsResponse > ,
3048
+ optionsOrCallback ?: MethodOptions |
3049
+ BodyResponseCallback < Schema$StartManualTransferRunsResponse > ,
3050
+ callback ?:
3051
+ BodyResponseCallback < Schema$StartManualTransferRunsResponse > ) :
3052
+ void | GaxiosPromise < Schema$StartManualTransferRunsResponse > {
3053
+ let params = ( paramsOrCallback || { } ) as
3054
+ Params$Resource$Projects$Transferconfigs$Startmanualruns ;
3055
+ let options = ( optionsOrCallback || { } ) as MethodOptions ;
3056
+
3057
+ if ( typeof paramsOrCallback === 'function' ) {
3058
+ callback = paramsOrCallback ;
3059
+ params = { } as Params$Resource$Projects$Transferconfigs$Startmanualruns ;
3060
+ options = { } ;
3061
+ }
3062
+
3063
+ if ( typeof optionsOrCallback === 'function' ) {
3064
+ callback = optionsOrCallback ;
3065
+ options = { } ;
3066
+ }
3067
+
3068
+ const rootUrl =
3069
+ options . rootUrl || 'https://bigquerydatatransfer.googleapis.com/' ;
3070
+ const parameters = {
3071
+ options : Object . assign (
3072
+ {
3073
+ url : ( rootUrl + '/v1/{+parent}:startManualRuns' )
3074
+ . replace ( / ( [ ^ : ] \/ ) \/ + / g, '$1' ) ,
3075
+ method : 'POST'
3076
+ } ,
3077
+ options ) ,
3078
+ params,
3079
+ requiredParams : [ 'parent' ] ,
3080
+ pathParams : [ 'parent' ] ,
3081
+ context
3082
+ } ;
3083
+ if ( callback ) {
3084
+ createAPIRequest < Schema$StartManualTransferRunsResponse > (
3085
+ parameters , callback ) ;
3086
+ } else {
3087
+ return createAPIRequest < Schema$StartManualTransferRunsResponse > (
3088
+ parameters ) ;
3089
+ }
3090
+ }
2861
3091
}
2862
3092
2863
3093
export interface Params$Resource$Projects$Transferconfigs$Create extends
@@ -3033,6 +3263,24 @@ export namespace bigquerydatatransfer_v1 {
3033
3263
*/
3034
3264
requestBody ?: Schema$ScheduleTransferRunsRequest ;
3035
3265
}
3266
+ export interface Params$Resource$Projects$Transferconfigs$Startmanualruns
3267
+ extends StandardParameters {
3268
+ /**
3269
+ * Auth client or API Key for the request
3270
+ */
3271
+ auth ?: string | OAuth2Client | JWT | Compute | UserRefreshClient ;
3272
+
3273
+ /**
3274
+ * Transfer configuration name in the form:
3275
+ * `projects/{project_id}/transferConfigs/{config_id}`.
3276
+ */
3277
+ parent ?: string ;
3278
+
3279
+ /**
3280
+ * Request body metadata
3281
+ */
3282
+ requestBody ?: Schema$StartManualTransferRunsRequest ;
3283
+ }
3036
3284
3037
3285
export class Resource$Projects$Transferconfigs$Runs {
3038
3286
transferLogs : Resource$Projects$Transferconfigs$Runs$Transferlogs ;
0 commit comments