google-apis-cloudtasks_v2beta2 0.20.0 → 0.23.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: 5721ab1143a22cb7d390290b70f868b8a2f5b7abebb407949aab01fc44c765c4
4
- data.tar.gz: 950765f492861042db9129388a772705634d334bcbdc22653d717b1e462478bb
3
+ metadata.gz: 1d8d763672a671a78e097d803042eba67392bf4235d88512d0b43d524c5c4378
4
+ data.tar.gz: 98050c845792f2378f2d07f6e4d880db642d2b3a5131324d1fd28e4c6b9614b4
5
5
  SHA512:
6
- metadata.gz: eceae796f3e0b6e7b92bfa20df4114edeb5226348dcae61cddb725f9d40a8dc7b5ed250a8aae9b90ec95d4a32697e6734f08600b778f46d6549e7a733db4ba11
7
- data.tar.gz: 4d9a45981dd12b4bb298631dda031652efed22127f9bde49da5ceb320a45c759033fdea065263ad9ca75a7d487975f240a825f0ce4c3564e6baac23fb746c396
6
+ metadata.gz: 8b4734b497d8d52ac23a8261fce5dd4c2be2795e7804b9d95875b3a48dc800d737cc9d18b354d38b14e7aad55a266472b11ceb953332c3f487807f03908aee65
7
+ data.tar.gz: d8a354731d94bcfdf8f173c919195888d34331b3294e03aa07ad4a283503dec034c9f5be40023b01e29fc3f93ff638d1820a6d307bc764a0d43d19d33bd832c0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Release history for google-apis-cloudtasks_v2beta2
2
2
 
3
+ ### v0.23.0 (2022-08-03)
4
+
5
+ * Regenerated from discovery document revision 20220803
6
+
7
+ ### v0.22.0 (2022-07-24)
8
+
9
+ * Regenerated from discovery document revision 20220722
10
+
11
+ ### v0.21.0 (2022-07-14)
12
+
13
+ * Regenerated from discovery document revision 20220713
14
+ * Regenerated using generator version 0.9.0
15
+
3
16
  ### v0.20.0 (2022-07-02)
4
17
 
5
18
  * Regenerated using generator version 0.8.0
@@ -356,25 +356,28 @@ module Google
356
356
  # anyone who is authenticated with a Google account or a service account. * `
357
357
  # user:`emailid``: An email address that represents a specific Google account.
358
358
  # For example, `alice@example.com` . * `serviceAccount:`emailid``: An email
359
- # address that represents a service account. For example, `my-other-app@appspot.
360
- # gserviceaccount.com`. * `group:`emailid``: An email address that represents a
361
- # Google group. For example, `admins@example.com`. * `deleted:user:`emailid`?uid=
362
- # `uniqueid``: An email address (plus unique identifier) representing a user
363
- # that has been recently deleted. For example, `alice@example.com?uid=
364
- # 123456789012345678901`. If the user is recovered, this value reverts to `user:`
365
- # emailid`` and the recovered user retains the role in the binding. * `deleted:
366
- # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique
367
- # identifier) representing a service account that has been recently deleted. For
368
- # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
369
- # If the service account is undeleted, this value reverts to `serviceAccount:`
370
- # emailid`` and the undeleted service account retains the role in the binding. *
371
- # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique
372
- # identifier) representing a Google group that has been recently deleted. For
373
- # example, `admins@example.com?uid=123456789012345678901`. If the group is
374
- # recovered, this value reverts to `group:`emailid`` and the recovered group
375
- # retains the role in the binding. * `domain:`domain``: The G Suite domain (
376
- # primary) that represents all the users of that domain. For example, `google.
377
- # com` or `example.com`.
359
+ # address that represents a Google service account. For example, `my-other-app@
360
+ # appspot.gserviceaccount.com`. * `serviceAccount:`projectid`.svc.id.goog[`
361
+ # namespace`/`kubernetes-sa`]`: An identifier for a [Kubernetes service account](
362
+ # https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-
363
+ # accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`
364
+ # . * `group:`emailid``: An email address that represents a Google group. For
365
+ # example, `admins@example.com`. * `deleted:user:`emailid`?uid=`uniqueid``: An
366
+ # email address (plus unique identifier) representing a user that has been
367
+ # recently deleted. For example, `alice@example.com?uid=123456789012345678901`.
368
+ # If the user is recovered, this value reverts to `user:`emailid`` and the
369
+ # recovered user retains the role in the binding. * `deleted:serviceAccount:`
370
+ # emailid`?uid=`uniqueid``: An email address (plus unique identifier)
371
+ # representing a service account that has been recently deleted. For example, `
372
+ # my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the
373
+ # service account is undeleted, this value reverts to `serviceAccount:`emailid``
374
+ # and the undeleted service account retains the role in the binding. * `deleted:
375
+ # group:`emailid`?uid=`uniqueid``: An email address (plus unique identifier)
376
+ # representing a Google group that has been recently deleted. For example, `
377
+ # admins@example.com?uid=123456789012345678901`. If the group is recovered, this
378
+ # value reverts to `group:`emailid`` and the recovered group retains the role in
379
+ # the binding. * `domain:`domain``: The G Suite domain (primary) that represents
380
+ # all the users of that domain. For example, `google.com` or `example.com`.
378
381
  # Corresponds to the JSON property `members`
