google-cloud-commerce-consumer-procurement-v1 1.0.2 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (25) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +4 -4
  3. data/README.md +3 -3
  4. data/lib/google/cloud/commerce/consumer/procurement/v1/consumer_procurement_service/client.rb +224 -1
  5. data/lib/google/cloud/commerce/consumer/procurement/v1/consumer_procurement_service/rest/client.rb +210 -1
  6. data/lib/google/cloud/commerce/consumer/procurement/v1/consumer_procurement_service/rest/service_stub.rb +120 -0
  7. data/lib/google/cloud/commerce/consumer/procurement/v1/license_management_service/client.rb +825 -0
  8. data/lib/google/cloud/commerce/consumer/procurement/v1/license_management_service/credentials.rb +51 -0
  9. data/lib/google/cloud/commerce/consumer/procurement/v1/license_management_service/paths.rb +54 -0
  10. data/lib/google/cloud/commerce/consumer/procurement/v1/license_management_service/rest/client.rb +764 -0
  11. data/lib/google/cloud/commerce/consumer/procurement/v1/license_management_service/rest/service_stub.rb +371 -0
  12. data/lib/google/cloud/commerce/consumer/procurement/v1/license_management_service/rest.rb +56 -0
  13. data/lib/google/cloud/commerce/consumer/procurement/v1/license_management_service.rb +59 -0
  14. data/lib/google/cloud/commerce/consumer/procurement/v1/license_management_service_pb.rb +69 -0
  15. data/lib/google/cloud/commerce/consumer/procurement/v1/license_management_service_services_pb.rb +57 -0
  16. data/lib/google/cloud/commerce/consumer/procurement/v1/procurement_service_pb.rb +8 -1
  17. data/lib/google/cloud/commerce/consumer/procurement/v1/procurement_service_services_pb.rb +7 -0
  18. data/lib/google/cloud/commerce/consumer/procurement/v1/rest.rb +2 -1
  19. data/lib/google/cloud/commerce/consumer/procurement/v1/version.rb +1 -1
  20. data/lib/google/cloud/commerce/consumer/procurement/v1.rb +3 -2
  21. data/proto_docs/google/cloud/commerce/consumer/procurement/v1/license_management_service.rb +196 -0
  22. data/proto_docs/google/cloud/commerce/consumer/procurement/v1/order.rb +14 -10
  23. data/proto_docs/google/cloud/commerce/consumer/procurement/v1/procurement_service.rb +115 -1
  24. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  25. metadata +14 -3
@@ -12,7 +12,7 @@ require 'google/cloud/commerce/consumer/procurement/v1/order_pb'
12
12
  require 'google/longrunning/operations_pb'
13
13
 
14
14
 
