google-apis-contactcenteraiplatform_v1alpha1 0.35.0 → 0.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: efa93e7e4b98e6bb0f8be817a62eaa81153f9b4f617ea97f9851d837fb0a8ea9
4
- data.tar.gz: 67ba2e97609bc1518f124001c0d1bdb0d7df6e801d256c7811844d42e9a7eded
3
+ metadata.gz: 8da368e8c3f6095eb87ae21a431534c45f8aa5a86f6b2d96a37b048613151535
4
+ data.tar.gz: 7d05aa5b57d40e772fe190f954d4ae3a23cac6de4bec728645c09467bbb66065
5
5
  SHA512:
6
- metadata.gz: 28a696e372ed98377093ba6729b777192086fe1b668c193f156431341cf16db5a8c7d988591e1b283ade0a4c4ec9e26e61f8fda3264f8e707b7a6c0fa220af13
7
- data.tar.gz: 992221a68fdbddef6d2a42d4d08df63e9885560e84d5ad7b4249e1a54d97bb2e1e84666797c899e57f3c7b9fcaa752167dc877caf95e75b1d31d5af8364f65e4
6
+ metadata.gz: 3014024f5683c6b805028ae5fae52c1bdd202580bf1cff93ce98e2e74ca436c16a7d6c7c814f7cc84b347308f25899e33d601a56e9f530643cdc5d100a986584
7
+ data.tar.gz: 8855eb5e2c7e6d018e04b2d2b73598b46bd41be1b616068f4090c4a3c085525fecfb2606997020b7180d3fed06f1cfd6bffa773d89491b6e346f969b8986ab2c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-contactcenteraiplatform_v1alpha1
2
2
 
3
+ ### v0.36.0 (2025-12-07)
4
+
5
+ * Regenerated from discovery document revision 20251204
6
+
3
7
  ### v0.35.0 (2025-11-23)
4
8
 
5
9
  * Regenerated from discovery document revision 20251115
@@ -295,6 +295,155 @@ module Google
295
295
  end
296
296
  end
297
297
 
298
+ # Represents a whole or partial calendar date, such as a birthday. The time of
299
+ # day and time zone are either specified elsewhere or are insignificant. The
300
+ # date is relative to the Gregorian Calendar. This can represent one of the
301
+ # following: * A full date, with non-zero year, month, and day values. * A month
302
+ # and day, with a zero year (for example, an anniversary). * A year on its own,
303
+ # with a zero month and a zero day. * A year and month, with a zero day (for
304
+ # example, a credit card expiration date). Related types: * google.type.
305
+ # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
306
+ class Date
307
+ include Google::Apis::Core::Hashable
308
+
309
+ # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to
310
+ # specify a year by itself or a year and month where the day isn't significant.
311
+ # Corresponds to the JSON property `day`
312
+ # @return [Fixnum]
313
+ attr_accessor :day
314
+
315
+ # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month
316
+ # and day.
317
+ # Corresponds to the JSON property `month`
318
+ # @return [Fixnum]
319
+ attr_accessor :month
320
+
321
+ # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
322
+ # year.
323
+ # Corresponds to the JSON property `year`
324
+ # @return [Fixnum]
325
+ attr_accessor :year
326
+
327
+ def initialize(**args)
328
+ update!(**args)
329
+ end
330
+
331
+ # Update properties of this object
332
+ def update!(**args)
333
+ @day = args[:day] if args.key?(:day)
334
+ @month = args[:month] if args.key?(:month)
335
+ @year = args[:year] if args.key?(:year)
336
+ end
337
+ end
338
+
339
+ # List of dates.
340
+ class DateList
341
+ include Google::Apis::Core::Hashable
342
+
343
+ # Optional. Values in the list.
344
+ # Corresponds to the JSON property `values`
345
+ # @return [Array<Google::Apis::ContactcenteraiplatformV1alpha1::Date>]
346
+ attr_accessor :values
347
+
348
+ def initialize(**args)
349
+ update!(**args)
350
+ end
351
+
352
+ # Update properties of this object
353
+ def update!(**args)
354
+ @values = args[:values] if args.key?(:values)
355
+ end
356
+ end
357
+
358
+ # Represents civil time (or occasionally physical time). This type can represent
359
+ # a civil time in one of a few possible ways: * When utc_offset is set and
360
+ # time_zone is unset: a civil time on a calendar day with a particular offset
361
+ # from UTC. * When time_zone is set and utc_offset is unset: a civil time on a
362
+ # calendar day in a particular time zone. * When neither time_zone nor
363
+ # utc_offset is set: a civil time on a calendar day in local time. The date is
364
+ # relative to the Proleptic Gregorian Calendar. If year, month, or day are 0,
365
+ # the DateTime is considered not to have a specific year, month, or day
366
+ # respectively. This type may also be used to represent a physical time if all
367
+ # the date and time fields are set and either case of the `time_offset` oneof is
368
+ # set. Consider using `Timestamp` message for physical time instead. If your use
369
+ # case also would like to store the user's timezone, that can be done in another
370
+ # field. This type is more flexible than some applications may want. Make sure
371
+ # to document and validate your application's limitations.
372
+ class DateTime
373
+ include Google::Apis::Core::Hashable
374
+
375
+ # Optional. Day of month. Must be from 1 to 31 and valid for the year and month,
376
+ # or 0 if specifying a datetime without a day.
377
+ # Corresponds to the JSON property `day`
378
+ # @return [Fixnum]
379
+ attr_accessor :day
380
+
381
+ # Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults to
382
+ # 0 (midnight). An API may choose to allow the value "24:00:00" for scenarios
383
+ # like business closing time.
384
+ # Corresponds to the JSON property `hours`
385
+ # @return [Fixnum]
386
+ attr_accessor :hours
387
+
388
+ # Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0.
389
+ # Corresponds to the JSON property `minutes`
390
+ # @return [Fixnum]
391
+ attr_accessor :minutes
392
+
393
+ # Optional. Month of year. Must be from 1 to 12, or 0 if specifying a datetime
394
+ # without a month.
395
+ # Corresponds to the JSON property `month`
396
+ # @return [Fixnum]
397
+ attr_accessor :month
398
+
399
+ # Optional. Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999,
400
+ # defaults to 0.
401
+ # Corresponds to the JSON property `nanos`
402
+ # @return [Fixnum]
403
+ attr_accessor :nanos
404
+
405
+ # Optional. Seconds of minutes of the time. Must normally be from 0 to 59,
406
+ # defaults to 0. An API may allow the value 60 if it allows leap-seconds.
407
+ # Corresponds to the JSON property `seconds`
408
+ # @return [Fixnum]
409
+ attr_accessor :seconds
410
+
411
+ # Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/
412
+ # time-zones).
413
+ # Corresponds to the JSON property `timeZone`
414
+ # @return [Google::Apis::ContactcenteraiplatformV1alpha1::TimeZone]
415
+ attr_accessor :time_zone
416
+
417
+ # UTC offset. Must be whole seconds, between -18 hours and +18 hours. For
418
+ # example, a UTC offset of -4:00 would be represented as ` seconds: -14400 `.
419
+ # Corresponds to the JSON property `utcOffset`
420
+ # @return [String]
421
+ attr_accessor :utc_offset
422
+
423
+ # Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a datetime
424
+ # without a year.
425
+ # Corresponds to the JSON property `year`
426
+ # @return [Fixnum]
427
+ attr_accessor :year
428
+
429
+ def initialize(**args)
430
+ update!(**args)
431
+ end
432
+
433
+ # Update properties of this object
434
+ def update!(**args)
435
+ @day = args[:day] if args.key?(:day)
436
+ @hours = args[:hours] if args.key?(:hours)
437
+ @minutes = args[:minutes] if args.key?(:minutes)
438
+ @month = args[:month] if args.key?(:month)
439
+ @nanos = args[:nanos] if args.key?(:nanos)
440
+ @seconds = args[:seconds] if args.key?(:seconds)
441
+ @time_zone = args[:time_zone] if args.key?(:time_zone)
442
+ @utc_offset = args[:utc_offset] if args.key?(:utc_offset)
443
+ @year = args[:year] if args.key?(:year)
444
+ end
445
+ end
446
+
298
447
  # LINT.IfChange First Channel to receive the updates. Meant to dev/test
