google-apis-adexchangebuyer2_v2beta1 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f1d982e700111c8af27c84f8daf1d7851755cae265171cbcb17098b1a257c2fb
4
- data.tar.gz: b4a8000a9da2c4597ba6892ca05e9514495ad0dbf90e4da9bff3ad70df7f52c9
3
+ metadata.gz: '0869132940dd68a3f5a9fff4149866b6f07f0100ce075db9cb6a4abbf73c62f4'
4
+ data.tar.gz: 233d76fd888c2fc34b0ed18aab4b18db20f9cbd724f21a7b5a3c81085a5a2a19
5
5
  SHA512:
6
- metadata.gz: 0d2af7ae3b540d8a51c340819d56a1b7965a7a5402078d30ffb2e57e9623e88bda8dc9bc4ecd8b2052b8d85c04c3084414fbc33816df28150296f169fa71305c
7
- data.tar.gz: de99e21b4c4ee4df899c74f9661bc8a94466695d30fd40143a86c263123de3d3571ba3c48b8df89326ddc2c3465964fccbaa2b2b5b3fe5f84e3566b34141a898
6
+ metadata.gz: 3d9b163cd0c1dec66a6aa2e5038e5fa0de43988bc4068cc4e760f1ee3a15a892ad737210ba87c87154fd9c7304b1cb705f73c0cb899cac19fd5c009f93d4680b
7
+ data.tar.gz: c56d6b3d7198c36b600157f4664042f44cc9afbc0c22f37e7e59260d9b49a65ca821c73ed1bac42445ced491cfd426e3b54fbdfc94410012fadf2d6b22b53add
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-adexchangebuyer2_v2beta1
2
2
 
3
+ ### v0.5.0 (2021-05-26)
4
+
5
+ * Regenerated from discovery document revision 20210525
6
+
3
7
  ### v0.4.0 (2021-05-19)
4
8
 
5
9
  * Unspecified changes
@@ -2969,6 +2969,33 @@ module Google
2969
2969
  end
2970
2970
  end
2971
2971
 
2972
+ # Request message to pause serving for finalized deals.
2973
+ class PauseProposalDealsRequest
2974
+ include Google::Apis::Core::Hashable
2975
+
2976
+ # The external_deal_id's of the deals to be paused. If empty, all the deals in
2977
+ # the proposal will be paused.
2978
+ # Corresponds to the JSON property `externalDealIds`
2979
+ # @return [Array<String>]
2980
+ attr_accessor :external_deal_ids
2981
+
2982
+ # The reason why the deals are being paused. This human readable message will be
2983
+ # displayed in the seller's UI. (Max length: 1000 unicode code units.)
2984
+ # Corresponds to the JSON property `reason`
2985
+ # @return [String]
2986
+ attr_accessor :reason
2987
+
2988
+ def initialize(**args)
2989
+ update!(**args)
2990
+ end
2991
+
2992
+ # Update properties of this object
2993
+ def update!(**args)
2994
+ @external_deal_ids = args[:external_deal_ids] if args.key?(:external_deal_ids)
2995
+ @reason = args[:reason] if args.key?(:reason)
2996
+ end
2997
+ end
2998
+
2972
2999
  # Request message to pause serving for an already-finalized proposal.
2973
3000
  class PauseProposalRequest
2974
3001
  include Google::Apis::Core::Hashable
@@ -3619,6 +3646,26 @@ module Google
3619
3646
  end
3620
3647
  end
3621
3648
 
3649
+ # Request message to resume (unpause) serving for already-finalized deals.
3650
+ class ResumeProposalDealsRequest
3651
+ include Google::Apis::Core::Hashable
3652
+
3653
+ # The external_deal_id's of the deals to resume. If empty, all the deals in the
3654
+ # proposal will be resumed.
3655
+ # Corresponds to the JSON property `externalDealIds`
3656
+ # @return [Array<String>]
3657
+ attr_accessor :external_deal_ids
3658
+
3659
+ def initialize(**args)
3660
+ update!(**args)
3661
+ end
3662
+
3663
+ # Update properties of this object
3664
+ def update!(**args)
3665
+ @external_deal_ids = args[:external_deal_ids] if args.key?(:external_deal_ids)
3666
+ end
3667
+ end
3668
+
3622
3669
  # Request message to resume (unpause) serving for an already-finalized proposal.
3623
3670
  class ResumeProposalRequest
3624
3671
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module Adexchangebuyer2V2beta1
18
18
  # Version of the google-apis-adexchangebuyer2_v2beta1 gem
19
- GEM_VERSION = "0.4.0"
19
+ GEM_VERSION = "0.5.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210428"
25
+ REVISION = "20210525"
26
26
  end
27
27
  end
28
28
  end
@@ -478,6 +478,12 @@ module Google
478
478
  include Google::Apis::Core::JsonObjectSupport
479
479
  end
480
480
 
481
+ class PauseProposalDealsRequest
482
+ class Representation < Google::Apis::Core::JsonRepresentation; end
483
+
484
+ include Google::Apis::Core::JsonObjectSupport
485
+ end
486
+
481
487
  class PauseProposalRequest
482
488
  class Representation < Google::Apis::Core::JsonRepresentation; end
483
489
 
@@ -556,6 +562,12 @@ module Google
556
562
  include Google::Apis::Core::JsonObjectSupport
557
563
  end
558
564
 
565
+ class ResumeProposalDealsRequest
566
+ class Representation < Google::Apis::Core::JsonRepresentation; end
567
+
568
+ include Google::Apis::Core::JsonObjectSupport
569
+ end
570
+
559
571
  class ResumeProposalRequest