15
- descriptor_data = "\nGgoogle/cloud/commerce/consumer/procurement/v1/procurement_service.proto\x12-google.cloud.commerce.consumer.procurement.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x39google/cloud/commerce/consumer/procurement/v1/order.proto\x1a#google/longrunning/operations.proto\"\xe5\x01\n\x11PlaceOrderRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*cloudbilling.googleapis.com/BillingAccount\x12\x19\n\x0c\x64isplay_name\x18\x06 \x01(\tB\x03\xe0\x41\x02\x12X\n\x0eline_item_info\x18\n \x03(\x0b\x32;.google.cloud.commerce.consumer.procurement.v1.LineItemInfoB\x03\xe0\x41\x01\x12\x17\n\nrequest_id\x18\x07 \x01(\tB\x03\xe0\x41\x01\"\x14\n\x12PlaceOrderMetadata\"$\n\x0fGetOrderRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"_\n\x11ListOrdersRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\"s\n\x12ListOrdersResponse\x12\x44\n\x06orders\x18\x01 \x03(\x0b\x32\x34.google.cloud.commerce.consumer.procurement.v1.Order\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\xcc\x05\n\x1a\x43onsumerProcurementService\x12\xc3\x01\n\nPlaceOrder\x12@.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest\x1a\x1d.google.longrunning.Operation\"T\xca\x41\x1b\n\x05Order\x12\x12PlaceOrderMetadata\x82\xd3\xe4\x93\x02\x30\"+/v1/{parent=billingAccounts/*}/orders:place:\x01*\x12\xb6\x01\n\x08GetOrder\x12>.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest\x1a\x34.google.cloud.commerce.consumer.procurement.v1.Order\"4\xda\x41\x04name\x82\xd3\xe4\x93\x02\'\x12%/v1/{name=billingAccounts/*/orders/*}\x12\xc9\x01\n\nListOrders\x12@.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest\x1a\x41.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse\"6\xda\x41\x06parent\x82\xd3\xe4\x93\x02\'\x12%/v1/{parent=billingAccounts/*}/orders\x1a\x63\xca\x41/cloudcommerceconsumerprocurement.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x9f\x02\n1com.google.cloud.commerce.consumer.procurement.v1P\x01ZScloud.google.com/go/commerce/consumer/procurement/apiv1/procurementpb;procurementpb\xaa\x02-Google.Cloud.Commerce.Consumer.Procurement.V1\xca\x02-Google\\Cloud\\Commerce\\Consumer\\Procurement\\V1\xea\x02\x32Google::Cloud::Commerce::Consumer::Procurement::V1b\x06proto3"
15
+ descriptor_data = "\nGgoogle/cloud/commerce/consumer/procurement/v1/procurement_service.proto\x12-google.cloud.commerce.consumer.procurement.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x39google/cloud/commerce/consumer/procurement/v1/order.proto\x1a#google/longrunning/operations.proto\"\xe5\x01\n\x11PlaceOrderRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*cloudbilling.googleapis.com/BillingAccount\x12\x19\n\x0c\x64isplay_name\x18\x06 \x01(\tB\x03\xe0\x41\x02\x12X\n\x0eline_item_info\x18\n \x03(\x0b\x32;.google.cloud.commerce.consumer.procurement.v1.LineItemInfoB\x03\xe0\x41\x01\x12\x17\n\nrequest_id\x18\x07 \x01(\tB\x03\xe0\x41\x01\"\x14\n\x12PlaceOrderMetadata\"$\n\x0fGetOrderRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"_\n\x11ListOrdersRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\"s\n\x12ListOrdersResponse\x12\x44\n\x06orders\x18\x01 \x03(\x0b\x32\x34.google.cloud.commerce.consumer.procurement.v1.Order\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x90\x04\n\x12ModifyOrderRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12j\n\rmodifications\x18\x06 \x03(\x0b\x32N.google.cloud.commerce.consumer.procurement.v1.ModifyOrderRequest.ModificationB\x03\xe0\x41\x01\x12\x19\n\x0c\x64isplay_name\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04\x65tag\x18\x04 \x01(\tB\x03\xe0\x41\x01\x1a\xcc\x02\n\x0cModification\x12\x19\n\x0cline_item_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12[\n\x0b\x63hange_type\x18\x02 \x01(\x0e\x32\x41.google.cloud.commerce.consumer.procurement.v1.LineItemChangeTypeB\x03\xe0\x41\x02\x12\\\n\x12new_line_item_info\x18\x03 \x01(\x0b\x32;.google.cloud.commerce.consumer.procurement.v1.LineItemInfoB\x03\xe0\x41\x01\x12\x66\n\x15\x61uto_renewal_behavior\x18\x04 \x01(\x0e\x32\x42.google.cloud.commerce.consumer.procurement.v1.AutoRenewalBehaviorB\x03\xe0\x41\x01\"\x15\n\x13ModifyOrderMetadata\"\xc6\x02\n\x12\x43\x61ncelOrderRequest\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12v\n\x13\x63\x61ncellation_policy\x18\x03 \x01(\x0e\x32T.google.cloud.commerce.consumer.procurement.v1.CancelOrderRequest.CancellationPolicyB\x03\xe0\x41\x01\"\x91\x01\n\x12\x43\x61ncellationPolicy\x12#\n\x1f\x43\x41NCELLATION_POLICY_UNSPECIFIED\x10\x00\x12*\n&CANCELLATION_POLICY_CANCEL_IMMEDIATELY\x10\x01\x12*\n&CANCELLATION_POLICY_CANCEL_AT_TERM_END\x10\x02\"\x15\n\x13\x43\x61ncelOrderMetadata*\x81\x01\n\x13\x41utoRenewalBehavior\x12%\n!AUTO_RENEWAL_BEHAVIOR_UNSPECIFIED\x10\x00\x12 \n\x1c\x41UTO_RENEWAL_BEHAVIOR_ENABLE\x10\x01\x12!\n\x1d\x41UTO_RENEWAL_BEHAVIOR_DISABLE\x10\x02\x32\xe0\x08\n\x1a\x43onsumerProcurementService\x12\xc3\x01\n\nPlaceOrder\x12@.google.cloud.commerce.consumer.procurement.v1.PlaceOrderRequest\x1a\x1d.google.longrunning.Operation\"T\xca\x41\x1b\n\x05Order\x12\x12PlaceOrderMetadata\x82\xd3\xe4\x93\x02\x30\"+/v1/{parent=billingAccounts/*}/orders:place:\x01*\x12\xb6\x01\n\x08GetOrder\x12>.google.cloud.commerce.consumer.procurement.v1.GetOrderRequest\x1a\x34.google.cloud.commerce.consumer.procurement.v1.Order\"4\xda\x41\x04name\x82\xd3\xe4\x93\x02\'\x12%/v1/{name=billingAccounts/*/orders/*}\x12\xc9\x01\n\nListOrders\x12@.google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest\x1a\x41.google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse\"6\xda\x41\x06parent\x82\xd3\xe4\x93\x02\'\x12%/v1/{parent=billingAccounts/*}/orders\x12\xc7\x01\n\x0bModifyOrder\x12\x41.google.cloud.commerce.consumer.procurement.v1.ModifyOrderRequest\x1a\x1d.google.longrunning.Operation\"V\xca\x41\x1c\n\x05Order\x12\x13ModifyOrderMetadata\x82\xd3\xe4\x93\x02\x31\",/v1/{name=billingAccounts/*/orders/*}:modify:\x01*\x12\xc7\x01\n\x0b\x43\x61ncelOrder\x12\x41.google.cloud.commerce.consumer.procurement.v1.CancelOrderRequest\x1a\x1d.google.longrunning.Operation\"V\xca\x41\x1c\n\x05Order\x12\x13\x43\x61ncelOrderMetadata\x82\xd3\xe4\x93\x02\x31\",/v1/{name=billingAccounts/*/orders/*}:cancel:\x01*\x1a\x63\xca\x41/cloudcommerceconsumerprocurement.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x9f\x02\n1com.google.cloud.commerce.consumer.procurement.v1P\x01ZScloud.google.com/go/commerce/consumer/procurement/apiv1/procurementpb;procurementpb\xaa\x02-Google.Cloud.Commerce.Consumer.Procurement.V1\xca\x02-Google\\Cloud\\Commerce\\Consumer\\Procurement\\V1\xea\x02\x32Google::Cloud::Commerce::Consumer::Procurement::V1b\x06proto3"
16
16
 