379
382
  # @return [Array<String>]
380
383
  attr_accessor :members
@@ -397,6 +400,61 @@ module Google
397
400
  end
398
401
  end
399
402
 
403
+ # Request message for BufferQueue.
404
+ class BufferQueueRequest
405
+ include Google::Apis::Core::Hashable
406
+
407
+ # Message that represents an arbitrary HTTP body. It should only be used for
408
+ # payload formats that can't be represented as JSON, such as raw binary or an
409
+ # HTML page. This message can be used both in streaming and non-streaming API
410
+ # methods in the request as well as the response. It can be used as a top-level
411
+ # request field, which is convenient if one wants to extract parameters from
412
+ # either the URL or HTTP template into the request fields and also want access
413
+ # to the raw HTTP body. Example: message GetResourceRequest ` // A unique
414
+ # request id. string request_id = 1; // The raw HTTP body is bound to this field.
415
+ # google.api.HttpBody http_body = 2; ` service ResourceService ` rpc
416
+ # GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc
417
+ # UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); ` Example
418
+ # with streaming methods: service CaldavService ` rpc GetCalendar(stream google.
419
+ # api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream
420
+ # google.api.HttpBody) returns (stream google.api.HttpBody); ` Use of this type
421
+ # only changes how the request and response bodies are handled, all other
422
+ # features will continue to work unchanged.
423
+ # Corresponds to the JSON property `body`
424
+ # @return [Google::Apis::CloudtasksV2beta2::HttpBody]
425
+ attr_accessor :body
426
+
427
+ def initialize(**args)
428
+ update!(**args)
429
+ end
430
+
431
+ # Update properties of this object
432
+ def update!(**args)
433
+ @body = args[:body] if args.key?(:body)
434
+ end
435
+ end
436
+
437
+ # Response message for BufferQueue.
438
+ class BufferQueueResponse
439
+ include Google::Apis::Core::Hashable
440
+
441
+ # The name of the created task. For example: `projects/PROJECT_ID/locations/
442
+ # LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`. TASK_ID is randomly generated and
443
+ # is unique within the queue.
444
+ # Corresponds to the JSON property `task`
445
+ # @return [String]
446
+ attr_accessor :task
447
+
448
+ def initialize(**args)
449
+ update!(**args)
450
+ end
451
+
452
+ # Update properties of this object
453
+ def update!(**args)
454
+ @task = args[:task] if args.key?(:task)
455
+ end
456
+ end
457
+
400
458
  # Request message for canceling a lease using CancelLease.
401
459
  class CancelLeaseRequest
402
460
  include Google::Apis::Core::Hashable
@@ -576,6 +634,248 @@ module Google
576
634
  end
577
635
  end
578
636
 