299
448
  # instances
300
449
  class Early
@@ -309,6 +458,32 @@ module Google
309
458
  end
310
459
  end
311
460
 
461
+ # Information about a particular employee for planning purposes.
462
+ class EmployeeInfo
463
+ include Google::Apis::Core::Hashable
464
+
465
+ # Required. Unique ID of this employee.
466
+ # Corresponds to the JSON property `id`
467
+ # @return [String]
468
+ attr_accessor :id
469
+
470
+ # Optional. A list of unwanted event intervals for this employee. The start time
471
+ # of the interval must be in the planning horizon.
472
+ # Corresponds to the JSON property `unwantedEventIntervals`
473
+ # @return [Array<Google::Apis::ContactcenteraiplatformV1alpha1::UnwantedEventInterval>]
474
+ attr_accessor :unwanted_event_intervals
475
+
476
+ def initialize(**args)
477
+ update!(**args)
478
+ end
479
+
480
+ # Update properties of this object
481
+ def update!(**args)
482
+ @id = args[:id] if args.key?(:id)
483
+ @unwanted_event_intervals = args[:unwanted_event_intervals] if args.key?(:unwanted_event_intervals)
484
+ end
485
+ end
486
+
312
487
  # A generic empty message that you can re-use to avoid defining duplicated empty
313
488
  # messages in your APIs. A typical example is to use it as the request or the
314
489
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
@@ -325,6 +500,57 @@ module Google
325
500
  end
326
501
  end
327
502
 
503
+ # Template specifying rules for generating a single event that occurs during a
504
+ # shift. An event may represent a meeting, break, lunch, etc.
505
+ class EventTemplate
506
+ include Google::Apis::Core::Hashable
507
+
508
+ # Required. Fixed duration in minutes of this event.
509
+ # Corresponds to the JSON property `durationMinutes`
510
+ # @return [Fixnum]
511
+ attr_accessor :duration_minutes
512
+
513
+ # Required. Unique ID of this template.
514
+ # Corresponds to the JSON property `id`
515
+ # @return [String]
516
+ attr_accessor :id
517
+
518
+ # Optional. Maximum number of minutes after the beginning of a shift that this
519
+ # event can start.
520
+ # Corresponds to the JSON property `maximumMinutesAfterShiftStart`
521
+ # @return [Fixnum]
522
+ attr_accessor :maximum_minutes_after_shift_start
523
+
524
+ # Optional. Minimum number of minutes after the beginning of a shift that this
525
+ # event can start.
526
+ # Corresponds to the JSON property `minimumMinutesAfterShiftStart`
527
+ # @return [Fixnum]
528
+ attr_accessor :minimum_minutes_after_shift_start
529
+
530
+ # Required. The time increment (in minutes) used to generate the set of possible
531
+ # event start times between `minimum_minutes_after_shift_start` and `
532
+ # maximum_minutes_after_shift_start`. For example, if the minimum minutes after
533
+ # shift start are 30, maximum minutes after shift start are 45, and the start
534
+ # time increment is 5 minutes, the event can take place 30, 35, 40, or 45
535
+ # minutes after the start of the shift.
536
+ # Corresponds to the JSON property `startTimeIncrementMinutes`
537
+ # @return [Fixnum]
538
+ attr_accessor :start_time_increment_minutes
539
+
540
+ def initialize(**args)
541
+ update!(**args)
542
+ end
543
+
544
+ # Update properties of this object
545
+ def update!(**args)
546
+ @duration_minutes = args[:duration_minutes] if args.key?(:duration_minutes)
547
+ @id = args[:id] if args.key?(:id)
548
+ @maximum_minutes_after_shift_start = args[:maximum_minutes_after_shift_start] if args.key?(:maximum_minutes_after_shift_start)
549
+ @minimum_minutes_after_shift_start = args[:minimum_minutes_after_shift_start] if args.key?(:minimum_minutes_after_shift_start)
550
+ @start_time_increment_minutes = args[:start_time_increment_minutes] if args.key?(:start_time_increment_minutes)
551
+ end
552
+ end
553
+
328
554
  #
329
555
  class FeatureConfig
330
556
  include Google::Apis::Core::Hashable
