google-apis-adexchangebuyer2_v2beta1 0.3.0 → 0.8.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: 57485a17356cb015a0e5ff774265f507650f77377eb2f9eb9485b72b49ade187
4
- data.tar.gz: 8b7db5bf1a8c7c6bd453ca97d8ca23d4ad8c234c7f7e8e7703e149c91dd1d78b
3
+ metadata.gz: ea60aac0d1c9d0f1280214f88b4c11244845b6f895d53f86f31ff06a90c21d43
4
+ data.tar.gz: ab505dd38c29c8587027e9b2ab3a0043bd7af3e46e8dc976dcbe16b5ccc3a476
5
5
  SHA512:
6
- metadata.gz: 7b5962bf1134e3a8c5180c9796603cefafab8aa9bf0432d52a631b70faa10262805763316e175caa7cb637baa073142986b89d28d8de493ce4f7f19bb3e27aea
7
- data.tar.gz: b2068b19880aa8cbf3617316ccd75f08864af03c0dff83c11cdc9f8fc02aefbb7fd8fa3e9cc37f9e1676c73e75d63db54c43f431698ef0f63fd0314cb1956097
6
+ metadata.gz: 552330e997b7a1cfebde8ddac1e3ce181f2a7d7a5c5ea2acc72c0806a583fb66d6a9fe8e50cf492858b0e46440c0ad93a3083eb9d8182708dfb0b2eb9e33e5c0
7
+ data.tar.gz: ab8f611a48fb3546b10cf95a1b79ab84d79f83ae4396d3b7f8919994abf018ce18f981349fb60299b48f5249976a3acae33749d8d34e3832feecb8ef52e12942
data/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Release history for google-apis-adexchangebuyer2_v2beta1
2
2
 
3
+ ### v0.8.0 (2021-06-29)
4
+
5
+ * Regenerated using generator version 0.4.0
6
+
7
+ ### v0.7.0 (2021-06-24)
8
+
9
+ * Unspecified changes
10
+
11
+ ### v0.6.0 (2021-06-15)
12
+
13
+ * Regenerated from discovery document revision 20210613
14
+ * Regenerated using generator version 0.3.0
15
+
16
+ ### v0.5.0 (2021-05-26)
17
+
18
+ * Regenerated from discovery document revision 20210525
19
+
20
+ ### v0.4.0 (2021-05-19)
21
+
22
+ * Unspecified changes
23
+
3
24
  ### v0.3.0 (2021-04-29)
4
25
 
5
26
  * Regenerated from discovery document revision 20210428
@@ -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.3.0"
19
+ GEM_VERSION = "0.8.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.2.0"
22
+ GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210428"
25
+ REVISION = "20210613"
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 running deals or deals paused by the other party. It is an
902
+ # error to call ResumeProposalDeals for deals which are not part of the proposal
903
+ # of 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,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-adexchangebuyer2_v2beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.8.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-18 00:00:00.000000000 Z
11
+ date: 2021-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.1'
19
+ version: '0.4'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: 2.a
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '0.4'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '0.1'
32
+ version: 2.a
27
33
  description: This is the simple REST client for Ad Exchange Buyer API II V2beta1.
28
34
  Simple REST clients are Ruby client libraries that provide access to Google services
29
35
  via their HTTP REST API endpoints. These libraries are generated and updated automatically
@@ -52,7 +58,7 @@ licenses:
52
58
  metadata:
53
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
60
  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.3.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-adexchangebuyer2_v2beta1/v0.8.0
56
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-adexchangebuyer2_v2beta1
57
63
  post_install_message:
58
64
  rdoc_options: []