637
+ # Defines a header message. A header can have a key and a value.
638
+ class Header
639
+ include Google::Apis::Core::Hashable
640
+
641
+ #
642
+ # Corresponds to the JSON property `key`
643
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
644
+ # @return [String]
645
+ attr_accessor :key
646
+
647
+ #
648
+ # Corresponds to the JSON property `value`
649
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
650
+ # @return [String]
651
+ attr_accessor :value
652
+
653
+ def initialize(**args)
654
+ update!(**args)
655
+ end
656
+
657
+ # Update properties of this object
658
+ def update!(**args)
659
+ @key = args[:key] if args.key?(:key)
660
+ @value = args[:value] if args.key?(:value)
661
+ end
662
+ end
663
+
664
+ # Wraps the Header object.
665
+ class HeaderOverride
666
+ include Google::Apis::Core::Hashable
667
+
668
+ # Defines a header message. A header can have a key and a value.
669
+ # Corresponds to the JSON property `header`
670
+ # @return [Google::Apis::CloudtasksV2beta2::Header]
671
+ attr_accessor :header
672
+
673
+ def initialize(**args)
674
+ update!(**args)
675
+ end
676
+
677
+ # Update properties of this object
678
+ def update!(**args)
679
+ @header = args[:header] if args.key?(:header)
680
+ end
681
+ end
682
+
683
+ # Message that represents an arbitrary HTTP body. It should only be used for
684
+ # payload formats that can't be represented as JSON, such as raw binary or an
685
+ # HTML page. This message can be used both in streaming and non-streaming API
686
+ # methods in the request as well as the response. It can be used as a top-level
687
+ # request field, which is convenient if one wants to extract parameters from
688
+ # either the URL or HTTP template into the request fields and also want access
689
+ # to the raw HTTP body. Example: message GetResourceRequest ` // A unique
690
+ # request id. string request_id = 1; // The raw HTTP body is bound to this field.
691
+ # google.api.HttpBody http_body = 2; ` service ResourceService ` rpc
692
+ # GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc
693
+ # UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); ` Example
694
+ # with streaming methods: service CaldavService ` rpc GetCalendar(stream google.
695
+ # api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream
696
+ # google.api.HttpBody) returns (stream google.api.HttpBody); ` Use of this type
697
+ # only changes how the request and response bodies are handled, all other
698
+ # features will continue to work unchanged.
699
+ class HttpBody
700
+ include Google::Apis::Core::Hashable
701
+
702
+ # The HTTP Content-Type header value specifying the content type of the body.
703
+ # Corresponds to the JSON property `contentType`
704
+ # @return [String]
705
+ attr_accessor :content_type
706
+
707
+ # The HTTP request/response body as raw binary.
708
+ # Corresponds to the JSON property `data`
709
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
710
+ # @return [String]
711
+ attr_accessor :data
712
+
713
+ # Application specific response metadata. Must be set in the first response for
714
+ # streaming APIs.
715
+ # Corresponds to the JSON property `extensions`
716
+ # @return [Array<Hash<String,Object>>]
717
+ attr_accessor :extensions
718
+
719
+ def initialize(**args)
720
+ update!(**args)
721
+ end
722
+
723
+ # Update properties of this object
724
+ def update!(**args)
725
+ @content_type = args[:content_type] if args.key?(:content_type)
726
+ @data = args[:data] if args.key?(:data)
727
+ @extensions = args[:extensions] if args.key?(:extensions)
728
+ end
729
+ end
730
+
731
+ # HTTP request. The task will be pushed to the worker as an HTTP request. An
732
+ # HTTP request embodies a url, an http method, headers, body and authorization
733
+ # for the http task.
734
+ class HttpRequest
735
+ include Google::Apis::Core::Hashable
736
+
737
+ # HTTP request body. A request body is allowed only if the HTTP method is POST,
738
+ # PUT, or PATCH. It is an error to set body on a task with an incompatible
739
+ # HttpMethod.
740
+ # Corresponds to the JSON property `body`
741
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
742
+ # @return [String]
743
+ attr_accessor :body
744
+
745
+ # HTTP request headers. This map contains the header field names and values.
746
+ # Headers can be set when running the task is created or task is created. These
747
+ # headers represent a subset of the headers that will accompany the task's HTTP
748
+ # request. Some HTTP request headers will be ignored or replaced. A partial list
749
+ # of headers that will be ignored or replaced is: * Any header that is prefixed
750
+ # with "X-Google-Cloud-Tasks-" will be treated as service header. Service
751
+ # headers define properties of the task and are predefined in CloudTask. * Host:
752
+ # This will be computed by Cloud Tasks and derived from HttpRequest.url. *
753
+ # Content-Length: This will be computed by Cloud Tasks. * User-Agent: This will
754
+ # be set to `"Google-Cloud-Tasks"`. * `X-Google-*`: Google use only. * `X-
755
+ # AppEngine-*`: Google use only. `Content-Type` won't be set by Cloud Tasks. You
756
+ # can explicitly set `Content-Type` to a media type when the task is created.
757
+ # For example, `Content-Type` can be set to `"application/octet-stream"` or `"
758
+ # application/json"`. Headers which can have multiple values (according to
759
+ # RFC2616) can be specified using comma-separated values. The size of the
760
+ # headers must be less than 80KB.
761
+ # Corresponds to the JSON property `headers`
762
+ # @return [Hash<String,String>]
763
+ attr_accessor :headers
764
+
765
+ # The HTTP method to use for the request. The default is POST.
766
+ # Corresponds to the JSON property `httpMethod`
767
+ # @return [String]
768
+ attr_accessor :http_method
769
+
770
+ # Contains information needed for generating an [OAuth token](https://developers.
771
+ # google.com/identity/protocols/OAuth2). This type of authorization should
772
+ # generally only be used when calling Google APIs hosted on *.googleapis.com.
773
+ # Corresponds to the JSON property `oauthToken`
774
+ # @return [Google::Apis::CloudtasksV2beta2::OAuthToken]
775
+ attr_accessor :oauth_token
776
+
777
+ # Contains information needed for generating an [OpenID Connect token](https://
778
+ # developers.google.com/identity/protocols/OpenIDConnect). This type of
779
+ # authorization can be used for many scenarios, including calling Cloud Run, or
780
+ # endpoints where you intend to validate the token yourself.
781
+ # Corresponds to the JSON property `oidcToken`
782
+ # @return [Google::Apis::CloudtasksV2beta2::OidcToken]
783
+ attr_accessor :oidc_token
784
+
785
+ # Required. The full url path that the request will be sent to. This string must
786
+ # begin with either "http://" or "https://". Some examples are: `http://acme.com`
787
+ # and `https://acme.com/sales:8080`. Cloud Tasks will encode some characters
788
+ # for safety and compatibility. The maximum allowed URL length is 2083
789
+ # characters after encoding. The `Location` header response from a redirect
790
+ # response [`300` - `399`] may be followed. The redirect is not counted as a
791
+ # separate attempt.
792
+ # Corresponds to the JSON property `url`
793
+ # @return [String]
794
+ attr_accessor :url
795
+
796
+ def initialize(**args)
797
+ update!(**args)
798
+ end
799
+
800
+ # Update properties of this object
801
+ def update!(**args)
802
+ @body = args[:body] if args.key?(:body)
803
+ @headers = args[:headers] if args.key?(:headers)
804
+ @http_method = args[:http_method] if args.key?(:http_method)
805
+ @oauth_token = args[:oauth_token] if args.key?(:oauth_token)
806
+ @oidc_token = args[:oidc_token] if args.key?(:oidc_token)
807
+ @url = args[:url] if args.key?(:url)
808
+ end
809
+ end
810
+
811
+ # HTTP target. When specified as a Queue, all the tasks with [HttpRequest] will
812
+ # be overridden according to the target.
813
+ class HttpTarget
814
+ include Google::Apis::Core::Hashable
815
+
816
+ # HTTP target headers. This map contains the header field names and values.
817
+ # Headers will be set when running the task is created and/or task is created.
818
+ # These headers represent a subset of the headers that will accompany the task's
819
+ # HTTP request. Some HTTP request headers will be ignored or replaced. A partial
820
+ # list of headers that will be ignored or replaced is: * Any header that is
821
+ # prefixed with "X-Google-Cloud-Tasks-" will be treated as service header.
822
+ # Service headers define properties of the task and are predefined in CloudTask.
823
+ # * Host: This will be computed by Cloud Tasks and derived from HttpRequest.url.
824
+ # * Content-Length: This will be computed by Cloud Tasks. * User-Agent: This
825
+ # will be set to `"Google-Cloud-Tasks"`. * `X-Google-*`: Google use only. * `X-
826
+ # AppEngine-*`: Google use only. `Content-Type` won't be set by Cloud Tasks. You
827
+ # can explicitly set `Content-Type` to a media type when the task is created.
828
+ # For example, `Content-Type` can be set to `"application/octet-stream"` or `"
829
+ # application/json"`. Headers which can have multiple values (according to
830
+ # RFC2616) can be specified using comma-separated values. The size of the
831
+ # headers must be less than 80KB. Queue-level headers to override headers of all
832
+ # the tasks in the queue.
833
+ # Corresponds to the JSON property `headerOverrides`
834
+ # @return [Array<Google::Apis::CloudtasksV2beta2::HeaderOverride>]
835
+ attr_accessor :header_overrides
836
+
837
+ # The HTTP method to use for the request. When specified, it will override
838
+ # HttpRequest for the task. Note that if the value is set to HttpMethod the
839
+ # HttpRequest of the task will be ignored at execution time.
840
+ # Corresponds to the JSON property `httpMethod`
841
+ # @return [String]
842
+ attr_accessor :http_method
843
+
844
+ # Contains information needed for generating an [OAuth token](https://developers.
845
+ # google.com/identity/protocols/OAuth2). This type of authorization should
846
+ # generally only be used when calling Google APIs hosted on *.googleapis.com.
847
+ # Corresponds to the JSON property `oauthToken`
848
+ # @return [Google::Apis::CloudtasksV2beta2::OAuthToken]
849
+ attr_accessor :oauth_token
850
+
851
+ # Contains information needed for generating an [OpenID Connect token](https://
852
+ # developers.google.com/identity/protocols/OpenIDConnect). This type of
853
+ # authorization can be used for many scenarios, including calling Cloud Run, or
854
+ # endpoints where you intend to validate the token yourself.
855
+ # Corresponds to the JSON property `oidcToken`
856
+ # @return [Google::Apis::CloudtasksV2beta2::OidcToken]
857
+ attr_accessor :oidc_token
858
+
859
+ # Uri Override. When specified, all the HTTP tasks inside the queue will be
860
+ # partially or fully overridden depending on the configured values.
861
+ # Corresponds to the JSON property `uriOverride`
862
+ # @return [Google::Apis::CloudtasksV2beta2::UriOverride]
863
+ attr_accessor :uri_override
864
+
865
+ def initialize(**args)
866
+ update!(**args)
867
+ end
868
+
869
+ # Update properties of this object
870
+ def update!(**args)
871
+ @header_overrides = args[:header_overrides] if args.key?(:header_overrides)
872
+ @http_method = args[:http_method] if args.key?(:http_method)
873
+ @oauth_token = args[:oauth_token] if args.key?(:oauth_token)
874
+ @oidc_token = args[:oidc_token] if args.key?(:oidc_token)
875
+ @uri_override = args[:uri_override] if args.key?(:uri_override)
876
+ end
877
+ end
878
+
579
879
  # Request message for leasing tasks using LeaseTasks.