@@ -345,6 +571,53 @@ module Google
345
571
  end
346
572
  end
347
573
 
574
+ # Request with constraints for generating shifts. The shifts generated must
575
+ # adhere to these constraints.
576
+ class GenerateShiftsRequest
577
+ include Google::Apis::Core::Hashable
578
+
579
+ # Optional. Employee information that should be considered when generating
580
+ # shifts.
581
+ # Corresponds to the JSON property `employeeInfo`
582
+ # @return [Array<Google::Apis::ContactcenteraiplatformV1alpha1::EmployeeInfo>]
583
+ attr_accessor :employee_info
584
+
585
+ # Specifies the time interval during which the solver should generate shifts.
586
+ # The start time must be before the end time.
587
+ # Corresponds to the JSON property `planningHorizon`
588
+ # @return [Google::Apis::ContactcenteraiplatformV1alpha1::PlanningHorizon]
589
+ attr_accessor :planning_horizon
590
+
591
+ # Required. Set of shift templates specifying rules for generating shifts. A
592
+ # shift template can be used for generating multiple shifts.
593
+ # Corresponds to the JSON property `shiftTemplates`
594
+ # @return [Array<Google::Apis::ContactcenteraiplatformV1alpha1::ShiftTemplate>]
595
+ attr_accessor :shift_templates
596
+
597
+ # Specifies additional parameters for the solver generating shifts.
598
+ # Corresponds to the JSON property `solverConfig`
599
+ # @return [Google::Apis::ContactcenteraiplatformV1alpha1::SolverConfig]
600
+ attr_accessor :solver_config
601
+
602
+ # List of workforce demands.
603
+ # Corresponds to the JSON property `workforceDemands`
604
+ # @return [Google::Apis::ContactcenteraiplatformV1alpha1::WorkforceDemandList]
605
+ attr_accessor :workforce_demands
606
+
607
+ def initialize(**args)
608
+ update!(**args)
609
+ end
610
+
611
+ # Update properties of this object
612
+ def update!(**args)
613
+ @employee_info = args[:employee_info] if args.key?(:employee_info)
614
+ @planning_horizon = args[:planning_horizon] if args.key?(:planning_horizon)
615
+ @shift_templates = args[:shift_templates] if args.key?(:shift_templates)
616
+ @solver_config = args[:solver_config] if args.key?(:solver_config)
617
+ @workforce_demands = args[:workforce_demands] if args.key?(:workforce_demands)
618
+ end
619
+ end
620
+
348
621
  # Represents the metadata of the long-running operation.
349
622
  class GoogleCloudCommonOperationMetadata
350
623
  include Google::Apis::Core::Hashable
@@ -701,6 +974,58 @@ module Google
701
974
  end
702
975
  end
703
976
 
977
+ # Specifies the time interval during which the solver should generate shifts.
978
+ # The start time must be before the end time.
979
+ class PlanningHorizon
980
+ include Google::Apis::Core::Hashable
981
+
982
+ # Represents civil time (or occasionally physical time). This type can represent
983
+ # a civil time in one of a few possible ways: * When utc_offset is set and
984
+ # time_zone is unset: a civil time on a calendar day with a particular offset
985
+ # from UTC. * When time_zone is set and utc_offset is unset: a civil time on a
986
+ # calendar day in a particular time zone. * When neither time_zone nor
987
+ # utc_offset is set: a civil time on a calendar day in local time. The date is
988
+ # relative to the Proleptic Gregorian Calendar. If year, month, or day are 0,
989
+ # the DateTime is considered not to have a specific year, month, or day
990
+ # respectively. This type may also be used to represent a physical time if all
991
+ # the date and time fields are set and either case of the `time_offset` oneof is
992
+ # set. Consider using `Timestamp` message for physical time instead. If your use
993
+ # case also would like to store the user's timezone, that can be done in another
994
+ # field. This type is more flexible than some applications may want. Make sure
995
+ # to document and validate your application's limitations.
996
+ # Corresponds to the JSON property `endTime`
997
+ # @return [Google::Apis::ContactcenteraiplatformV1alpha1::DateTime]
998
+ attr_accessor :end_time
999
+
1000
+ # Represents civil time (or occasionally physical time). This type can represent
1001
+ # a civil time in one of a few possible ways: * When utc_offset is set and
1002
+ # time_zone is unset: a civil time on a calendar day with a particular offset
1003
+ # from UTC. * When time_zone is set and utc_offset is unset: a civil time on a
1004
+ # calendar day in a particular time zone. * When neither time_zone nor
1005
+ # utc_offset is set: a civil time on a calendar day in local time. The date is
1006
+ # relative to the Proleptic Gregorian Calendar. If year, month, or day are 0,
1007
+ # the DateTime is considered not to have a specific year, month, or day
1008
+ # respectively. This type may also be used to represent a physical time if all
1009
+ # the date and time fields are set and either case of the `time_offset` oneof is
1010
+ # set. Consider using `Timestamp` message for physical time instead. If your use
1011
+ # case also would like to store the user's timezone, that can be done in another
1012
+ # field. This type is more flexible than some applications may want. Make sure
1013
+ # to document and validate your application's limitations.
1014
+ # Corresponds to the JSON property `startTime`
1015
+ # @return [Google::Apis::ContactcenteraiplatformV1alpha1::DateTime]
1016
+ attr_accessor :start_time
1017
+
1018
+ def initialize(**args)
1019
+ update!(**args)
1020
+ end
1021
+
1022
+ # Update properties of this object
1023
+ def update!(**args)
1024
+ @end_time = args[:end_time] if args.key?(:end_time)
1025
+ @start_time = args[:start_time] if args.key?(:start_time)
1026
+ end
1027
+ end
1028
+
704
1029
  # Defines ingress and egress private traffic settings for CCAIP instances.
705
1030
  class PrivateAccess
706
1031
  include Google::Apis::Core::Hashable
@@ -840,6 +1165,149 @@ module Google
840
1165
  end
841
1166
  end
842
1167
 
