google-apis-cloudchannel_v1 0.33.0 → 0.34.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: 40a62b2fe90f3ae7d3715d82a95688bb042960bbcc836b488e917b9e419a78c7
4
- data.tar.gz: 11dde20c239f23279c1dff8e650a7413616b9985364a0bbbe02f783ce8679067
3
+ metadata.gz: 103f9a0f8896c2d4d7ce6c833a9101e59e2dcb8d0a85a73b6bbb1d740a6c69d1
4
+ data.tar.gz: baa44290f8f8c9bb373e8304dff9c8c167d72dbfe7adf92f6e3ae6376d2a0ec1
5
5
  SHA512:
6
- metadata.gz: 6fa532c6cd3cc8f21319923fba191a262f030b608178d6214bfe1a0a4c10be1231b0e08b058c6143cabe2fedf572907fc170bee568d85107fbb59a9746fe0523
7
- data.tar.gz: d82a06ffa509960ffbb8116bab1aed37b46c1cd44efd90f6889189479f7bae164ef5deb908c4f8153af02979fb982746194f952da3af73c19416199be9d94fb1
6
+ metadata.gz: 2864a0aa27f2d73d558b487fc1eba493966379702183faa35212c731ec2dae763505b87d1f6de33d697d3d9e9f9086b6202b185097972c7b98ad6559b4948a17
7
+ data.tar.gz: f756a6d92dcb5cf04cc23cd9ecf7611b212b8de490fa3901a770c1c7025d84b6d125efc65bda9a0fca769958076581dab5cd29a56bba779e1a0ab8a695fad6b8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-cloudchannel_v1
2
2
 
3
+ ### v0.34.0 (2023-03-12)
4
+
5
+ * Regenerated from discovery document revision 20230309
6
+
3
7
  ### v0.33.0 (2023-03-05)
4
8
 
5
9
  * Regenerated from discovery document revision 20230226
@@ -1096,6 +1096,96 @@ module Google
1096
1096
  end
1097
1097
  end
1098
1098
 
1099
+ # Change event entry for Entitlement order history
1100
+ class GoogleCloudChannelV1EntitlementChange
1101
+ include Google::Apis::Core::Hashable
1102
+
1103
+ # The Entitlement's activation reason
1104
+ # Corresponds to the JSON property `activationReason`
1105
+ # @return [String]
1106
+ attr_accessor :activation_reason
1107
+
1108
+ # Cancellation reason for the Entitlement.
1109
+ # Corresponds to the JSON property `cancellationReason`
1110
+ # @return [String]
1111
+ attr_accessor :cancellation_reason
1112
+
1113
+ # The change action type.
1114
+ # Corresponds to the JSON property `changeType`
1115
+ # @return [String]
1116
+ attr_accessor :change_type
1117
+
1118
+ # The submitted time of the change.
1119
+ # Corresponds to the JSON property `createTime`
1120
+ # @return [String]
1121
+ attr_accessor :create_time
1122
+
1123
+ # Required. Resource name of an entitlement in the form: accounts/`account_id`/
1124
+ # customers/`customer_id`/entitlements/`entitlement_id`
1125
+ # Corresponds to the JSON property `entitlement`
1126
+ # @return [String]
1127
+ attr_accessor :entitlement
1128
+
1129
+ # Required. Resource name of the Offer at the time of change. Takes the form:
1130
+ # accounts/`account_id`/offers/`offer_id`.
1131
+ # Corresponds to the JSON property `offer`
1132
+ # @return [String]
1133
+ attr_accessor :offer
1134
+
1135
+ # Human-readable identifier that shows what operator made a change. When the
1136
+ # operator_type is RESELLER, this is the user's email address. For all other
1137
+ # operator types, this is empty.
1138
+ # Corresponds to the JSON property `operator`
1139
+ # @return [String]
1140
+ attr_accessor :operator
1141
+
1142
+ # Operator type responsible for the change.
1143
+ # Corresponds to the JSON property `operatorType`
1144
+ # @return [String]
1145
+ attr_accessor :operator_type
1146
+
1147
+ # e.g. purchase_number change reason, entered by CRS.
1148
+ # Corresponds to the JSON property `otherChangeReason`
1149
+ # @return [String]
1150
+ attr_accessor :other_change_reason
1151
+
1152
+ # Extended parameters, such as: purchase_order_number, gcp_details;
1153
+ # internal_correlation_id, long_running_operation_id, order_id; etc.
1154
+ # Corresponds to the JSON property `parameters`
1155
+ # @return [Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1Parameter>]
1156
+ attr_accessor :parameters
1157
+
1158
+ # Service provisioned for an entitlement.
1159
+ # Corresponds to the JSON property `provisionedService`
1160
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1ProvisionedService]
1161
+ attr_accessor :provisioned_service
1162
+
1163
+ # Suspension reason for the Entitlement.
1164
+ # Corresponds to the JSON property `suspensionReason`
1165
+ # @return [String]
1166
+ attr_accessor :suspension_reason
1167
+
1168
+ def initialize(**args)
1169
+ update!(**args)
1170
+ end
1171
+
1172
+ # Update properties of this object
1173
+ def update!(**args)
1174
+ @activation_reason = args[:activation_reason] if args.key?(:activation_reason)
1175
+ @cancellation_reason = args[:cancellation_reason] if args.key?(:cancellation_reason)
1176
+ @change_type = args[:change_type] if args.key?(:change_type)
1177
+ @create_time = args[:create_time] if args.key?(:create_time)
1178
+ @entitlement = args[:entitlement] if args.key?(:entitlement)
1179
+ @offer = args[:offer] if args.key?(:offer)
1180
+ @operator = args[:operator] if args.key?(:operator)
1181
+ @operator_type = args[:operator_type] if args.key?(:operator_type)
1182
+ @other_change_reason = args[:other_change_reason] if args.key?(:other_change_reason)
1183
+ @parameters = args[:parameters] if args.key?(:parameters)
1184
+ @provisioned_service = args[:provisioned_service] if args.key?(:provisioned_service)
1185
+ @suspension_reason = args[:suspension_reason] if args.key?(:suspension_reason)
1186
+ end
1187
+ end
1188
+
1099
1189
  # Represents Pub/Sub message content describing entitlement update.