17
17
  pool = Google::Protobuf::DescriptorPool.generated_pool
18
18
 
@@ -50,6 +50,13 @@ module Google
50
50
  GetOrderRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.commerce.consumer.procurement.v1.GetOrderRequest").msgclass
51
51
  ListOrdersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.commerce.consumer.procurement.v1.ListOrdersRequest").msgclass
52
52
  ListOrdersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.commerce.consumer.procurement.v1.ListOrdersResponse").msgclass
53
+ ModifyOrderRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.commerce.consumer.procurement.v1.ModifyOrderRequest").msgclass
54
+ ModifyOrderRequest::Modification = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.commerce.consumer.procurement.v1.ModifyOrderRequest.Modification").msgclass
55
+ ModifyOrderMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.commerce.consumer.procurement.v1.ModifyOrderMetadata").msgclass
56
+ CancelOrderRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.commerce.consumer.procurement.v1.CancelOrderRequest").msgclass
57
+ CancelOrderRequest::CancellationPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.commerce.consumer.procurement.v1.CancelOrderRequest.CancellationPolicy").enummodule
58
+ CancelOrderMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.commerce.consumer.procurement.v1.CancelOrderMetadata").msgclass
59
+ AutoRenewalBehavior = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.commerce.consumer.procurement.v1.AutoRenewalBehavior").enummodule
53
60
  end
54
61
  end
55
62
  end
@@ -62,6 +62,13 @@ module Google
62
62
  # resources that the user has access to, within the scope of the parent
63
63
  # resource.
64
64
  rpc :ListOrders, ::Google::Cloud::Commerce::Consumer::Procurement::V1::ListOrdersRequest, ::Google::Cloud::Commerce::Consumer::Procurement::V1::ListOrdersResponse