580
880
  class LeaseTasksRequest
581
881
  include Google::Apis::Core::Hashable
@@ -787,6 +1087,69 @@ module Google
787
1087
  end
788
1088
  end
789
1089
 
1090
+ # Contains information needed for generating an [OAuth token](https://developers.
1091
+ # google.com/identity/protocols/OAuth2). This type of authorization should
1092
+ # generally only be used when calling Google APIs hosted on *.googleapis.com.
1093
+ class OAuthToken
1094
+ include Google::Apis::Core::Hashable
1095
+
1096
+ # OAuth scope to be used for generating OAuth access token. If not specified, "
1097
+ # https://www.googleapis.com/auth/cloud-platform" will be used.
1098
+ # Corresponds to the JSON property `scope`
1099
+ # @return [String]
1100
+ attr_accessor :scope
1101
+
1102
+ # [Service account email](https://cloud.google.com/iam/docs/service-accounts) to
1103
+ # be used for generating OAuth token. The service account must be within the
1104
+ # same project as the queue. The caller must have iam.serviceAccounts.actAs
1105
+ # permission for the service account.
1106
+ # Corresponds to the JSON property `serviceAccountEmail`
1107
+ # @return [String]
1108
+ attr_accessor :service_account_email
1109
+
1110
+ def initialize(**args)
1111
+ update!(**args)
1112
+ end
1113
+
1114
+ # Update properties of this object
1115
+ def update!(**args)
1116
+ @scope = args[:scope] if args.key?(:scope)
1117
+ @service_account_email = args[:service_account_email] if args.key?(:service_account_email)
1118
+ end
1119
+ end
1120
+
1121
+ # Contains information needed for generating an [OpenID Connect token](https://
1122
+ # developers.google.com/identity/protocols/OpenIDConnect). This type of
1123
+ # authorization can be used for many scenarios, including calling Cloud Run, or
1124
+ # endpoints where you intend to validate the token yourself.
1125
+ class OidcToken
1126
+ include Google::Apis::Core::Hashable
1127
+
1128
+ # Audience to be used when generating OIDC token. If not specified, the URI
1129
+ # specified in target will be used.
1130
+ # Corresponds to the JSON property `audience`
1131
+ # @return [String]
1132
+ attr_accessor :audience
1133
+
1134
+ # [Service account email](https://cloud.google.com/iam/docs/service-accounts) to
1135
+ # be used for generating OIDC token. The service account must be within the same
1136
+ # project as the queue. The caller must have iam.serviceAccounts.actAs
1137
+ # permission for the service account.
1138
+ # Corresponds to the JSON property `serviceAccountEmail`
1139
+ # @return [String]
1140
+ attr_accessor :service_account_email
1141
+
1142
+ def initialize(**args)
1143
+ update!(**args)
1144
+ end
1145
+
1146
+ # Update properties of this object
1147
+ def update!(**args)
1148
+ @audience = args[:audience] if args.key?(:audience)
1149
+ @service_account_email = args[:service_account_email] if args.key?(:service_account_email)
1150
+ end
1151
+ end
1152
+
790
1153
  # Request message for PauseQueue.