1168
+ # Template specifying rules for generating shifts. A shift is a unit of work
1169
+ # that specifies a start time, end time, and may contain events (e.g. lunch,
1170
+ # breaks etc.). Shifts will be assigned to specific dates in the response.
1171
+ class ShiftTemplate
1172
+ include Google::Apis::Core::Hashable
1173
+
1174
+ # Optional. A list of specific employee IDs that can be assigned to shifts
1175
+ # generated by this template. If this field is present, there will be `
1176
+ # EmployeeSchedule`s in the response for which the `EmployeeSchedule.employee_id`
1177
+ # field is set to one of the IDs in this list. The number of employee schedules
1178
+ # with an assigned employee ID will be between `minimum_employee_count` and `
1179
+ # maximum_employee_count`. If this field is empty, between `
1180
+ # minimum_employee_count` and `maximum_employee_count` employees can be assigned
1181
+ # to shifts generated by this template and the employee schedules won't have an
1182
+ # assigned employee ID. Currently, only one assignable employee ID is supported.
1183
+ # Corresponds to the JSON property `assignableEmployeeIds`
1184
+ # @return [Array<String>]
1185
+ attr_accessor :assignable_employee_ids
1186
+
1187
+ # Fixed number of days off per week. An employee has a given day off if they are
1188
+ # not assigned to a shift that starts on that day. A week is 7 days and begins
1189
+ # on Sunday.
1190
+ # Corresponds to the JSON property `daysOffCountPerWeek`
1191
+ # @return [Fixnum]
1192
+ attr_accessor :days_off_count_per_week
1193
+
1194
+ # List of dates.
1195
+ # Corresponds to the JSON property `daysOffDates`
1196
+ # @return [Google::Apis::ContactcenteraiplatformV1alpha1::DateList]
1197
+ attr_accessor :days_off_dates
1198
+
1199
+ # Required. Fixed duration of a shift generated by this template.
1200
+ # Corresponds to the JSON property `durationMinutes`
1201
+ # @return [Fixnum]
1202
+ attr_accessor :duration_minutes
1203
+
1204
+ # Represents a time of day. The date and time zone are either not significant or
1205
+ # are specified elsewhere. An API may choose to allow leap seconds. Related
1206
+ # types are google.type.Date and `google.protobuf.Timestamp`.
1207
+ # Corresponds to the JSON property `earliestStartTime`
1208
+ # @return [Google::Apis::ContactcenteraiplatformV1alpha1::TimeOfDay]
1209
+ attr_accessor :earliest_start_time
1210
+
1211
+ # Optional. Rules for generating events for each shift. Exactly one event will
1212
+ # be included in each shift for each `EventTemplate` specified.
1213
+ # Corresponds to the JSON property `eventTemplates`
1214
+ # @return [Array<Google::Apis::ContactcenteraiplatformV1alpha1::EventTemplate>]
1215
+ attr_accessor :event_templates
1216
+
1217
+ # Required. Unique ID of this template.
1218
+ # Corresponds to the JSON property `id`
1219
+ # @return [String]
1220
+ attr_accessor :id
1221
+
1222
+ # Represents a time of day. The date and time zone are either not significant or
1223
+ # are specified elsewhere. An API may choose to allow leap seconds. Related
1224
+ # types are google.type.Date and `google.protobuf.Timestamp`.
1225
+ # Corresponds to the JSON property `latestStartTime`
1226
+ # @return [Google::Apis::ContactcenteraiplatformV1alpha1::TimeOfDay]
1227
+ attr_accessor :latest_start_time
1228
+
1229
+ # Required. Maximum number of employees that can be assigned to all shifts
1230
+ # generated by this template on working days.
1231
+ # Corresponds to the JSON property `maximumEmployeeCount`
1232
+ # @return [Fixnum]
1233
+ attr_accessor :maximum_employee_count
1234
+
1235
+ # Optional. Minimum number of employees that can be assigned to all shifts
1236
+ # generated by this template on working days.
1237
+ # Corresponds to the JSON property `minimumEmployeeCount`
1238
+ # @return [Fixnum]
1239
+ attr_accessor :minimum_employee_count
1240
+
1241
+ # Optional. Minimum minutes between the end of one event and the start of the
1242
+ # next.
1243
+ # Corresponds to the JSON property `minimumIntereventGapMinutes`
1244
+ # @return [Fixnum]
1245
+ attr_accessor :minimum_interevent_gap_minutes
1246
+
1247
+ # Optional. The time increment (in minutes) used to generate the set of possible
1248
+ # start times between `earliest_start_time` and `latest_start_time`. For example,
1249
+ # if the earliest start time is 8:00, the latest start time is 8:30, and the
1250
+ # start time increment is 10 minutes, then all possible start times for this
1251
+ # shift template are: 8:00, 8:10, 8:20, and 8:30.
1252
+ # Corresponds to the JSON property `startTimeIncrementMinutes`
1253
+ # @return [Fixnum]
1254
+ attr_accessor :start_time_increment_minutes
1255
+
1256
+ def initialize(**args)
1257
+ update!(**args)
1258
+ end
1259
+
1260
+ # Update properties of this object
1261
+ def update!(**args)
1262
+ @assignable_employee_ids = args[:assignable_employee_ids] if args.key?(:assignable_employee_ids)
1263
+ @days_off_count_per_week = args[:days_off_count_per_week] if args.key?(:days_off_count_per_week)
1264
+ @days_off_dates = args[:days_off_dates] if args.key?(:days_off_dates)
1265
+ @duration_minutes = args[:duration_minutes] if args.key?(:duration_minutes)
1266
+ @earliest_start_time = args[:earliest_start_time] if args.key?(:earliest_start_time)
1267
+ @event_templates = args[:event_templates] if args.key?(:event_templates)
1268
+ @id = args[:id] if args.key?(:id)
1269
+ @latest_start_time = args[:latest_start_time] if args.key?(:latest_start_time)
1270
+ @maximum_employee_count = args[:maximum_employee_count] if args.key?(:maximum_employee_count)
1271
+ @minimum_employee_count = args[:minimum_employee_count] if args.key?(:minimum_employee_count)
1272
+ @minimum_interevent_gap_minutes = args[:minimum_interevent_gap_minutes] if args.key?(:minimum_interevent_gap_minutes)
1273
+ @start_time_increment_minutes = args[:start_time_increment_minutes] if args.key?(:start_time_increment_minutes)
1274
+ end
1275
+ end
1276
+
1277
+ # Specifies additional parameters for the solver generating shifts.
1278
+ class SolverConfig
1279
+ include Google::Apis::Core::Hashable
1280
+
1281
+ # Optional. Maximum time the solver should spend on the problem. If not set,
1282
+ # defaults to 1 minute. The choice of a time limit should depend on the size of
1283
+ # the problem. To give an example, when solving a 7-day instance with 2 `
1284
+ # ShiftTemplates`, each with ~20 possible start times and holding 2 events with ~
1285
+ # 30 possible start times, and two days off per week, recommended values are: <
1286
+ # 10s for fast solutions (and likely suboptimal), (10s, 300s) for good quality
1287
+ # solutions, and >300s for an exhaustive search. Larger instances may require
1288
+ # longer time limits. This value is not a hard limit and it does not account for
1289
+ # the communication overhead. The expected latency to solve the problem may
1290
+ # slightly exceed this value.
1291
+ # Corresponds to the JSON property `maximumProcessingDuration`
1292
+ # @return [String]
1293
+ attr_accessor :maximum_processing_duration
1294
+
1295
+ # Required. Specifies the type of schedule to generate.
1296
+ # Corresponds to the JSON property `scheduleType`
1297
+ # @return [String]
1298
+ attr_accessor :schedule_type
1299
+
1300
+ def initialize(**args)
1301
+ update!(**args)
1302
+ end
1303
+
1304
+ # Update properties of this object
1305
+ def update!(**args)
1306
+ @maximum_processing_duration = args[:maximum_processing_duration] if args.key?(:maximum_processing_duration)
1307
+ @schedule_type = args[:schedule_type] if args.key?(:schedule_type)
1308
+ end
1309
+ end
1310
+
843
1311
  # The `Status` type defines a logical error model that is suitable for different