65
+ # Modifies an existing
66
+ # [Order][google.cloud.commerce.consumer.procurement.v1.Order] resource.
67
+ rpc :ModifyOrder, ::Google::Cloud::Commerce::Consumer::Procurement::V1::ModifyOrderRequest, ::Google::Longrunning::Operation
68
+ # Cancels an existing
69
+ # [Order][google.cloud.commerce.consumer.procurement.v1.Order]. Every product
70
+ # procured in the Order will be cancelled.
71
+ rpc :CancelOrder, ::Google::Cloud::Commerce::Consumer::Procurement::V1::CancelOrderRequest, ::Google::Longrunning::Operation
65
72
  end
66
73
 
67
74
  Stub = Service.rpc_stub_class
@@ -16,6 +16,7 @@
16
16
 
17
17
  # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
18
 
19
+ require "google/cloud/commerce/consumer/procurement/v1/license_management_service/rest"
19
20
  require "google/cloud/commerce/consumer/procurement/v1/consumer_procurement_service/rest"
20
21
  require "google/cloud/commerce/consumer/procurement/v1/version"
21
22
 
@@ -30,7 +31,7 @@ module Google
30
31
  # @example
31
32
  #
32
33
  # require "google/cloud/commerce/consumer/procurement/v1/rest"
33
- # client = ::Google::Cloud::Commerce::Consumer::Procurement::V1::ConsumerProcurementService::Rest::Client.new
34
+ # client = ::Google::Cloud::Commerce::Consumer::Procurement::V1::LicenseManagementService::Rest::Client.new
34
35
  #
35
36
  module V1
36
37
  end
@@ -23,7 +23,7 @@ module Google
23
23
  module Consumer
24
24
  module Procurement
25
25
  module V1
26
- VERSION = "1.0.2"
26
+ VERSION = "1.1.0"
27
27
  end
28
28
  end
29
29
  end
@@ -16,6 +16,7 @@
16
16
 
17
17
  # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
18
 
19
+ require "google/cloud/commerce/consumer/procurement/v1/license_management_service"
19
20
  require "google/cloud/commerce/consumer/procurement/v1/consumer_procurement_service"
20
21
  require "google/cloud/commerce/consumer/procurement/v1/version"
21
22
 
@@ -30,12 +31,12 @@ module Google
30
31
  # @example Load this package, including all its services, and instantiate a gRPC client
31
32
  #
32
33
  # require "google/cloud/commerce/consumer/procurement/v1"
33
- # client = ::Google::Cloud::Commerce::Consumer::Procurement::V1::ConsumerProcurementService::Client.new
34
+ # client = ::Google::Cloud::Commerce::Consumer::Procurement::V1::LicenseManagementService::Client.new
34
35
  #
35
36
  # @example Load this package, including all its services, and instantiate a REST client
36
37
  #
37
38
  # require "google/cloud/commerce/consumer/procurement/v1"
38
- # client = ::Google::Cloud::Commerce::Consumer::Procurement::V1::ConsumerProcurementService::Rest::Client.new
39
+ # client = ::Google::Cloud::Commerce::Consumer::Procurement::V1::LicenseManagementService::Rest::Client.new
39
40
  #
40
41
  module V1
41
42
  end
