@@ -512,30 +512,35 @@ message CreateTransferConfigRequest {
512512 // Required. Data transfer configuration to create.
513513 TransferConfig transfer_config = 2 [(google.api.field_behavior ) = REQUIRED ];
514514
515+ // Deprecated: Authorization code was required when
516+ // `transferConfig.dataSourceId` is 'youtube_channel' but it is no longer used
517+ // in any data sources. Use `version_info` instead.
518+ //
515519 // Optional OAuth2 authorization code to use with this transfer configuration.
516520 // This is required only if `transferConfig.dataSourceId` is 'youtube_channel'
517521 // and new credentials are needed, as indicated by `CheckValidCreds`. In order
518522 // to obtain authorization_code, make a request to the following URL:
519523 // <pre class="prettyprint" suppresswarning="true">
520524 // https://bigquery.cloud.google.com/datatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
521525 // </pre>
522- // * The <var>client_id</var> is the OAuth client_id of the a data source as
526+ // * The <var>client_id</var> is the OAuth client_id of the data source as
523527 // returned by ListDataSources method.
524528 // * <var>data_source_scopes</var> are the scopes returned by ListDataSources
525529 // method.
526530 //
527531 // Note that this should not be set when `service_account_name` is used to
528532 // create the transfer config.
529- string authorization_code = 3 ;
533+ string authorization_code = 3 [ deprecated = true ] ;
530534
531- // Optional version info. This is required only if
532- // `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials
535+ // Optional version info. This parameter replaces `authorization_code` which
536+ // is no longer used in any data sources. This is required only if
537+ // `transferConfig.dataSourceId` is 'youtube_channel' *or* new credentials
533538 // are needed, as indicated by `CheckValidCreds`. In order to obtain version
534539 // info, make a request to the following URL:
535540 // <pre class="prettyprint" suppresswarning="true">
536541 // https://bigquery.cloud.google.com/datatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=version_info&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
537542 // </pre>
538- // * The <var>client_id</var> is the OAuth client_id of the a data source as
543+ // * The <var>client_id</var> is the OAuth client_id of the data source as
539544 // returned by ListDataSources method.
540545 // * <var>data_source_scopes</var> are the scopes returned by ListDataSources
541546 // method.
@@ -562,34 +567,39 @@ message UpdateTransferConfigRequest {
562567 // Required. Data transfer configuration to create.
563568 TransferConfig transfer_config = 1 [(google.api.field_behavior ) = REQUIRED ];
564569
570+ // Deprecated: Authorization code was required when
571+ // `transferConfig.dataSourceId` is 'youtube_channel' but it is no longer used
572+ // in any data sources. Use `version_info` instead.
573+ //
565574 // Optional OAuth2 authorization code to use with this transfer configuration.
566575 // This is required only if `transferConfig.dataSourceId` is 'youtube_channel'
567576 // and new credentials are needed, as indicated by `CheckValidCreds`. In order
568577 // to obtain authorization_code, make a request to the following URL:
569578 // <pre class="prettyprint" suppresswarning="true">
570579 // https://bigquery.cloud.google.com/datatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=authorization_code&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
571580 // </pre>
572- // * The <var>client_id</var> is the OAuth client_id of the a data source as
581+ // * The <var>client_id</var> is the OAuth client_id of the data source as
573582 // returned by ListDataSources method.
574583 // * <var>data_source_scopes</var> are the scopes returned by ListDataSources
575584 // method.
576585 //
577586 // Note that this should not be set when `service_account_name` is used to
578587 // update the transfer config.
579- string authorization_code = 3 ;
588+ string authorization_code = 3 [ deprecated = true ] ;
580589
581590 // Required. Required list of fields to be updated in this request.
582591 google.protobuf.FieldMask update_mask = 4
583592 [(google.api.field_behavior ) = REQUIRED ];
584593
585- // Optional version info. This is required only if
586- // `transferConfig.dataSourceId` is not 'youtube_channel' and new credentials
594+ // Optional version info. This parameter replaces `authorization_code` which
595+ // is no longer used in any data sources. This is required only if
596+ // `transferConfig.dataSourceId` is 'youtube_channel' *or* new credentials
587597 // are needed, as indicated by `CheckValidCreds`. In order to obtain version
588598 // info, make a request to the following URL:
589599 // <pre class="prettyprint" suppresswarning="true">
590600 // https://bigquery.cloud.google.com/datatransfer/oauthz/auth?redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=version_info&client_id=<var>client_id</var>&scope=<var>data_source_scopes</var>
591601 // </pre>
592- // * The <var>client_id</var> is the OAuth client_id of the a data source as
602+ // * The <var>client_id</var> is the OAuth client_id of the data source as
593603 // returned by ListDataSources method.
594604 // * <var>data_source_scopes</var> are the scopes returned by ListDataSources
595605 // method.
0 commit comments