1100
1190
  class GoogleCloudChannelV1EntitlementEvent
1101
1191
  include Google::Apis::Core::Hashable
@@ -1349,6 +1439,31 @@ module Google
1349
1439
  end
1350
1440
  end
1351
1441
 
1442
+ # Response message for CloudChannelService.ListEntitlementChanges
1443
+ class GoogleCloudChannelV1ListEntitlementChangesResponse
1444
+ include Google::Apis::Core::Hashable
1445
+
1446
+ # The list of entitlement changes.
1447
+ # Corresponds to the JSON property `entitlementChanges`
1448
+ # @return [Array<Google::Apis::CloudchannelV1::GoogleCloudChannelV1EntitlementChange>]
1449
+ attr_accessor :entitlement_changes
1450
+
1451
+ # A token to list the next page of results.
1452
+ # Corresponds to the JSON property `nextPageToken`
1453
+ # @return [String]
1454
+ attr_accessor :next_page_token
1455
+
1456
+ def initialize(**args)
1457
+ update!(**args)
1458
+ end
1459
+
1460
+ # Update properties of this object
1461
+ def update!(**args)
1462
+ @entitlement_changes = args[:entitlement_changes] if args.key?(:entitlement_changes)
1463
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1464
+ end
1465
+ end
1466
+
1352
1467
  # Response message for CloudChannelService.ListEntitlements.
1353
1468
  class GoogleCloudChannelV1ListEntitlementsResponse
1354
1469
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module CloudchannelV1
18
18
  # Version of the google-apis-cloudchannel_v1 gem
19
- GEM_VERSION = "0.33.0"
19
+ GEM_VERSION = "0.34.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230226"
25
+ REVISION = "20230309"
26
26
  end
27
27
  end
28
28
  end
@@ -178,6 +178,12 @@ module Google
178
178
  include Google::Apis::Core::JsonObjectSupport
179
179
  end
180
180
 
181
+ class GoogleCloudChannelV1EntitlementChange
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
181
187
  class GoogleCloudChannelV1EntitlementEvent
182
188
  class Representation < Google::Apis::Core::JsonRepresentation; end
183
189
 
@@ -226,6 +232,12 @@ module Google
226
232
  include Google::Apis::Core::JsonObjectSupport
227
233
  end
228
234
 
235
+ class GoogleCloudChannelV1ListEntitlementChangesResponse
236
+ class Representation < Google::Apis::Core::JsonRepresentation; end
237
+
238
+ include Google::Apis::Core::JsonObjectSupport
239
+ end
240
+
229
241
  class GoogleCloudChannelV1ListEntitlementsResponse