@@ -0,0 +1,196 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module Commerce
23
+ module Consumer
24
+ module Procurement
25
+ module V1
26
+ # Assignment protocol for a license pool.
27
+ # @!attribute [rw] manual_assignment_type
28
+ # @return [::Google::Cloud::Commerce::Consumer::Procurement::V1::AssignmentProtocol::ManualAssignmentType]
29
+ # Allow manual assignments triggered by administrative operations only.
30
+ # @!attribute [rw] auto_assignment_type
31
+ # @return [::Google::Cloud::Commerce::Consumer::Procurement::V1::AssignmentProtocol::AutoAssignmentType]
32
+ # Allow automatic assignments triggered by data plane operations.
33
+ class AssignmentProtocol
34
+ include ::Google::Protobuf::MessageExts
35
+ extend ::Google::Protobuf::MessageExts::ClassMethods
36
+
37
+ # Allow manual assignments triggered by administrative operations only.
38
+ class ManualAssignmentType
39
+ include ::Google::Protobuf::MessageExts
40
+ extend ::Google::Protobuf::MessageExts::ClassMethods
41
+ end
42
+
43
+ # Configuration for automatic assignments handled by data plane operations.
44
+ # @!attribute [rw] inactive_license_ttl
45
+ # @return [::Google::Protobuf::Duration]
46
+ # Optional. The time to live for an inactive license. After this time has
47
+ # passed, the license will be automatically unassigned from the user. Must
48
+ # be at least 7 days, if set. If unset, the license will never expire.
49
+ class AutoAssignmentType
50
+ include ::Google::Protobuf::MessageExts
51
+ extend ::Google::Protobuf::MessageExts::ClassMethods
52
+ end
53
+ end
54
+
55
+ # A license pool represents a pool of licenses that can be assigned to users.
56
+ # @!attribute [rw] name
57
+ # @return [::String]
58
+ # Identifier. Format:
59
+ # `billingAccounts/{billing_account}/orders/{order}/licensePool`
60
+ # @!attribute [rw] license_assignment_protocol
61
+ # @return [::Google::Cloud::Commerce::Consumer::Procurement::V1::AssignmentProtocol]
62
+ # Required. Assignment protocol for the license pool.
63
+ # @!attribute [r] available_license_count
64
+ # @return [::Integer]
65
+ # Output only. Licenses count that are available to be assigned.
66
+ # @!attribute [r] total_license_count
67
+ # @return [::Integer]
68
+ # Output only. Total number of licenses in the pool.
69
+ class LicensePool
70
+ include ::Google::Protobuf::MessageExts
71
+ extend ::Google::Protobuf::MessageExts::ClassMethods
72
+ end
73
+
74
+ # Request message for getting a license pool.
75
+ # @!attribute [rw] name
76
+ # @return [::String]
77
+ # Required. The name of the license pool to get.
78
+ # Format: `billingAccounts/{billing_account}/orders/{order}/licensePool`
79
+ class GetLicensePoolRequest
80
+ include ::Google::Protobuf::MessageExts
81
+ extend ::Google::Protobuf::MessageExts::ClassMethods
82
+ end
83
+
84
+ # Request message for updating a license pool.
85
+ # @!attribute [rw] license_pool
86
+ # @return [::Google::Cloud::Commerce::Consumer::Procurement::V1::LicensePool]
87
+ # Required. The license pool to update.
88
+ #
89
+ # The license pool's name field is used to identify the license pool to
90
+ # update. Format:
91
+ # `billingAccounts/{billing_account}/orders/{order}/licensePool`.
92
+ # @!attribute [rw] update_mask
93
+ # @return [::Google::Protobuf::FieldMask]
94
+ # Required. The list of fields to update.
95
+ class UpdateLicensePoolRequest
96
+ include ::Google::Protobuf::MessageExts
97
+ extend ::Google::Protobuf::MessageExts::ClassMethods
98
+ end
99
+
100
+ # Request message for
101
+ # {::Google::Cloud::Commerce::Consumer::Procurement::V1::LicenseManagementService::Client#assign LicenseManagementService.Assign}.
102
+ # @!attribute [rw] parent
103
+ # @return [::String]
104
+ # Required. License pool name.
105
+ # @!attribute [rw] usernames
106
+ # @return [::Array<::String>]
107
+ # Required. Username.
108
+ # Format: `name@domain.com`.
109
+ class AssignRequest
110
+ include ::Google::Protobuf::MessageExts
111
+ extend ::Google::Protobuf::MessageExts::ClassMethods
112
+ end
113
+
114
+ # Response message for
115
+ # {::Google::Cloud::Commerce::Consumer::Procurement::V1::LicenseManagementService::Client#assign LicenseManagementService.Assign}.
116
+ class AssignResponse
117
+ include ::Google::Protobuf::MessageExts
118
+ extend ::Google::Protobuf::MessageExts::ClassMethods
119
+ end
120
+
121
+ # Request message for
122
+ # {::Google::Cloud::Commerce::Consumer::Procurement::V1::LicenseManagementService::Client#unassign LicenseManagementService.Unassign}.
123
+ # @!attribute [rw] parent
124
+ # @return [::String]
125
+ # Required. License pool name.
126
+ # @!attribute [rw] usernames
127
+ # @return [::Array<::String>]
128
+ # Required. Username.
129
+ # Format: `name@domain.com`.
130
+ class UnassignRequest
131
+ include ::Google::Protobuf::MessageExts
132
+ extend ::Google::Protobuf::MessageExts::ClassMethods
133
+ end
134
+
135
+ # Response message for
136
+ # {::Google::Cloud::Commerce::Consumer::Procurement::V1::LicenseManagementService::Client#unassign LicenseManagementService.Unassign}.
137
+ class UnassignResponse
138
+ include ::Google::Protobuf::MessageExts
139
+ extend ::Google::Protobuf::MessageExts::ClassMethods
140
+ end
141
+
142
+ # Request message for
143
+ # {::Google::Cloud::Commerce::Consumer::Procurement::V1::LicenseManagementService::Client#enumerate_licensed_users LicenseManagementService.EnumerateLicensedUsers}.
144
+ # @!attribute [rw] parent
145
+ # @return [::String]
146
+ # Required. License pool name.
147
+ # @!attribute [rw] page_size
148
+ # @return [::Integer]
149
+ # Optional. The maximum number of users to return. The service may return
150
+ # fewer than this value.
151
+ # @!attribute [rw] page_token
152
+ # @return [::String]
153
+ # Optional. A page token, received from a previous `EnumerateLicensedUsers`
154
+ # call. Provide this to retrieve the subsequent page.
155
+ class EnumerateLicensedUsersRequest
156
+ include ::Google::Protobuf::MessageExts
157
+ extend ::Google::Protobuf::MessageExts::ClassMethods
158
+ end
159
+
160
+ # A licensed user.
161
+ # @!attribute [rw] username
162
+ # @return [::String]
163
+ # Username.
164
+ # Format: `name@domain.com`.
165
+ # @!attribute [r] assign_time
166
+ # @return [::Google::Protobuf::Timestamp]
167
+ # Output only. Timestamp when the license was assigned.
168
+ # @!attribute [r] recent_usage_time
169
+ # @return [::Google::Protobuf::Timestamp]
170
+ # Output only. Timestamp when the license was recently used. This may not be
171
+ # the most recent usage time, and will be updated regularly (within 24
172
+ # hours).
173
+ class LicensedUser
174
+ include ::Google::Protobuf::MessageExts
175
+ extend ::Google::Protobuf::MessageExts::ClassMethods
176
+ end
177
+
178
+ # Response message for
179
+ # {::Google::Cloud::Commerce::Consumer::Procurement::V1::LicenseManagementService::Client#enumerate_licensed_users LicenseManagementService.EnumerateLicensedUsers}.
180
+ # @!attribute [rw] licensed_users
181
+ # @return [::Array<::Google::Cloud::Commerce::Consumer::Procurement::V1::LicensedUser>]
182
+ # The list of licensed users.
183
+ # @!attribute [rw] next_page_token
184
+ # @return [::String]
185
+ # A token that can be sent as `page_token` to retrieve the next page.
186
+ # If this field is omitted, there are no subsequent pages.
187
+ class EnumerateLicensedUsersResponse
188
+ include ::Google::Protobuf::MessageExts
189
+ extend ::Google::Protobuf::MessageExts::ClassMethods
190
+ end
191
+ end
192
+ end
193
+ end
194
+ end
195
+ end
196
+ end
@@ -214,28 +214,32 @@ module Google
214
214
  # Sentinel value. Do not use.