844
1312
  # programming environments, including REST APIs and RPC APIs. It is used by [
845
1313
  # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
@@ -924,6 +1392,32 @@ module Google
924
1392
  end
925
1393
  end
926
1394
 
1395
+ # Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/
1396
+ # time-zones).
1397
+ class TimeZone
1398
+ include Google::Apis::Core::Hashable
1399
+
1400
+ # IANA Time Zone Database time zone. For example "America/New_York".
1401
+ # Corresponds to the JSON property `id`
1402
+ # @return [String]
1403
+ attr_accessor :id
1404
+
1405
+ # Optional. IANA Time Zone Database version number. For example "2019a".
1406
+ # Corresponds to the JSON property `version`
1407
+ # @return [String]
1408
+ attr_accessor :version
1409
+
1410
+ def initialize(**args)
1411
+ update!(**args)
1412
+ end
1413
+
1414
+ # Update properties of this object
1415
+ def update!(**args)
1416
+ @id = args[:id] if args.key?(:id)
1417
+ @version = args[:version] if args.key?(:version)
1418
+ end
1419
+ end
1420
+
927
1421
  # Message storing the URIs of the ContactCenter.
928
1422
  class UrIs
929
1423
  include Google::Apis::Core::Hashable
@@ -961,6 +1455,45 @@ module Google
961
1455
  end
962
1456
  end
963
1457
 
1458
+ # Specifies a time interval during which the overlap with events (generated from
1459
+ # event templates) should be minimal.
1460
+ class UnwantedEventInterval
1461
+ include Google::Apis::Core::Hashable
1462
+
1463
+ # Required. Duration of the event.
1464
+ # Corresponds to the JSON property `durationMinutes`
1465
+ # @return [Fixnum]
1466
+ attr_accessor :duration_minutes
1467
+
1468
+ # Represents civil time (or occasionally physical time). This type can represent
1469
+ # a civil time in one of a few possible ways: * When utc_offset is set and
1470
+ # time_zone is unset: a civil time on a calendar day with a particular offset
1471
+ # from UTC. * When time_zone is set and utc_offset is unset: a civil time on a
1472
+ # calendar day in a particular time zone. * When neither time_zone nor
1473
+ # utc_offset is set: a civil time on a calendar day in local time. The date is
1474
+ # relative to the Proleptic Gregorian Calendar. If year, month, or day are 0,
1475
+ # the DateTime is considered not to have a specific year, month, or day
1476
+ # respectively. This type may also be used to represent a physical time if all
1477
+ # the date and time fields are set and either case of the `time_offset` oneof is
1478
+ # set. Consider using `Timestamp` message for physical time instead. If your use
1479
+ # case also would like to store the user's timezone, that can be done in another
1480
+ # field. This type is more flexible than some applications may want. Make sure
1481
+ # to document and validate your application's limitations.
1482
+ # Corresponds to the JSON property `startTime`
1483
+ # @return [Google::Apis::ContactcenteraiplatformV1alpha1::DateTime]
1484
+ attr_accessor :start_time
1485
+
1486
+ def initialize(**args)
1487
+ update!(**args)
1488
+ end
1489
+
1490
+ # Update properties of this object
1491
+ def update!(**args)
1492
+ @duration_minutes = args[:duration_minutes] if args.key?(:duration_minutes)
1493
+ @start_time = args[:start_time] if args.key?(:start_time)
1494
+ end
1495
+ end
1496
+
964
1497
  # Message representing a weekly schedule.
965
1498
  class WeeklySchedule
966
1499
  include Google::Apis::Core::Hashable
@@ -1001,6 +1534,83 @@ module Google
1001
1534
  @start_time = args[:start_time] if args.key?(:start_time)
1002
1535
  end
1003
1536
  end