230
242
  class Representation < Google::Apis::Core::JsonRepresentation; end
231
243
 
@@ -1075,6 +1087,26 @@ module Google
1075
1087
  end
1076
1088
  end
1077
1089
 
1090
+ class GoogleCloudChannelV1EntitlementChange
1091
+ # @private
1092
+ class Representation < Google::Apis::Core::JsonRepresentation
1093
+ property :activation_reason, as: 'activationReason'
1094
+ property :cancellation_reason, as: 'cancellationReason'
1095
+ property :change_type, as: 'changeType'
1096
+ property :create_time, as: 'createTime'
1097
+ property :entitlement, as: 'entitlement'
1098
+ property :offer, as: 'offer'
1099
+ property :operator, as: 'operator'
1100
+ property :operator_type, as: 'operatorType'
1101
+ property :other_change_reason, as: 'otherChangeReason'
1102
+ collection :parameters, as: 'parameters', class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1Parameter, decorator: Google::Apis::CloudchannelV1::GoogleCloudChannelV1Parameter::Representation
1103
+
1104
+ property :provisioned_service, as: 'provisionedService', class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1ProvisionedService, decorator: Google::Apis::CloudchannelV1::GoogleCloudChannelV1ProvisionedService::Representation
1105
+
1106
+ property :suspension_reason, as: 'suspensionReason'
1107
+ end
1108
+ end
1109
+
1078
1110
  class GoogleCloudChannelV1EntitlementEvent
1079
1111
  # @private
1080
1112
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1150,6 +1182,15 @@ module Google
1150
1182
  end
1151
1183
  end
1152
1184
 
1185
+ class GoogleCloudChannelV1ListEntitlementChangesResponse
1186
+ # @private
1187
+ class Representation < Google::Apis::Core::JsonRepresentation
1188
+ collection :entitlement_changes, as: 'entitlementChanges', class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1EntitlementChange, decorator: Google::Apis::CloudchannelV1::GoogleCloudChannelV1EntitlementChange::Representation
1189
+
1190
+ property :next_page_token, as: 'nextPageToken'
1191
+ end
1192
+ end
1193
+
1153
1194
  class GoogleCloudChannelV1ListEntitlementsResponse
1154
1195
  # @private
1155
1196
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2096,6 +2096,61 @@ module Google
2096
2096
  execute_or_queue_command(command, &block)
2097
2097
  end
2098
2098
 