215
215
  LINE_ITEM_CHANGE_STATE_UNSPECIFIED = 0
216
216
 
217
- # Change is in this state when a change is initiated and waiting for
218
- # partner approval.
217
+ # Change is in this state when a change is initiated and waiting for partner
218
+ # approval. This state is only applicable for pending change.
219
219
  LINE_ITEM_CHANGE_STATE_PENDING_APPROVAL = 1
220
220
 
221
221
  # Change is in this state after it's approved by the partner or auto-approved
222
- # but before it takes effect. The change can be overwritten
223
- # or cancelled depending on the new line item info property (pending Private
224
- # Offer change cannot be cancelled and can only be overwritten by another
225
- # Private Offer).
222
+ # but before it takes effect. The change can be overwritten or cancelled
223
+ # depending on the new line item info property (pending Private Offer change
224
+ # cannot be cancelled and can only be overwritten by another Private Offer).
225
+ # This state is only applicable for pending change.
226
226
  LINE_ITEM_CHANGE_STATE_APPROVED = 2
227
227
 
228
- # Change is in this state after it's been activated.
228
+ # Change is in this state after it's been activated. This state is only
229
+ # applicable for change in history.
229
230
  LINE_ITEM_CHANGE_STATE_COMPLETED = 3
230
231
 