791
1154
  class PauseQueueRequest
792
1155
  include Google::Apis::Core::Hashable
@@ -969,6 +1332,12 @@ module Google
969
1332
  # @return [Google::Apis::CloudtasksV2beta2::AppEngineHttpTarget]
970
1333
  attr_accessor :app_engine_http_target
971
1334
 
1335
+ # HTTP target. When specified as a Queue, all the tasks with [HttpRequest] will
1336
+ # be overridden according to the target.
1337
+ # Corresponds to the JSON property `httpTarget`
1338
+ # @return [Google::Apis::CloudtasksV2beta2::HttpTarget]
1339
+ attr_accessor :http_target
1340
+
972
1341
  # Caller-specified and required in CreateQueue, after which it becomes output
973
1342
  # only. The queue name. The queue name must have the following format: `projects/
974
1343
  # PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` * `PROJECT_ID` can contain
@@ -1054,6 +1423,7 @@ module Google
1054
1423
  # Update properties of this object
1055
1424
  def update!(**args)
1056
1425
  @app_engine_http_target = args[:app_engine_http_target] if args.key?(:app_engine_http_target)
1426
+ @http_target = args[:http_target] if args.key?(:http_target)
1057
1427
  @name = args[:name] if args.key?(:name)
1058
1428
  @pull_target = args[:pull_target] if args.key?(:pull_target)
1059
1429
  @purge_time = args[:purge_time] if args.key?(:purge_time)
@@ -1477,6 +1847,13 @@ module Google
1477
1847
  # @return [String]
1478
1848
  attr_accessor :create_time
1479
1849
 
1850
+ # HTTP request. The task will be pushed to the worker as an HTTP request. An
1851
+ # HTTP request embodies a url, an http method, headers, body and authorization
1852
+ # for the http task.
1853
+ # Corresponds to the JSON property `httpRequest`
1854
+ # @return [Google::Apis::CloudtasksV2beta2::HttpRequest]
1855
+ attr_accessor :http_request
1856
+
1480
1857
  # Optionally caller-specified in CreateTask. The task name. The task name must