1537
+
1538
+ # Specifies the number of employees required to cover the demand in the given
1539
+ # time interval. The length of the interval must be strictly positive.
1540
+ class WorkforceDemand
1541
+ include Google::Apis::Core::Hashable
1542
+
1543
+ # Optional. Number of employees needed to cover the demand for this interval.
1544
+ # Corresponds to the JSON property `employeeCount`
1545
+ # @return [Fixnum]
1546
+ attr_accessor :employee_count
1547
+
1548
+ # Represents civil time (or occasionally physical time). This type can represent
1549
+ # a civil time in one of a few possible ways: * When utc_offset is set and
1550
+ # time_zone is unset: a civil time on a calendar day with a particular offset
1551
+ # from UTC. * When time_zone is set and utc_offset is unset: a civil time on a
1552
+ # calendar day in a particular time zone. * When neither time_zone nor
1553
+ # utc_offset is set: a civil time on a calendar day in local time. The date is
1554
+ # relative to the Proleptic Gregorian Calendar. If year, month, or day are 0,
1555
+ # the DateTime is considered not to have a specific year, month, or day
1556
+ # respectively. This type may also be used to represent a physical time if all
1557
+ # the date and time fields are set and either case of the `time_offset` oneof is
1558
+ # set. Consider using `Timestamp` message for physical time instead. If your use
1559
+ # case also would like to store the user's timezone, that can be done in another
1560
+ # field. This type is more flexible than some applications may want. Make sure
1561
+ # to document and validate your application's limitations.
1562
+ # Corresponds to the JSON property `endTime`
1563
+ # @return [Google::Apis::ContactcenteraiplatformV1alpha1::DateTime]
1564
+ attr_accessor :end_time
1565
+
1566
+ # Represents civil time (or occasionally physical time). This type can represent
1567
+ # a civil time in one of a few possible ways: * When utc_offset is set and
1568
+ # time_zone is unset: a civil time on a calendar day with a particular offset
1569
+ # from UTC. * When time_zone is set and utc_offset is unset: a civil time on a
1570
+ # calendar day in a particular time zone. * When neither time_zone nor
1571
+ # utc_offset is set: a civil time on a calendar day in local time. The date is
1572
+ # relative to the Proleptic Gregorian Calendar. If year, month, or day are 0,
1573
+ # the DateTime is considered not to have a specific year, month, or day
1574
+ # respectively. This type may also be used to represent a physical time if all
1575
+ # the date and time fields are set and either case of the `time_offset` oneof is
1576
+ # set. Consider using `Timestamp` message for physical time instead. If your use
1577
+ # case also would like to store the user's timezone, that can be done in another
1578
+ # field. This type is more flexible than some applications may want. Make sure
1579
+ # to document and validate your application's limitations.
1580
+ # Corresponds to the JSON property `startTime`
1581
+ # @return [Google::Apis::ContactcenteraiplatformV1alpha1::DateTime]
1582
+ attr_accessor :start_time
1583
+
1584
+ def initialize(**args)
1585
+ update!(**args)
1586
+ end
1587
+
1588
+ # Update properties of this object
1589
+ def update!(**args)
1590
+ @employee_count = args[:employee_count] if args.key?(:employee_count)
1591
+ @end_time = args[:end_time] if args.key?(:end_time)
1592
+ @start_time = args[:start_time] if args.key?(:start_time)
1593
+ end
1594
+ end
1595
+
1596
+ # List of workforce demands.
1597
+ class WorkforceDemandList
1598
+ include Google::Apis::Core::Hashable
1599
+
1600
+ # Optional. Values in the list.
1601
+ # Corresponds to the JSON property `values`
1602
+ # @return [Array<Google::Apis::ContactcenteraiplatformV1alpha1::WorkforceDemand>]
1603
+ attr_accessor :values
1604
+
1605
+ def initialize(**args)
1606
+ update!(**args)
1607
+ end
1608
+
1609
+ # Update properties of this object
1610
+ def update!(**args)
1611
+ @values = args[:values] if args.key?(:values)
1612
+ end
1613
+ end
1004
1614
  end
1005
1615
  end
1006
1616
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ContactcenteraiplatformV1alpha1
18
18
  # Version of the google-apis-contactcenteraiplatform_v1alpha1 gem
19
- GEM_VERSION = "0.35.0"
19
+ GEM_VERSION = "0.36.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20251115"
25
+ REVISION = "20251204"
26
26
  end
27
27
  end
28
28
  end
@@ -58,24 +58,60 @@ module Google
58
58
  include Google::Apis::Core::JsonObjectSupport
59
59
  end
60
60
 
61
+ class Date
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class DateList
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class DateTime
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
61
79
  class Early
62
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
81
 
64
82
  include Google::Apis::Core::JsonObjectSupport
65
83
  end
66
84
 
85
+ class EmployeeInfo
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
67
91
  class Empty
68
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
93
 
70
94
  include Google::Apis::Core::JsonObjectSupport
71
95
  end
72
96
 
97
+ class EventTemplate
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
73
103
  class FeatureConfig
74
104
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
105
 
76
106
  include Google::Apis::Core::JsonObjectSupport
77
107
  end
78
108
 
109
+ class GenerateShiftsRequest
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
79
115
  class GoogleCloudCommonOperationMetadata
80
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
117
 
@@ -130,6 +166,12 @@ module Google
130
166
  include Google::Apis::Core::JsonObjectSupport
131
167
  end
132
168
 
169
+ class PlanningHorizon
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
133
175
  class PrivateAccess
134
176
  class Representation < Google::Apis::Core::JsonRepresentation; end
135
177
 
@@ -154,6 +196,18 @@ module Google
154
196
  include Google::Apis::Core::JsonObjectSupport
155
197
  end
156
198
 
199
+ class ShiftTemplate
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
205
+ class SolverConfig
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
157
211
  class Status
158
212
  class Representation < Google::Apis::Core::JsonRepresentation; end
159
213
 
@@ -166,18 +220,42 @@ module Google
166
220
  include Google::Apis::Core::JsonObjectSupport
167
221
  end
168
222
 
223
+ class TimeZone
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
169
229
  class UrIs
170
230
  class Representation < Google::Apis::Core::JsonRepresentation; end
171
231
 
172
232
  include Google::Apis::Core::JsonObjectSupport
173
233
  end
174
234
 
235
+ class UnwantedEventInterval
236
+ class Representation < Google::Apis::Core::JsonRepresentation; end
237
+
238
+ include Google::Apis::Core::JsonObjectSupport
239
+ end
240
+
175
241
  class WeeklySchedule
176
242
  class Representation < Google::Apis::Core::JsonRepresentation; end
177
243
 
178
244
  include Google::Apis::Core::JsonObjectSupport
179
245
  end
180
246
 
247
+ class WorkforceDemand
248
+ class Representation < Google::Apis::Core::JsonRepresentation; end
249
+
250
+ include Google::Apis::Core::JsonObjectSupport
251
+ end
252
+
253
+ class WorkforceDemandList
254
+ class Representation < Google::Apis::Core::JsonRepresentation; end
255
+
256
+ include Google::Apis::Core::JsonObjectSupport
257
+ end
258
+
181
259
  class AdminUser
