google-api-client 0.28.5 → 0.28.6
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 +5 -5
- data/CHANGELOG.md +46 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +0 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +18 -4
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +892 -0
- data/generated/google/apis/bigquery_v2/representations.rb +352 -0
- data/generated/google/apis/bigquery_v2/service.rb +162 -0
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +78 -0
- data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +43 -0
- data/generated/google/apis/bigquerydatatransfer_v1/service.rb +76 -0
- data/generated/google/apis/cloudasset_v1.rb +2 -2
- data/generated/google/apis/cloudasset_v1/service.rb +1 -1
- data/generated/google/apis/cloudasset_v1beta1.rb +2 -2
- data/generated/google/apis/cloudasset_v1beta1/service.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +6 -0
- data/generated/google/apis/cloudbuild_v1/representations.rb +1 -0
- data/generated/google/apis/cloudbuild_v1/service.rb +7 -1
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +10 -10
- data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +10 -10
- data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +100 -0
- data/generated/google/apis/cloudscheduler_v1beta1/representations.rb +33 -0
- data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudshell_v1alpha1/classes.rb +8 -2
- data/generated/google/apis/cloudshell_v1alpha1/representations.rb +1 -0
- data/generated/google/apis/cloudshell_v1alpha1/service.rb +5 -4
- data/generated/google/apis/cloudtasks_v2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/composer_v1beta1.rb +1 -1
- data/generated/google/apis/composer_v1beta1/classes.rb +24 -21
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +31 -0
- data/generated/google/apis/container_v1/representations.rb +3 -0
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +70 -0
- data/generated/google/apis/container_v1beta1/representations.rb +32 -0
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +19 -10
- data/generated/google/apis/dataflow_v1b3/representations.rb +1 -0
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +1 -1
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +45 -0
- data/generated/google/apis/dlp_v2/representations.rb +20 -0
- data/generated/google/apis/dns_v1beta2.rb +1 -1
- data/generated/google/apis/dns_v1beta2/classes.rb +71 -0
- data/generated/google/apis/dns_v1beta2/representations.rb +33 -0
- data/generated/google/apis/factchecktools_v1alpha1.rb +3 -3
- data/generated/google/apis/iap_v1.rb +1 -1
- data/generated/google/apis/iap_v1beta1.rb +1 -1
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/oauth2_v1.rb +1 -1
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/plus_domains_v1.rb +2 -5
- data/generated/google/apis/plus_domains_v1/service.rb +0 -292
- data/generated/google/apis/plus_v1.rb +2 -2
- data/generated/google/apis/redis_v1.rb +1 -1
- data/generated/google/apis/redis_v1/classes.rb +30 -10
- data/generated/google/apis/redis_v1/representations.rb +13 -0
- data/generated/google/apis/redis_v1/service.rb +36 -0
- data/generated/google/apis/redis_v1beta1.rb +1 -1
- data/generated/google/apis/redis_v1beta1/classes.rb +18 -11
- data/generated/google/apis/servicebroker_v1.rb +1 -1
- data/generated/google/apis/servicebroker_v1/classes.rb +1 -1
- data/generated/google/apis/servicebroker_v1alpha1.rb +1 -1
- data/generated/google/apis/servicebroker_v1alpha1/classes.rb +1 -1
- data/generated/google/apis/servicebroker_v1beta1.rb +1 -1
- data/generated/google/apis/servicebroker_v1beta1/classes.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +122 -5
- data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +26 -0
- data/generated/google/apis/serviceconsumermanagement_v1/service.rb +83 -0
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/classes.rb +83 -5
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +83 -5
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +123 -6
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +163 -7
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1/classes.rb +1 -1
- data/generated/google/apis/speech_v1/service.rb +2 -0
- data/generated/google/apis/speech_v1p1beta1.rb +1 -1
- data/generated/google/apis/speech_v1p1beta1/classes.rb +1 -1
- data/generated/google/apis/speech_v1p1beta1/service.rb +2 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +62 -0
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +32 -0
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +0 -14
- data/generated/google/apis/testing_v1/representations.rb +0 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +4 -3
|
@@ -30,7 +30,7 @@ module Google
|
|
|
30
30
|
# Cloudasset = Google::Apis::CloudassetV1 # Alias the module
|
|
31
31
|
# service = Cloudasset::CloudAssetService.new
|
|
32
32
|
#
|
|
33
|
-
# @see https://
|
|
33
|
+
# @see https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/quickstart-cloud-asset-inventory
|
|
34
34
|
class CloudAssetService < Google::Apis::Core::BaseService
|
|
35
35
|
# @return [String]
|
|
36
36
|
# API key. Your API key identifies your project and provides you with API access,
|
|
@@ -22,10 +22,10 @@ module Google
|
|
|
22
22
|
#
|
|
23
23
|
# The cloud asset API manages the history and inventory of cloud resources.
|
|
24
24
|
#
|
|
25
|
-
# @see https://
|
|
25
|
+
# @see https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/quickstart-cloud-asset-inventory
|
|
26
26
|
module CloudassetV1beta1
|
|
27
27
|
VERSION = 'V1beta1'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20190327'
|
|
29
29
|
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
@@ -30,7 +30,7 @@ module Google
|
|
|
30
30
|
# Cloudasset = Google::Apis::CloudassetV1beta1 # Alias the module
|
|
31
31
|
# service = Cloudasset::CloudAssetService.new
|
|
32
32
|
#
|
|
33
|
-
# @see https://
|
|
33
|
+
# @see https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/quickstart-cloud-asset-inventory
|
|
34
34
|
class CloudAssetService < Google::Apis::Core::BaseService
|
|
35
35
|
# @return [String]
|
|
36
36
|
# API key. Your API key identifies your project and provides you with API access,
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://cloud.google.com/cloud-build/docs/
|
|
26
26
|
module CloudbuildV1
|
|
27
27
|
VERSION = 'V1'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20190323'
|
|
29
29
|
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
@@ -873,6 +873,11 @@ module Google
|
|
|
873
873
|
class ListBuildTriggersResponse
|
|
874
874
|
include Google::Apis::Core::Hashable
|
|
875
875
|
|
|
876
|
+
# Token to receive the next page of results.
|
|
877
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
878
|
+
# @return [String]
|
|
879
|
+
attr_accessor :next_page_token
|
|
880
|
+
|
|
876
881
|
# `BuildTriggers` for the project, sorted by `create_time` descending.
|
|
877
882
|
# Corresponds to the JSON property `triggers`
|
|
878
883
|
# @return [Array<Google::Apis::CloudbuildV1::BuildTrigger>]
|
|
@@ -884,6 +889,7 @@ module Google
|
|
|
884
889
|
|
|
885
890
|
# Update properties of this object
|
|
886
891
|
def update!(**args)
|
|
892
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
887
893
|
@triggers = args[:triggers] if args.key?(:triggers)
|
|
888
894
|
end
|
|
889
895
|
end
|
|
@@ -414,6 +414,7 @@ module Google
|
|
|
414
414
|
class ListBuildTriggersResponse
|
|
415
415
|
# @private
|
|
416
416
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
417
|
+
property :next_page_token, as: 'nextPageToken'
|
|
417
418
|
collection :triggers, as: 'triggers', class: Google::Apis::CloudbuildV1::BuildTrigger, decorator: Google::Apis::CloudbuildV1::BuildTrigger::Representation
|
|
418
419
|
|
|
419
420
|
end
|
|
@@ -477,6 +477,10 @@ module Google
|
|
|
477
477
|
# This API is experimental.
|
|
478
478
|
# @param [String] project_id
|
|
479
479
|
# ID of the project for which to list BuildTriggers.
|
|
480
|
+
# @param [Fixnum] page_size
|
|
481
|
+
# Number of results to return in the list.
|
|
482
|
+
# @param [String] page_token
|
|
483
|
+
# Token to provide to skip to a particular spot in the list.
|
|
480
484
|
# @param [String] fields
|
|
481
485
|
# Selector specifying which fields to include in a partial response.
|
|
482
486
|
# @param [String] quota_user
|
|
@@ -494,11 +498,13 @@ module Google
|
|
|
494
498
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
495
499
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
496
500
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
497
|
-
def list_project_triggers(project_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
501
|
+
def list_project_triggers(project_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
498
502
|
command = make_simple_command(:get, 'v1/projects/{projectId}/triggers', options)
|
|
499
503
|
command.response_representation = Google::Apis::CloudbuildV1::ListBuildTriggersResponse::Representation
|
|
500
504
|
command.response_class = Google::Apis::CloudbuildV1::ListBuildTriggersResponse
|
|
501
505
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
506
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
507
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
502
508
|
command.query['fields'] = fields unless fields.nil?
|
|
503
509
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
504
510
|
execute_or_queue_command(command, &block)
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://cloud.google.com/functions
|
|
26
26
|
module CloudfunctionsV1
|
|
27
27
|
VERSION = 'V1'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20190318'
|
|
29
29
|
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
@@ -787,14 +787,14 @@ module Google
|
|
|
787
787
|
attr_accessor :done
|
|
788
788
|
alias_method :done?, :done
|
|
789
789
|
|
|
790
|
-
# The `Status` type defines a logical error model that is suitable for
|
|
791
|
-
# programming environments, including REST APIs and RPC APIs. It is
|
|
792
|
-
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
|
790
|
+
# The `Status` type defines a logical error model that is suitable for
|
|
791
|
+
# different programming environments, including REST APIs and RPC APIs. It is
|
|
792
|
+
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
|
|
793
793
|
# - Simple to use and understand for most users
|
|
794
794
|
# - Flexible enough to meet unexpected needs
|
|
795
795
|
# # Overview
|
|
796
|
-
# The `Status` message contains three pieces of data: error code, error
|
|
797
|
-
# and error details. The error code should be an enum value of
|
|
796
|
+
# The `Status` message contains three pieces of data: error code, error
|
|
797
|
+
# message, and error details. The error code should be an enum value of
|
|
798
798
|
# google.rpc.Code, but it may accept additional error codes if needed. The
|
|
799
799
|
# error message should be a developer-facing English message that helps
|
|
800
800
|
# developers *understand* and *resolve* the error. If a localized user-facing
|
|
@@ -1166,14 +1166,14 @@ module Google
|
|
|
1166
1166
|
end
|
|
1167
1167
|
end
|
|
1168
1168
|
|
|
1169
|
-
# The `Status` type defines a logical error model that is suitable for
|
|
1170
|
-
# programming environments, including REST APIs and RPC APIs. It is
|
|
1171
|
-
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
|
1169
|
+
# The `Status` type defines a logical error model that is suitable for
|
|
1170
|
+
# different programming environments, including REST APIs and RPC APIs. It is
|
|
1171
|
+
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
|
|
1172
1172
|
# - Simple to use and understand for most users
|
|
1173
1173
|
# - Flexible enough to meet unexpected needs
|
|
1174
1174
|
# # Overview
|
|
1175
|
-
# The `Status` message contains three pieces of data: error code, error
|
|
1176
|
-
# and error details. The error code should be an enum value of
|
|
1175
|
+
# The `Status` message contains three pieces of data: error code, error
|
|
1176
|
+
# message, and error details. The error code should be an enum value of
|
|
1177
1177
|
# google.rpc.Code, but it may accept additional error codes if needed. The
|
|
1178
1178
|
# error message should be a developer-facing English message that helps
|
|
1179
1179
|
# developers *understand* and *resolve* the error. If a localized user-facing
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://cloud.google.com/functions
|
|
26
26
|
module CloudfunctionsV1beta2
|
|
27
27
|
VERSION = 'V1beta2'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20190318'
|
|
29
29
|
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
@@ -573,14 +573,14 @@ module Google
|
|
|
573
573
|
attr_accessor :done
|
|
574
574
|
alias_method :done?, :done
|
|
575
575
|
|
|
576
|
-
# The `Status` type defines a logical error model that is suitable for
|
|
577
|
-
# programming environments, including REST APIs and RPC APIs. It is
|
|
578
|
-
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
|
576
|
+
# The `Status` type defines a logical error model that is suitable for
|
|
577
|
+
# different programming environments, including REST APIs and RPC APIs. It is
|
|
578
|
+
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
|
|
579
579
|
# - Simple to use and understand for most users
|
|
580
580
|
# - Flexible enough to meet unexpected needs
|
|
581
581
|
# # Overview
|
|
582
|
-
# The `Status` message contains three pieces of data: error code, error
|
|
583
|
-
# and error details. The error code should be an enum value of
|
|
582
|
+
# The `Status` message contains three pieces of data: error code, error
|
|
583
|
+
# message, and error details. The error code should be an enum value of
|
|
584
584
|
# google.rpc.Code, but it may accept additional error codes if needed. The
|
|
585
585
|
# error message should be a developer-facing English message that helps
|
|
586
586
|
# developers *understand* and *resolve* the error. If a localized user-facing
|
|
@@ -824,14 +824,14 @@ module Google
|
|
|
824
824
|
end
|
|
825
825
|
end
|
|
826
826
|
|
|
827
|
-
# The `Status` type defines a logical error model that is suitable for
|
|
828
|
-
# programming environments, including REST APIs and RPC APIs. It is
|
|
829
|
-
# [gRPC](https://github.com/grpc). The error model is designed to be:
|
|
827
|
+
# The `Status` type defines a logical error model that is suitable for
|
|
828
|
+
# different programming environments, including REST APIs and RPC APIs. It is
|
|
829
|
+
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
|
|
830
830
|
# - Simple to use and understand for most users
|
|
831
831
|
# - Flexible enough to meet unexpected needs
|
|
832
832
|
# # Overview
|
|
833
|
-
# The `Status` message contains three pieces of data: error code, error
|
|
834
|
-
# and error details. The error code should be an enum value of
|
|
833
|
+
# The `Status` message contains three pieces of data: error code, error
|
|
834
|
+
# message, and error details. The error code should be an enum value of
|
|
835
835
|
# google.rpc.Code, but it may accept additional error codes if needed. The
|
|
836
836
|
# error message should be a developer-facing English message that helps
|
|
837
837
|
# developers *understand* and *resolve* the error. If a localized user-facing
|
|
@@ -25,7 +25,7 @@ module Google
|
|
|
25
25
|
# @see https://cloud.google.com/scheduler/
|
|
26
26
|
module CloudschedulerV1beta1
|
|
27
27
|
VERSION = 'V1beta1'
|
|
28
|
-
REVISION = '
|
|
28
|
+
REVISION = '20190326'
|
|
29
29
|
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
@@ -285,6 +285,23 @@ module Google
|
|
|
285
285
|
# @return [String]
|
|
286
286
|
attr_accessor :http_method
|
|
287
287
|
|
|
288
|
+
# Contains information needed for generating an
|
|
289
|
+
# [OAuth token](https://developers.google.com/identity/protocols/OAuth2).
|
|
290
|
+
# This type of authorization should be used when sending requests to a GCP
|
|
291
|
+
# endpoint.
|
|
292
|
+
# Corresponds to the JSON property `oauthToken`
|
|
293
|
+
# @return [Google::Apis::CloudschedulerV1beta1::OAuthToken]
|
|
294
|
+
attr_accessor :oauth_token
|
|
295
|
+
|
|
296
|
+
# Contains information needed for generating an
|
|
297
|
+
# [OpenID Connect
|
|
298
|
+
# token](https://developers.google.com/identity/protocols/OpenIDConnect). This
|
|
299
|
+
# type of authorization should be used when sending requests to third party
|
|
300
|
+
# endpoints.
|
|
301
|
+
# Corresponds to the JSON property `oidcToken`
|
|
302
|
+
# @return [Google::Apis::CloudschedulerV1beta1::OidcToken]
|
|
303
|
+
attr_accessor :oidc_token
|
|
304
|
+
|
|
288
305
|
# Required.
|
|
289
306
|
# The full URI path that the request will be sent to. This string
|
|
290
307
|
# must begin with either "http://" or "https://". Some examples of
|
|
@@ -305,6 +322,8 @@ module Google
|
|
|
305
322
|
@body = args[:body] if args.key?(:body)
|
|
306
323
|
@headers = args[:headers] if args.key?(:headers)
|
|
307
324
|
@http_method = args[:http_method] if args.key?(:http_method)
|
|
325
|
+
@oauth_token = args[:oauth_token] if args.key?(:oauth_token)
|
|
326
|
+
@oidc_token = args[:oidc_token] if args.key?(:oidc_token)
|
|
308
327
|
@uri = args[:uri] if args.key?(:uri)
|
|
309
328
|
end
|
|
310
329
|
end
|
|
@@ -327,6 +346,20 @@ module Google
|
|
|
327
346
|
# @return [Google::Apis::CloudschedulerV1beta1::AppEngineHttpTarget]
|
|
328
347
|
attr_accessor :app_engine_http_target
|
|
329
348
|
|
|
349
|
+
# The deadline for job attempts. If the request handler does not respond by
|
|
350
|
+
# this deadline then the request is cancelled and the attempt is marked as a
|
|
351
|
+
# `DEADLINE_EXCEEDED` failure. The failed attempt can be viewed in
|
|
352
|
+
# execution logs. Cloud Scheduler will retry the job according
|
|
353
|
+
# to the RetryConfig.
|
|
354
|
+
# The allowed duration for this deadline is:
|
|
355
|
+
# * For HTTP targets, between 15 seconds and 30 minutes.
|
|
356
|
+
# * For App Engine HTTP targets, between 15
|
|
357
|
+
# seconds and 24 hours.
|
|
358
|
+
# * For PubSub targets, this field is ignored.
|
|
359
|
+
# Corresponds to the JSON property `attemptDeadline`
|
|
360
|
+
# @return [String]
|
|
361
|
+
attr_accessor :attempt_deadline
|
|
362
|
+
|
|
330
363
|
# Optionally caller-specified in CreateJob or
|
|
331
364
|
# UpdateJob.
|
|
332
365
|
# A human-readable description for the job. This string must not contain
|
|
@@ -486,6 +519,7 @@ module Google
|
|
|
486
519
|
# Update properties of this object
|
|
487
520
|
def update!(**args)
|
|
488
521
|
@app_engine_http_target = args[:app_engine_http_target] if args.key?(:app_engine_http_target)
|
|
522
|
+
@attempt_deadline = args[:attempt_deadline] if args.key?(:attempt_deadline)
|
|
489
523
|
@description = args[:description] if args.key?(:description)
|
|
490
524
|
@http_target = args[:http_target] if args.key?(:http_target)
|
|
491
525
|
@last_attempt_time = args[:last_attempt_time] if args.key?(:last_attempt_time)
|
|
@@ -603,6 +637,72 @@ module Google
|
|
|
603
637
|
end
|
|
604
638
|
end
|
|
605
639
|
|
|
640
|
+
# Contains information needed for generating an
|
|
641
|
+
# [OAuth token](https://developers.google.com/identity/protocols/OAuth2).
|
|
642
|
+
# This type of authorization should be used when sending requests to a GCP
|
|
643
|
+
# endpoint.
|
|
644
|
+
class OAuthToken
|
|
645
|
+
include Google::Apis::Core::Hashable
|
|
646
|
+
|
|
647
|
+
# OAuth scope to be used for generating OAuth access token.
|
|
648
|
+
# If not specified, "https://www.googleapis.com/auth/cloud-platform"
|
|
649
|
+
# will be used.
|
|
650
|
+
# Corresponds to the JSON property `scope`
|
|
651
|
+
# @return [String]
|
|
652
|
+
attr_accessor :scope
|
|
653
|
+
|
|
654
|
+
# [Service account email](https://cloud.google.com/iam/docs/service-accounts)
|
|
655
|
+
# to be used for generating OAuth token.
|
|
656
|
+
# The service account must be within the same project as the job. The caller
|
|
657
|
+
# must have iam.serviceAccounts.actAs permission for the service account.
|
|
658
|
+
# Corresponds to the JSON property `serviceAccountEmail`
|
|
659
|
+
# @return [String]
|
|
660
|
+
attr_accessor :service_account_email
|
|
661
|
+
|
|
662
|
+
def initialize(**args)
|
|
663
|
+
update!(**args)
|
|
664
|
+
end
|
|
665
|
+
|
|
666
|
+
# Update properties of this object
|
|
667
|
+
def update!(**args)
|
|
668
|
+
@scope = args[:scope] if args.key?(:scope)
|
|
669
|
+
@service_account_email = args[:service_account_email] if args.key?(:service_account_email)
|
|
670
|
+
end
|
|
671
|
+
end
|
|
672
|
+
|
|
673
|
+
# Contains information needed for generating an
|
|
674
|
+
# [OpenID Connect
|
|
675
|
+
# token](https://developers.google.com/identity/protocols/OpenIDConnect). This
|
|
676
|
+
# type of authorization should be used when sending requests to third party
|
|
677
|
+
# endpoints.
|
|
678
|
+
class OidcToken
|
|
679
|
+
include Google::Apis::Core::Hashable
|
|
680
|
+
|
|
681
|
+
# Audience to be used when generating OIDC token. If not specified, the URI
|
|
682
|
+
# specified in target will be used.
|
|
683
|
+
# Corresponds to the JSON property `audience`
|
|
684
|
+
# @return [String]
|
|
685
|
+
attr_accessor :audience
|
|
686
|
+
|
|
687
|
+
# [Service account email](https://cloud.google.com/iam/docs/service-accounts)
|
|
688
|
+
# to be used for generating OIDC token.
|
|
689
|
+
# The service account must be within the same project as the job. The caller
|
|
690
|
+
# must have iam.serviceAccounts.actAs permission for the service account.
|
|
691
|
+
# Corresponds to the JSON property `serviceAccountEmail`
|
|
692
|
+
# @return [String]
|
|
693
|
+
attr_accessor :service_account_email
|
|
694
|
+
|
|
695
|
+
def initialize(**args)
|
|
696
|
+
update!(**args)
|
|
697
|
+
end
|
|
698
|
+
|
|
699
|
+
# Update properties of this object
|
|
700
|
+
def update!(**args)
|
|
701
|
+
@audience = args[:audience] if args.key?(:audience)
|
|
702
|
+
@service_account_email = args[:service_account_email] if args.key?(:service_account_email)
|
|
703
|
+
end
|
|
704
|
+
end
|
|
705
|
+
|
|
606
706
|
# Request message for PauseJob.
|
|
607
707
|
class PauseJobRequest
|
|
608
708
|
include Google::Apis::Core::Hashable
|
|
@@ -70,6 +70,18 @@ module Google
|
|
|
70
70
|
include Google::Apis::Core::JsonObjectSupport
|
|
71
71
|
end
|
|
72
72
|
|
|
73
|
+
class OAuthToken
|
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
75
|
+
|
|
76
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
class OidcToken
|
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
81
|
+
|
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
83
|
+
end
|
|
84
|
+
|
|
73
85
|
class PauseJobRequest
|
|
74
86
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
75
87
|
|
|
@@ -146,6 +158,10 @@ module Google
|
|
|
146
158
|
property :body, :base64 => true, as: 'body'
|
|
147
159
|
hash :headers, as: 'headers'
|
|
148
160
|
property :http_method, as: 'httpMethod'
|
|
161
|
+
property :oauth_token, as: 'oauthToken', class: Google::Apis::CloudschedulerV1beta1::OAuthToken, decorator: Google::Apis::CloudschedulerV1beta1::OAuthToken::Representation
|
|
162
|
+
|
|
163
|
+
property :oidc_token, as: 'oidcToken', class: Google::Apis::CloudschedulerV1beta1::OidcToken, decorator: Google::Apis::CloudschedulerV1beta1::OidcToken::Representation
|
|
164
|
+
|
|
149
165
|
property :uri, as: 'uri'
|
|
150
166
|
end
|
|
151
167
|
end
|
|
@@ -155,6 +171,7 @@ module Google
|
|
|
155
171
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
156
172
|
property :app_engine_http_target, as: 'appEngineHttpTarget', class: Google::Apis::CloudschedulerV1beta1::AppEngineHttpTarget, decorator: Google::Apis::CloudschedulerV1beta1::AppEngineHttpTarget::Representation
|
|
157
173
|
|
|
174
|
+
property :attempt_deadline, as: 'attemptDeadline'
|
|
158
175
|
property :description, as: 'description'
|
|
159
176
|
property :http_target, as: 'httpTarget', class: Google::Apis::CloudschedulerV1beta1::HttpTarget, decorator: Google::Apis::CloudschedulerV1beta1::HttpTarget::Representation
|
|
160
177
|
|
|
@@ -203,6 +220,22 @@ module Google
|
|
|
203
220
|
end
|
|
204
221
|
end
|
|
205
222
|
|
|
223
|
+
class OAuthToken
|
|
224
|
+
# @private
|
|
225
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
226
|
+
property :scope, as: 'scope'
|
|
227
|
+
property :service_account_email, as: 'serviceAccountEmail'
|
|
228
|
+
end
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
class OidcToken
|
|
232
|
+
# @private
|
|
233
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
234
|
+
property :audience, as: 'audience'
|
|
235
|
+
property :service_account_email, as: 'serviceAccountEmail'
|
|
236
|
+
end
|
|
237
|
+
end
|
|
238
|
+
|
|
206
239
|
class PauseJobRequest
|
|
207
240
|
# @private
|
|
208
241
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -26,7 +26,7 @@ module Google
|
|
|
26
26
|
# @see https://cloud.google.com/shell/docs/
|
|
27
27
|
module CloudshellV1alpha1
|
|
28
28
|
VERSION = 'V1alpha1'
|
|
29
|
-
REVISION = '
|
|
29
|
+
REVISION = '20190323'
|
|
30
30
|
|
|
31
31
|
# View and manage your data across Google Cloud Platform services
|
|
32
32
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
@@ -31,12 +31,17 @@ module Google
|
|
|
31
31
|
# @return [String]
|
|
32
32
|
attr_accessor :access_token
|
|
33
33
|
|
|
34
|
-
# The time when the
|
|
35
|
-
# the server received the request.
|
|
34
|
+
# The time when the credentials expire. If not set, defaults to one hour from
|
|
35
|
+
# when the server received the request.
|
|
36
36
|
# Corresponds to the JSON property `expireTime`
|
|
37
37
|
# @return [String]
|
|
38
38
|
attr_accessor :expire_time
|
|
39
39
|
|
|
40
|
+
# The OAuth ID token that should be sent to the environment.
|
|
41
|
+
# Corresponds to the JSON property `idToken`
|
|
42
|
+
# @return [String]
|
|
43
|
+
attr_accessor :id_token
|
|
44
|
+
|
|
40
45
|
def initialize(**args)
|
|
41
46
|
update!(**args)
|
|
42
47
|
end
|
|
@@ -45,6 +50,7 @@ module Google
|
|
|
45
50
|
def update!(**args)
|
|
46
51
|
@access_token = args[:access_token] if args.key?(:access_token)
|
|
47
52
|
@expire_time = args[:expire_time] if args.key?(:expire_time)
|
|
53
|
+
@id_token = args[:id_token] if args.key?(:id_token)
|
|
48
54
|
end
|
|
49
55
|
end
|
|
50
56
|
|