2099
+ # List entitlement history. Possible error codes: * PERMISSION_DENIED: The
2100
+ # reseller account making the request and the provided reseller account are
2101
+ # different. * INVALID_ARGUMENT: Missing or invalid required fields in the
2102
+ # request. * NOT_FOUND: The parent resource doesn't exist. Usually the result of
2103
+ # an invalid name parameter. * INTERNAL: Any non-user error related to a
2104
+ # technical issue in the backend. In this case, contact CloudChannel support. *
2105
+ # UNKNOWN: Any non-user error related to a technical issue in the backend. In
2106
+ # this case, contact Cloud Channel support. Return value: List of
2107
+ # EntitlementChanges.
2108
+ # @param [String] parent
2109
+ # Required. The resource name of the entitlement for which to list entitlement
2110
+ # changes. The `-` wildcard may be used to match entitlements across a customer.
2111
+ # Formats: * accounts/`account_id`/customers/`customer_id`/entitlements/`
2112
+ # entitlement_id` * accounts/`account_id`/customers/`customer_id`/entitlements/-
2113
+ # @param [String] filter
2114
+ # Optional. Filters applied to the list results.
2115
+ # @param [Fixnum] page_size
2116
+ # Optional. The maximum number of entitlement changes to return. The service may
2117
+ # return fewer than this value. If unspecified, returns at most 10 entitlement
2118
+ # changes. The maximum value is 50; the server will coerce values above 50.
2119
+ # @param [String] page_token
2120
+ # Optional. A page token, received from a previous CloudChannelService.
2121
+ # ListEntitlementChanges call. Provide this to retrieve the subsequent page.
2122
+ # When paginating, all other parameters provided to CloudChannelService.
2123
+ # ListEntitlementChanges must match the call that provided the page token.
2124
+ # @param [String] fields
2125
+ # Selector specifying which fields to include in a partial response.
2126
+ # @param [String] quota_user
2127
+ # Available to use for quota purposes for server-side applications. Can be any
2128
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2129
+ # @param [Google::Apis::RequestOptions] options
2130
+ # Request-specific options
2131
+ #
2132
+ # @yield [result, err] Result & error if block supplied
2133
+ # @yieldparam result [Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListEntitlementChangesResponse] parsed result object
2134
+ # @yieldparam err [StandardError] error object if request failed
2135
+ #
2136
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListEntitlementChangesResponse]
2137
+ #
2138
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2139
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2140
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2141
+ def list_account_customer_entitlement_entitlement_changes(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2142
+ command = make_simple_command(:get, 'v1/{+parent}:listEntitlementChanges', options)
2143
+ command.response_representation = Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListEntitlementChangesResponse::Representation
2144
+ command.response_class = Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListEntitlementChangesResponse
2145
+ command.params['parent'] = parent unless parent.nil?
2146
+ command.query['filter'] = filter unless filter.nil?
2147
+ command.query['pageSize'] = page_size unless page_size.nil?
2148
+ command.query['pageToken'] = page_token unless page_token.nil?
2149
+ command.query['fields'] = fields unless fields.nil?
2150
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2151
+ execute_or_queue_command(command, &block)
2152
+ end
2153
+
2099
2154
  # Returns the requested Offer resource. Possible error codes: *
2100
2155
  # PERMISSION_DENIED: The entitlement doesn't belong to the reseller. *
2101
2156
  # INVALID_ARGUMENT: Required request parameters are missing or invalid. *
@@ -2244,6 +2299,10 @@ module Google
2244
2299
  # 1000; the server will coerce values above 1000.
2245
2300
  # @param [String] page_token
2246
2301
  # Optional. A token for a page of results other than the first page.
2302
+ # @param [Boolean] show_future_offers
2303
+ # Optional. A boolean flag that determines if a response returns future offers
2304
+ # 30 days from now. If the show_future_offers is true, the response will only
2305
+ # contain offers that are scheduled to be available 30 days from now.
2247
2306
  # @param [String] fields
2248
2307
  # Selector specifying which fields to include in a partial response.
2249
2308
  # @param [String] quota_user
@@ -2261,7 +2320,7 @@ module Google
2261
2320
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2262
2321
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2263
2322
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2264
- def list_account_offers(parent, filter: nil, language_code: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2323
+ def list_account_offers(parent, filter: nil, language_code: nil, page_size: nil, page_token: nil, show_future_offers: nil, fields: nil, quota_user: nil, options: nil, &block)
2265
2324
  command = make_simple_command(:get, 'v1/{+parent}/offers', options)
2266
2325
  command.response_representation = Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListOffersResponse::Representation
2267
2326
  command.response_class = Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListOffersResponse
@@ -2270,6 +2329,7 @@ module Google
2270
2329
  command.query['languageCode'] = language_code unless language_code.nil?
2271
2330
  command.query['pageSize'] = page_size unless page_size.nil?
2272
2331
  command.query['pageToken'] = page_token unless page_token.nil?
2332
+ command.query['showFutureOffers'] = show_future_offers unless show_future_offers.nil?
2273
2333
  command.query['fields'] = fields unless fields.nil?
2274
2334
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2275
2335
  execute_or_queue_command(command, &block)
@@ -2507,13 +2567,7 @@ module Google
2507
2567
  end
2508
2568
 
2509
2569
  # Lists operations that match the specified filter in the request. If the server
2510
- # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
2511
- # binding allows API services to override the binding to use different resource
2512
- # name schemes, such as `users/*/operations`. To override the binding, API
2513
- # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
2514
- # service configuration. For backwards compatibility, the default name includes
2515
- # the operations collection id, however overriding users must ensure the name
2516
- # binding is the parent resource, without the operations collection id.
2570
+ # doesn't support this method, it returns `UNIMPLEMENTED`.
2517
2571
  # @param [String] name
2518
2572
  # The name of the operation's parent resource.
2519
2573
  # @param [String] filter
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-cloudchannel_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.33.0
4
+ version: 0.34.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: 2023-03-05 00:00:00.000000000 Z
11
+ date: 2023-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudchannel_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-cloudchannel_v1/v0.33.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudchannel_v1/v0.34.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudchannel_v1
63
63
  post_install_message:
64
64
  rdoc_options: []