560
572
  class Representation < Google::Apis::Core::JsonRepresentation; end
561
573
 
@@ -1480,6 +1492,14 @@ module Google
1480
1492
  end
1481
1493
  end
1482
1494
 
1495
+ class PauseProposalDealsRequest
1496
+ # @private
1497
+ class Representation < Google::Apis::Core::JsonRepresentation
1498
+ collection :external_deal_ids, as: 'externalDealIds'
1499
+ property :reason, as: 'reason'
1500
+ end
1501
+ end
1502
+
1483
1503
  class PauseProposalRequest
1484
1504
  # @private
1485
1505
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1646,6 +1666,13 @@ module Google
1646
1666
  end
1647
1667
  end
1648
1668
 
1669
+ class ResumeProposalDealsRequest
1670
+ # @private
1671
+ class Representation < Google::Apis::Core::JsonRepresentation
1672
+ collection :external_deal_ids, as: 'externalDealIds'
1673
+ end
1674
+ end
1675
+
1649
1676
  class ResumeProposalRequest
1650
1677
  # @private
1651
1678
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -852,6 +852,90 @@ module Google
852
852
  execute_or_queue_command(command, &block)
853
853
  end
854
854
 
855
+ # Update given deals to pause serving. This method will set the `
856
+ # DealServingMetadata.DealPauseStatus.has_buyer_paused` bit to true for all
857
+ # listed deals in the request. Currently, this method only applies to PG and PD
858
+ # deals. For PA deals, please call accounts.proposals.pause endpoint. It is a no-
859
+ # op to pause already-paused deals. It is an error to call PauseProposalDeals
860
+ # for deals which are not part of the proposal of proposal_id or which are not
861
+ # finalized or renegotiating.
862
+ # @param [String] account_id
863
+ # Account ID of the buyer.
864
+ # @param [String] proposal_id
865
+ # The proposal_id of the proposal containing the deals.
866
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::PauseProposalDealsRequest] pause_proposal_deals_request_object
867
+ # @param [String] fields
868
+ # Selector specifying which fields to include in a partial response.
869
+ # @param [String] quota_user
870
+ # Available to use for quota purposes for server-side applications. Can be any
871
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
872
+ # @param [Google::Apis::RequestOptions] options
873
+ # Request-specific options
874
+ #
875
+ # @yield [result, err] Result & error if block supplied
876
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Proposal] parsed result object
877
+ # @yieldparam err [StandardError] error object if request failed
878
+ #
879
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Proposal]
880
+ #
881
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
882
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
883
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
884
+ def pause_finalized_proposal_proposal_deals(account_id, proposal_id, pause_proposal_deals_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
885
+ command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/finalizedProposals/{proposalId}:pause', options)
886
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::PauseProposalDealsRequest::Representation
887
+ command.request_object = pause_proposal_deals_request_object
888
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Proposal::Representation
889
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Proposal
890
+ command.params['accountId'] = account_id unless account_id.nil?
891
+ command.params['proposalId'] = proposal_id unless proposal_id.nil?
892
+ command.query['fields'] = fields unless fields.nil?
893
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
894
+ execute_or_queue_command(command, &block)
895
+ end
896
+
897
+ # Update given deals to resume serving. This method will set the `
898
+ # DealServingMetadata.DealPauseStatus.has_buyer_paused` bit to false for all
899
+ # listed deals in the request. Currently, this method only applies to PG and PD
900
+ # deals. For PA deals, please call accounts.proposals.resume endpoint. It is a
901
+ # no-op to resume already-running deals. It is an error to call
902
+ # ResumeProposalDeals for deals which are not part of the proposal of
903
+ # proposal_id or which are not finalized or renegotiating.
904
+ # @param [String] account_id
905
+ # Account ID of the buyer.
906
+ # @param [String] proposal_id
907
+ # The proposal_id of the proposal containing the deals.
908
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::ResumeProposalDealsRequest] resume_proposal_deals_request_object
909
+ # @param [String] fields
910
+ # Selector specifying which fields to include in a partial response.
911
+ # @param [String] quota_user
912
+ # Available to use for quota purposes for server-side applications. Can be any
913
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
914
+ # @param [Google::Apis::RequestOptions] options
915
+ # Request-specific options
916
+ #
917
+ # @yield [result, err] Result & error if block supplied
918
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Proposal] parsed result object
919
+ # @yieldparam err [StandardError] error object if request failed
920
+ #
921
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Proposal]
922
+ #
923
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
924
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
925
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
926
+ def resume_finalized_proposal_proposal_deals(account_id, proposal_id, resume_proposal_deals_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
927
+ command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/finalizedProposals/{proposalId}:resume', options)
928
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::ResumeProposalDealsRequest::Representation
929
+ command.request_object = resume_proposal_deals_request_object
930
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Proposal::Representation
931
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Proposal
932
+ command.params['accountId'] = account_id unless account_id.nil?
933
+ command.params['proposalId'] = proposal_id unless proposal_id.nil?
934
+ command.query['fields'] = fields unless fields.nil?
935
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
936
+ execute_or_queue_command(command, &block)
937
+ end
938
+
855
939
  # Gets the requested product by ID.
856
940
  # @param [String] account_id
857
941
  # Account ID of the buyer.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-adexchangebuyer2_v2beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-24 00:00:00.000000000 Z
11
+ date: 2021-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-adexchangebuyer2_v2beta1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-adexchangebuyer2_v2beta1/v0.4.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-adexchangebuyer2_v2beta1/v0.5.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-adexchangebuyer2_v2beta1
57
57
  post_install_message:
58
58
  rdoc_options: []