182
260
  # @private
183
261
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -255,18 +333,71 @@ module Google
255
333
  end
256
334
  end
257
335
 
336
+ class Date
337
+ # @private
338
+ class Representation < Google::Apis::Core::JsonRepresentation
339
+ property :day, as: 'day'
340
+ property :month, as: 'month'
341
+ property :year, as: 'year'
342
+ end
343
+ end
344
+
345
+ class DateList
346
+ # @private
347
+ class Representation < Google::Apis::Core::JsonRepresentation
348
+ collection :values, as: 'values', class: Google::Apis::ContactcenteraiplatformV1alpha1::Date, decorator: Google::Apis::ContactcenteraiplatformV1alpha1::Date::Representation
349
+
350
+ end
351
+ end
352
+
353
+ class DateTime
354
+ # @private
355
+ class Representation < Google::Apis::Core::JsonRepresentation
356
+ property :day, as: 'day'
357
+ property :hours, as: 'hours'
358
+ property :minutes, as: 'minutes'
359
+ property :month, as: 'month'
360
+ property :nanos, as: 'nanos'
361
+ property :seconds, as: 'seconds'
362
+ property :time_zone, as: 'timeZone', class: Google::Apis::ContactcenteraiplatformV1alpha1::TimeZone, decorator: Google::Apis::ContactcenteraiplatformV1alpha1::TimeZone::Representation
363
+
364
+ property :utc_offset, as: 'utcOffset'
365
+ property :year, as: 'year'
366
+ end
367
+ end
368
+
258
369
  class Early
259
370
  # @private
260
371
  class Representation < Google::Apis::Core::JsonRepresentation
261
372
  end
262
373
  end
263
374
 
375
+ class EmployeeInfo
376
+ # @private
377
+ class Representation < Google::Apis::Core::JsonRepresentation
378
+ property :id, as: 'id'
379
+ collection :unwanted_event_intervals, as: 'unwantedEventIntervals', class: Google::Apis::ContactcenteraiplatformV1alpha1::UnwantedEventInterval, decorator: Google::Apis::ContactcenteraiplatformV1alpha1::UnwantedEventInterval::Representation
380
+
381
+ end
382
+ end
383
+
264
384
  class Empty
265
385
  # @private
266
386
  class Representation < Google::Apis::Core::JsonRepresentation
267
387
  end
268
388
  end
269
389
 
390
+ class EventTemplate
391
+ # @private
392
+ class Representation < Google::Apis::Core::JsonRepresentation
393
+ property :duration_minutes, as: 'durationMinutes'
394
+ property :id, as: 'id'
395
+ property :maximum_minutes_after_shift_start, as: 'maximumMinutesAfterShiftStart'
396
+ property :minimum_minutes_after_shift_start, as: 'minimumMinutesAfterShiftStart'
397
+ property :start_time_increment_minutes, as: 'startTimeIncrementMinutes'
398
+ end
399
+ end
400
+
270
401
  class FeatureConfig
271
402
  # @private
272
403
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -274,6 +405,22 @@ module Google
274
405
  end
275
406
  end
276
407
 
408
+ class GenerateShiftsRequest
409
+ # @private
410
+ class Representation < Google::Apis::Core::JsonRepresentation
411
+ collection :employee_info, as: 'employeeInfo', class: Google::Apis::ContactcenteraiplatformV1alpha1::EmployeeInfo, decorator: Google::Apis::ContactcenteraiplatformV1alpha1::EmployeeInfo::Representation
412
+
413
+ property :planning_horizon, as: 'planningHorizon', class: Google::Apis::ContactcenteraiplatformV1alpha1::PlanningHorizon, decorator: Google::Apis::ContactcenteraiplatformV1alpha1::PlanningHorizon::Representation
414
+
415
+ collection :shift_templates, as: 'shiftTemplates', class: Google::Apis::ContactcenteraiplatformV1alpha1::ShiftTemplate, decorator: Google::Apis::ContactcenteraiplatformV1alpha1::ShiftTemplate::Representation
416
+
417
+ property :solver_config, as: 'solverConfig', class: Google::Apis::ContactcenteraiplatformV1alpha1::SolverConfig, decorator: Google::Apis::ContactcenteraiplatformV1alpha1::SolverConfig::Representation
418
+
419
+ property :workforce_demands, as: 'workforceDemands', class: Google::Apis::ContactcenteraiplatformV1alpha1::WorkforceDemandList, decorator: Google::Apis::ContactcenteraiplatformV1alpha1::WorkforceDemandList::Representation
420
+
421
+ end
422
+ end
423
+
277
424
  class GoogleCloudCommonOperationMetadata
278
425
  # @private
279
426
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -367,6 +514,16 @@ module Google
367
514
  end
368
515
  end
369
516
 
517
+ class PlanningHorizon
518
+ # @private
519
+ class Representation < Google::Apis::Core::JsonRepresentation
520
+ property :end_time, as: 'endTime', class: Google::Apis::ContactcenteraiplatformV1alpha1::DateTime, decorator: Google::Apis::ContactcenteraiplatformV1alpha1::DateTime::Representation
521
+
522
+ property :start_time, as: 'startTime', class: Google::Apis::ContactcenteraiplatformV1alpha1::DateTime, decorator: Google::Apis::ContactcenteraiplatformV1alpha1::DateTime::Representation
523
+
524
+ end
525
+ end
526
+
370
527
  class PrivateAccess
371
528
  # @private
372
529
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -408,6 +565,36 @@ module Google
408
565
  end
409
566
  end
410
567
 