1481
1858
  # have the following format: `projects/PROJECT_ID/locations/LOCATION_ID/queues/
1482
1859
  # QUEUE_ID/tasks/TASK_ID` * `PROJECT_ID` can contain letters ([A-Za-z]), numbers
@@ -1528,6 +1905,7 @@ module Google
1528
1905
  def update!(**args)
1529
1906
  @app_engine_http_request = args[:app_engine_http_request] if args.key?(:app_engine_http_request)
1530
1907
  @create_time = args[:create_time] if args.key?(:create_time)
1908
+ @http_request = args[:http_request] if args.key?(:http_request)
1531
1909
  @name = args[:name] if args.key?(:name)
1532
1910
  @pull_message = args[:pull_message] if args.key?(:pull_message)
1533
1911
  @schedule_time = args[:schedule_time] if args.key?(:schedule_time)
@@ -1614,6 +1992,56 @@ module Google
1614
1992
  @permissions = args[:permissions] if args.key?(:permissions)
1615
1993
  end
1616
1994
  end
1995
+
1996
+ # Uri Override. When specified, all the HTTP tasks inside the queue will be
1997
+ # partially or fully overridden depending on the configured values.
1998
+ class UriOverride
1999
+ include Google::Apis::Core::Hashable
2000
+
2001
+ # Host override. When specified, the host part of url will be overridden. For
2002
+ # example, if the original Uri is "https://www.google.com", and host is set to "
2003
+ # example.net", the overridden Uri will be "https://example.net".
2004
+ # Corresponds to the JSON property `host`
2005
+ # @return [String]
2006
+ attr_accessor :host
2007
+
2008
+ # Uri path. Will be used as the path for the current Uri (replaces any existing
2009
+ # path of the task url).
2010
+ # Corresponds to the JSON property `path`
2011
+ # @return [String]
2012
+ attr_accessor :path
2013
+
2014
+ # Port override. When specified, the port part of Uri will be replaced by the
2015
+ # provided value. For instance, for a Uri http://www.google.com/foo and port=123
2016
+ # the overridden Uri becomes http://www.google.com:123/foo.
2017
+ # Corresponds to the JSON property `port`
2018
+ # @return [Fixnum]
2019
+ attr_accessor :port
2020
+
2021
+ # Uri Query. Will replace the query part of the task uri.
2022
+ # Corresponds to the JSON property `query`
2023
+ # @return [String]
2024
+ attr_accessor :query
2025
+
2026
+ # Scheme override. When specified, the Uri scheme is replaced by the provided
2027
+ # value.
2028
+ # Corresponds to the JSON property `scheme`
2029
+ # @return [String]
2030
+ attr_accessor :scheme
2031
+
2032
+ def initialize(**args)
2033
+ update!(**args)
2034
+ end
2035
+
2036
+ # Update properties of this object
2037
+ def update!(**args)
2038
+ @host = args[:host] if args.key?(:host)
2039
+ @path = args[:path] if args.key?(:path)
2040
+ @port = args[:port] if args.key?(:port)
2041
+ @query = args[:query] if args.key?(:query)
2042
+ @scheme = args[:scheme] if args.key?(:scheme)
2043
+ end
2044
+ end
1617
2045
  end
1618
2046
  end
1619
2047
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module CloudtasksV2beta2
18
18
  # Version of the google-apis-cloudtasks_v2beta2 gem
19
- GEM_VERSION = "0.20.0"
19
+ GEM_VERSION = "0.23.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.8.0"
22
+ GENERATOR_VERSION = "0.9.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220520"
25
+ REVISION = "20220803"
26
26
  end
27
27
  end
28
28
  end
@@ -58,6 +58,18 @@ module Google
58
58
  include Google::Apis::Core::JsonObjectSupport
59
59
  end
60
60
 
61
+ class BufferQueueRequest
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class BufferQueueResponse
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
61
73
  class CancelLeaseRequest
62
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
75
 
@@ -94,6 +106,36 @@ module Google
94
106
  include Google::Apis::Core::JsonObjectSupport
95
107
  end
96
108
 
109
+ class Header
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class HeaderOverride
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class HttpBody
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class HttpRequest
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class HttpTarget
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
97
139
  class LeaseTasksRequest
98
140
  class Representation < Google::Apis::Core::JsonRepresentation; end
99
141
 
@@ -130,6 +172,18 @@ module Google
130
172
  include Google::Apis::Core::JsonObjectSupport
131
173
  end
132
174
 
175
+ class OAuthToken
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
181
+ class OidcToken
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
133
187
  class PauseQueueRequest
134
188
  class Representation < Google::Apis::Core::JsonRepresentation; end
135
189
 
@@ -238,6 +292,12 @@ module Google
238
292
  include Google::Apis::Core::JsonObjectSupport
239
293
  end
240
294
 
295
+ class UriOverride
296
+ class Representation < Google::Apis::Core::JsonRepresentation; end
297
+
298
+ include Google::Apis::Core::JsonObjectSupport
299
+ end
300
+
241
301
  class AcknowledgeTaskRequest
242
302
  # @private
243
303
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -296,6 +356,21 @@ module Google
296
356
  end
297
357
  end
298
358
 
359
+ class BufferQueueRequest
360
+ # @private
361
+ class Representation < Google::Apis::Core::JsonRepresentation
362
+ property :body, as: 'body', class: Google::Apis::CloudtasksV2beta2::HttpBody, decorator: Google::Apis::CloudtasksV2beta2::HttpBody::Representation
363
+
364
+ end
365
+ end
366
+
367
+ class BufferQueueResponse
368
+ # @private
369
+ class Representation < Google::Apis::Core::JsonRepresentation
370
+ property :task, as: 'task'
371
+ end
372
+ end
373
+
299
374
  class CancelLeaseRequest
300
375
  # @private
301
376
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -344,6 +419,60 @@ module Google
344
419
  end
345
420
  end
346
421
 
422
+ class Header
423
+ # @private
424
+ class Representation < Google::Apis::Core::JsonRepresentation
425
+ property :key, :base64 => true, as: 'key'
426
+ property :value, :base64 => true, as: 'value'
427
+ end
428
+ end
429
+
430
+ class HeaderOverride
431
+ # @private
432
+ class Representation < Google::Apis::Core::JsonRepresentation
433
+ property :header, as: 'header', class: Google::Apis::CloudtasksV2beta2::Header, decorator: Google::Apis::CloudtasksV2beta2::Header::Representation
434
+
435
+ end
436
+ end
437
+
438
+ class HttpBody
439
+ # @private
440
+ class Representation < Google::Apis::Core::JsonRepresentation
441
+ property :content_type, as: 'contentType'
442
+ property :data, :base64 => true, as: 'data'
443
+ collection :extensions, as: 'extensions'
444
+ end
445
+ end
446
+
447
+ class HttpRequest
448
+ # @private
449
+ class Representation < Google::Apis::Core::JsonRepresentation
450
+ property :body, :base64 => true, as: 'body'
451
+ hash :headers, as: 'headers'
452
+ property :http_method, as: 'httpMethod'
453
+ property :oauth_token, as: 'oauthToken', class: Google::Apis::CloudtasksV2beta2::OAuthToken, decorator: Google::Apis::CloudtasksV2beta2::OAuthToken::Representation
454
+
455
+ property :oidc_token, as: 'oidcToken', class: Google::Apis::CloudtasksV2beta2::OidcToken, decorator: Google::Apis::CloudtasksV2beta2::OidcToken::Representation
456
+
457
+ property :url, as: 'url'
458
+ end
459
+ end
460
+
461
+ class HttpTarget
462
+ # @private
463
+ class Representation < Google::Apis::Core::JsonRepresentation
464
+ collection :header_overrides, as: 'headerOverrides', class: Google::Apis::CloudtasksV2beta2::HeaderOverride, decorator: Google::Apis::CloudtasksV2beta2::HeaderOverride::Representation
465
+
466
+ property :http_method, as: 'httpMethod'
467
+ property :oauth_token, as: 'oauthToken', class: Google::Apis::CloudtasksV2beta2::OAuthToken, decorator: Google::Apis::CloudtasksV2beta2::OAuthToken::Representation
468
+
469
+ property :oidc_token, as: 'oidcToken', class: Google::Apis::CloudtasksV2beta2::OidcToken, decorator: Google::Apis::CloudtasksV2beta2::OidcToken::Representation
470
+
471
+ property :uri_override, as: 'uriOverride', class: Google::Apis::CloudtasksV2beta2::UriOverride, decorator: Google::Apis::CloudtasksV2beta2::UriOverride::Representation
472
+
473
+ end
474
+ end
475
+
347
476
  class LeaseTasksRequest
348
477
  # @private
349
478
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -400,6 +529,22 @@ module Google
400
529
  end
401
530
  end
402
531
 
532
+ class OAuthToken
533
+ # @private
534
+ class Representation < Google::Apis::Core::JsonRepresentation
535
+ property :scope, as: 'scope'
536
+ property :service_account_email, as: 'serviceAccountEmail'
537
+ end
538
+ end
539
+
540
+ class OidcToken
541
+ # @private
542
+ class Representation < Google::Apis::Core::JsonRepresentation
543
+ property :audience, as: 'audience'
544
+ property :service_account_email, as: 'serviceAccountEmail'
545
+ end
546
+ end
547
+
403
548
  class PauseQueueRequest
404
549
  # @private
405
550
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -441,6 +586,8 @@ module Google
441
586
  class Representation < Google::Apis::Core::JsonRepresentation
442
587
  property :app_engine_http_target, as: 'appEngineHttpTarget', class: Google::Apis::CloudtasksV2beta2::AppEngineHttpTarget, decorator: Google::Apis::CloudtasksV2beta2::AppEngineHttpTarget::Representation
443
588
 
589
+ property :http_target, as: 'httpTarget', class: Google::Apis::CloudtasksV2beta2::HttpTarget, decorator: Google::Apis::CloudtasksV2beta2::HttpTarget::Representation
590
+
444
591
  property :name, as: 'name'
445
592
  property :pull_target, as: 'pullTarget', class: Google::Apis::CloudtasksV2beta2::PullTarget, decorator: Google::Apis::CloudtasksV2beta2::PullTarget::Representation
446
593
 
@@ -534,6 +681,8 @@ module Google
534
681
  property :app_engine_http_request, as: 'appEngineHttpRequest', class: Google::Apis::CloudtasksV2beta2::AppEngineHttpRequest, decorator: Google::Apis::CloudtasksV2beta2::AppEngineHttpRequest::Representation
535
682
 
536
683
  property :create_time, as: 'createTime'
684
+ property :http_request, as: 'httpRequest', class: Google::Apis::CloudtasksV2beta2::HttpRequest, decorator: Google::Apis::CloudtasksV2beta2::HttpRequest::Representation
685
+
537
686
  property :name, as: 'name'
538
687
  property :pull_message, as: 'pullMessage', class: Google::Apis::CloudtasksV2beta2::PullMessage, decorator: Google::Apis::CloudtasksV2beta2::PullMessage::Representation
539
688
 
@@ -569,6 +718,17 @@ module Google
569
718
  collection :permissions, as: 'permissions'
570
719
  end
571
720
  end
721
+
722
+ class UriOverride
723
+ # @private
724
+ class Representation < Google::Apis::Core::JsonRepresentation
725
+ property :host, as: 'host'
726
+ property :path, as: 'path'
727
+ property :port, :numeric_string => true, as: 'port'
728
+ property :query, as: 'query'
729
+ property :scheme, as: 'scheme'
730
+ end
731
+ end
572
732
  end
573
733
  end
574
734
  end
@@ -122,6 +122,45 @@ module Google
122
122
  execute_or_queue_command(command, &block)
123
123
  end
124
124
 
125
+ # Note: This feature is in its experimental stage. You must request access to
126
+ # the API through the [Cloud Tasks BufferQueues Experiment Signup form](https://
127
+ # forms.gle/X8Zr5hiXH5tTGFqh8). Creates and buffers a new task without the need
128
+ # to explicitly define a Task message. The queue must be an http queue (i.e.,
129
+ # must have HTTP target). This method is used for a simplified application of
130
+ # Cloud Tasks queues in buffer and rate limitting HTTP requests.
131
+ # @param [String] name
132
+ # Required. The queue name. For example: `projects/PROJECT_ID/locations/
133
+ # LOCATION_ID/queues/QUEUE_ID` The queue must already exist.
134
+ # @param [Google::Apis::CloudtasksV2beta2::BufferQueueRequest] buffer_queue_request_object
135
+ # @param [String] fields
136
+ # Selector specifying which fields to include in a partial response.
137
+ # @param [String] quota_user
138
+ # Available to use for quota purposes for server-side applications. Can be any
139
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
140
+ # @param [Google::Apis::RequestOptions] options
141
+ # Request-specific options
142
+ #
143
+ # @yield [result, err] Result & error if block supplied
144
+ # @yieldparam result [Google::Apis::CloudtasksV2beta2::BufferQueueResponse] parsed result object
145
+ # @yieldparam err [StandardError] error object if request failed
146
+ #
147
+ # @return [Google::Apis::CloudtasksV2beta2::BufferQueueResponse]
148
+ #
149
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
150
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
151
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
152
+ def buffer_queue(name, buffer_queue_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
153
+ command = make_simple_command(:post, 'v2beta2/{+name}:buffer', options)
154
+ command.request_representation = Google::Apis::CloudtasksV2beta2::BufferQueueRequest::Representation
155
+ command.request_object = buffer_queue_request_object
156
+ command.response_representation = Google::Apis::CloudtasksV2beta2::BufferQueueResponse::Representation
157
+ command.response_class = Google::Apis::CloudtasksV2beta2::BufferQueueResponse
158
+ command.params['name'] = name unless name.nil?
159
+ command.query['fields'] = fields unless fields.nil?
160
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
161
+ execute_or_queue_command(command, &block)
162
+ end
163
+
125
164
  # Creates a queue. Queues created with this method allow tasks to live for a
126
165
  # maximum of 31 days. After a task is 31 days old, the task will be deleted
127
166
  # regardless of whether it was dispatched or not. WARNING: Using this method may
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-cloudtasks_v2beta2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.0
4
+ version: 0.23.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: 2022-07-04 00:00:00.000000000 Z
11
+ date: 2022-08-08 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-cloudtasks_v2beta2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-cloudtasks_v2beta2/v0.20.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudtasks_v2beta2/v0.23.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudtasks_v2beta2
63
63
  post_install_message:
64
64
  rdoc_options: []