231
- # Change is in this state if it was rejected by the partner.
232
+ # Change is in this state if it was rejected by the partner. This state is
233
+ # only applicable for change in history.
232
234
  LINE_ITEM_CHANGE_STATE_REJECTED = 4
233
235
 
234
- # Change is in this state if it was abandoned by the user.
236
+ # Change is in this state if it was abandoned by the user. This state is only
237
+ # applicable for change in history.
235
238
  LINE_ITEM_CHANGE_STATE_ABANDONED = 5
236
239
 
237
240
  # Change is in this state if it's currently being provisioned downstream. The
238
- # change can't be overwritten or cancelled when it's in this state.
241
+ # change can't be overwritten or cancelled when it's in this state. This
242
+ # state is only applicable for pending change.
239
243
  LINE_ITEM_CHANGE_STATE_ACTIVATING = 6
240
244
  end
241
245
 
@@ -40,7 +40,7 @@ module Google
40
40
  # @return [::String]
41
41
  # Optional. A unique identifier for this request.
42
42
  # The server will ignore subsequent requests that provide a duplicate request
43
- # ID for at least 120 minutes after the first request.
43
+ # ID for at least 24 hours after the first request.
44
44
  #
45
45
  # The request ID must be a valid
46
46
  # [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format).
@@ -89,6 +89,7 @@ module Google
89
89
  #
90
90
  # * `display_name`
91
91
  #
92
+ #
92
93
  # If the query contains special characters other than letters,
93
94
  # underscore, or digits, the phrase must be quoted with double quotes. For
94
95
  # example, `display_name="foo:bar"`, where the display name needs to be
@@ -114,6 +115,119 @@ module Google
114
115
  include ::Google::Protobuf::MessageExts
115
116
  extend ::Google::Protobuf::MessageExts::ClassMethods
116
117
  end
118
+
119
+ # Request message for
120
+ # {::Google::Cloud::Commerce::Consumer::Procurement::V1::ConsumerProcurementService::Client#modify_order ConsumerProcurementService.ModifyOrder}.
121
+ # @!attribute [rw] name
122
+ # @return [::String]
123
+ # Required. Name of the order to update.
124
+ # @!attribute [rw] modifications
125
+ # @return [::Array<::Google::Cloud::Commerce::Consumer::Procurement::V1::ModifyOrderRequest::Modification>]
126
+ # Optional. Modifications for an existing Order created by an Offer.
127
+ # Required when Offer based Order is being modified, except for when going
128
+ # from an offer to a public plan.
129
+ # @!attribute [rw] display_name
130
+ # @return [::String]
131
+ # Optional. Updated display name of the order, leave as empty if you do not
132
+ # want to update current display name.
133
+ # @!attribute [rw] etag
134
+ # @return [::String]
135
+ # Optional. The weak etag, which can be optionally populated, of the order
136
+ # that this modify request is based on. Validation checking will only happen
137
+ # if the invoker supplies this field.
138
+ class ModifyOrderRequest
139
+ include ::Google::Protobuf::MessageExts
140
+ extend ::Google::Protobuf::MessageExts::ClassMethods
141
+
142
+ # Modifications to make on the order.
143
+ # @!attribute [rw] line_item_id
144
+ # @return [::String]
145
+ # Required. ID of the existing line item to make change to.
146
+ # Required when change type is
147
+ # [LineItemChangeType.LINE_ITEM_CHANGE_TYPE_UPDATE] or
148
+ # [LineItemChangeType.LINE_ITEM_CHANGE_TYPE_CANCEL].
149
+ # @!attribute [rw] change_type
150
+ # @return [::Google::Cloud::Commerce::Consumer::Procurement::V1::LineItemChangeType]
151
+ # Required. Type of change to make.
152
+ # @!attribute [rw] new_line_item_info
153
+ # @return [::Google::Cloud::Commerce::Consumer::Procurement::V1::LineItemInfo]
154
+ # Optional. The line item to update to.
155
+ # Required when change_type is
156
+ # [LineItemChangeType.LINE_ITEM_CHANGE_TYPE_CREATE] or
157
+ # [LineItemChangeType.LINE_ITEM_CHANGE_TYPE_UPDATE].
158
+ # @!attribute [rw] auto_renewal_behavior
159
+ # @return [::Google::Cloud::Commerce::Consumer::Procurement::V1::AutoRenewalBehavior]
160
+ # Optional. Auto renewal behavior of the subscription for the update.
161
+ # Applied when change_type is
162
+ # [LineItemChangeType.LINE_ITEM_CHANGE_TYPE_UPDATE]. Follows plan default
163
+ # config when this field is not specified.
164
+ class Modification
165
+ include ::Google::Protobuf::MessageExts
166
+ extend ::Google::Protobuf::MessageExts::ClassMethods
167
+ end
168
+ end
169
+
170
+ # Message stored in the metadata field of the Operation returned by
171
+ # {::Google::Cloud::Commerce::Consumer::Procurement::V1::ConsumerProcurementService::Client#modify_order ConsumerProcurementService.ModifyOrder}.
172
+ class ModifyOrderMetadata
173
+ include ::Google::Protobuf::MessageExts
174
+ extend ::Google::Protobuf::MessageExts::ClassMethods
175
+ end
176
+
177
+ # Request message for
178
+ # {::Google::Cloud::Commerce::Consumer::Procurement::V1::ConsumerProcurementService::Client#cancel_order ConsumerProcurementService.CancelOrder}.
179
+ # @!attribute [rw] name
180
+ # @return [::String]
181
+ # Required. The resource name of the order.
182
+ # @!attribute [rw] etag
183
+ # @return [::String]
184
+ # Optional. The weak etag, which can be optionally populated, of the order
185
+ # that this cancel request is based on. Validation checking will only happen
186
+ # if the invoker supplies this field.
187
+ # @!attribute [rw] cancellation_policy
188
+ # @return [::Google::Cloud::Commerce::Consumer::Procurement::V1::CancelOrderRequest::CancellationPolicy]
189
+ # Optional. Cancellation policy of this request.
190
+ class CancelOrderRequest
191
+ include ::Google::Protobuf::MessageExts
192
+ extend ::Google::Protobuf::MessageExts::ClassMethods
193
+
194
+ # Indicates the cancellation policy the customer uses to cancel the order.
195
+ module CancellationPolicy
196
+ # If unspecified, cancellation will try to cancel the order, if order
197
+ # cannot be immediately cancelled, auto renewal will be turned off.
198
+ # However, caller should avoid using the value as it will yield a
199
+ # non-deterministic result. This is still supported mainly to maintain
200
+ # existing integrated usages and ensure backwards compatibility.
201
+ CANCELLATION_POLICY_UNSPECIFIED = 0
202
+
203
+ # Request will cancel the whole order immediately, if order cannot be
204
+ # immediately cancelled, the request will fail.
205
+ CANCELLATION_POLICY_CANCEL_IMMEDIATELY = 1
206
+
207
+ # Request will cancel the auto renewal, if order is not subscription based,
208
+ # the request will fail.
209
+ CANCELLATION_POLICY_CANCEL_AT_TERM_END = 2
210
+ end
211
+ end
212
+
213
+ # Message stored in the metadata field of the Operation returned by
214
+ # {::Google::Cloud::Commerce::Consumer::Procurement::V1::ConsumerProcurementService::Client#cancel_order ConsumerProcurementService.CancelOrder}.
215
+ class CancelOrderMetadata
216
+ include ::Google::Protobuf::MessageExts
217
+ extend ::Google::Protobuf::MessageExts::ClassMethods
218
+ end
219
+
220
+ # Indicates the auto renewal behavior customer specifies on subscription.
221
+ module AutoRenewalBehavior
222
+ # If unspecified, the auto renewal behavior will follow the default config.
223
+ AUTO_RENEWAL_BEHAVIOR_UNSPECIFIED = 0
224
+
225
+ # Auto Renewal will be enabled on subscription.
226
+ AUTO_RENEWAL_BEHAVIOR_ENABLE = 1
227
+
228
+ # Auto Renewal will be disabled on subscription.
229
+ AUTO_RENEWAL_BEHAVIOR_DISABLE = 2
230
+ end
117
231
  end
118
232
  end
119
233
  end