568
+ class ShiftTemplate
569
+ # @private
570
+ class Representation < Google::Apis::Core::JsonRepresentation
571
+ collection :assignable_employee_ids, as: 'assignableEmployeeIds'
572
+ property :days_off_count_per_week, as: 'daysOffCountPerWeek'
573
+ property :days_off_dates, as: 'daysOffDates', class: Google::Apis::ContactcenteraiplatformV1alpha1::DateList, decorator: Google::Apis::ContactcenteraiplatformV1alpha1::DateList::Representation
574
+
575
+ property :duration_minutes, as: 'durationMinutes'
576
+ property :earliest_start_time, as: 'earliestStartTime', class: Google::Apis::ContactcenteraiplatformV1alpha1::TimeOfDay, decorator: Google::Apis::ContactcenteraiplatformV1alpha1::TimeOfDay::Representation
577
+
578
+ collection :event_templates, as: 'eventTemplates', class: Google::Apis::ContactcenteraiplatformV1alpha1::EventTemplate, decorator: Google::Apis::ContactcenteraiplatformV1alpha1::EventTemplate::Representation
579
+
580
+ property :id, as: 'id'
581
+ property :latest_start_time, as: 'latestStartTime', class: Google::Apis::ContactcenteraiplatformV1alpha1::TimeOfDay, decorator: Google::Apis::ContactcenteraiplatformV1alpha1::TimeOfDay::Representation
582
+
583
+ property :maximum_employee_count, as: 'maximumEmployeeCount'
584
+ property :minimum_employee_count, as: 'minimumEmployeeCount'
585
+ property :minimum_interevent_gap_minutes, as: 'minimumIntereventGapMinutes'
586
+ property :start_time_increment_minutes, as: 'startTimeIncrementMinutes'
587
+ end
588
+ end
589
+
590
+ class SolverConfig
591
+ # @private
592
+ class Representation < Google::Apis::Core::JsonRepresentation
593
+ property :maximum_processing_duration, as: 'maximumProcessingDuration'
594
+ property :schedule_type, as: 'scheduleType'
595
+ end
596
+ end
597
+
411
598
  class Status
412
599
  # @private
413
600
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -427,6 +614,14 @@ module Google
427
614
  end
428
615
  end
429
616
 
617
+ class TimeZone
618
+ # @private
619
+ class Representation < Google::Apis::Core::JsonRepresentation
620
+ property :id, as: 'id'
621
+ property :version, as: 'version'
622
+ end
623
+ end
624
+
430
625
  class UrIs
431
626
  # @private
432
627
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -437,6 +632,15 @@ module Google
437
632
  end
438
633
  end
439
634
 
635
+ class UnwantedEventInterval
636
+ # @private
637
+ class Representation < Google::Apis::Core::JsonRepresentation
638
+ property :duration_minutes, as: 'durationMinutes'
639
+ property :start_time, as: 'startTime', class: Google::Apis::ContactcenteraiplatformV1alpha1::DateTime, decorator: Google::Apis::ContactcenteraiplatformV1alpha1::DateTime::Representation
640
+
641
+ end
642
+ end
643
+
440
644
  class WeeklySchedule
441
645
  # @private
442
646
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -448,6 +652,25 @@ module Google
448
652
 
449
653
  end
450
654
  end
655
+
656
+ class WorkforceDemand
657
+ # @private
658
+ class Representation < Google::Apis::Core::JsonRepresentation
659
+ property :employee_count, as: 'employeeCount'
660
+ property :end_time, as: 'endTime', class: Google::Apis::ContactcenteraiplatformV1alpha1::DateTime, decorator: Google::Apis::ContactcenteraiplatformV1alpha1::DateTime::Representation
661
+
662
+ property :start_time, as: 'startTime', class: Google::Apis::ContactcenteraiplatformV1alpha1::DateTime, decorator: Google::Apis::ContactcenteraiplatformV1alpha1::DateTime::Representation
663
+
664
+ end
665
+ end
666
+
667
+ class WorkforceDemandList
668
+ # @private
669
+ class Representation < Google::Apis::Core::JsonRepresentation
670
+ collection :values, as: 'values', class: Google::Apis::ContactcenteraiplatformV1alpha1::WorkforceDemand, decorator: Google::Apis::ContactcenteraiplatformV1alpha1::WorkforceDemand::Representation
671
+
672
+ end
673
+ end
451
674
  end
452
675
  end
453
676
  end
@@ -51,6 +51,40 @@ module Google
51
51
  @batch_path = 'batch'
52
52
  end
53
53
 
54
+ # Generates shifts constrained by various parameters.
55
+ # @param [String] parent
56
+ # Required. Name of the parent resource associated with the request. Format:
57
+ # projects/`project`/locations/`location`
58
+ # @param [Google::Apis::ContactcenteraiplatformV1alpha1::GenerateShiftsRequest] generate_shifts_request_object
59
+ # @param [String] fields
60
+ # Selector specifying which fields to include in a partial response.
61
+ # @param [String] quota_user
62
+ # Available to use for quota purposes for server-side applications. Can be any
63
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
64
+ # @param [Google::Apis::RequestOptions] options
65
+ # Request-specific options
66
+ #
67
+ # @yield [result, err] Result & error if block supplied
68
+ # @yieldparam result [Google::Apis::ContactcenteraiplatformV1alpha1::Operation] parsed result object
69
+ # @yieldparam err [StandardError] error object if request failed
70
+ #
71
+ # @return [Google::Apis::ContactcenteraiplatformV1alpha1::Operation]
72
+ #
73
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
74
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
75
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
76
+ def generate_location_shifts(parent, generate_shifts_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
77
+ command = make_simple_command(:post, 'v1alpha1/{+parent}:generateShifts', options)
78
+ command.request_representation = Google::Apis::ContactcenteraiplatformV1alpha1::GenerateShiftsRequest::Representation
79
+ command.request_object = generate_shifts_request_object
80
+ command.response_representation = Google::Apis::ContactcenteraiplatformV1alpha1::Operation::Representation
81
+ command.response_class = Google::Apis::ContactcenteraiplatformV1alpha1::Operation
82
+ command.params['parent'] = parent unless parent.nil?
83
+ command.query['fields'] = fields unless fields.nil?
84
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
85
+ execute_or_queue_command(command, &block)
86
+ end
87
+
54
88
  # Gets information about a location.
55
89
  # @param [String] name
56
90
  # Resource name for the location.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-contactcenteraiplatform_v1alpha1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.35.0
4
+ version: 0.36.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-contactcenteraiplatform_v1alpha1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-contactcenteraiplatform_v1alpha1/v0.35.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-contactcenteraiplatform_v1alpha1/v0.36.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-contactcenteraiplatform_v1alpha1
62
62
  rdoc_options: []
63
63
  require_paths: