google-api-client 0.46.0 → 0.46.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +59 -0
- data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1/classes.rb +68 -0
- data/generated/google/apis/accesscontextmanager_v1/representations.rb +30 -0
- data/generated/google/apis/accesscontextmanager_v1/service.rb +180 -0
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +25 -0
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +15 -0
- data/generated/google/apis/admob_v1.rb +3 -2
- data/generated/google/apis/admob_v1/service.rb +2 -1
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/service.rb +4 -1
- data/generated/google/apis/analyticsdata_v1alpha.rb +1 -1
- data/generated/google/apis/analyticsdata_v1alpha/classes.rb +31 -0
- data/generated/google/apis/analyticsdata_v1alpha/representations.rb +17 -0
- data/generated/google/apis/analyticsdata_v1alpha/service.rb +39 -0
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/service.rb +2 -5
- data/generated/google/apis/apigee_v1.rb +1 -1
- data/generated/google/apis/apigee_v1/classes.rb +231 -1
- data/generated/google/apis/apigee_v1/representations.rb +87 -0
- data/generated/google/apis/apigee_v1/service.rb +201 -1
- data/generated/google/apis/appsmarket_v2.rb +1 -1
- data/generated/google/apis/billingbudgets_v1.rb +38 -0
- data/generated/google/apis/billingbudgets_v1/classes.rb +362 -0
- data/generated/google/apis/billingbudgets_v1/representations.rb +170 -0
- data/generated/google/apis/billingbudgets_v1/service.rb +249 -0
- data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1p4beta1/classes.rb +3 -3
- data/generated/google/apis/cloudsearch_v1.rb +1 -1
- data/generated/google/apis/cloudsearch_v1/classes.rb +2 -1
- data/generated/google/apis/cloudshell_v1.rb +1 -1
- data/generated/google/apis/cloudshell_v1/classes.rb +342 -0
- data/generated/google/apis/cloudshell_v1/representations.rb +200 -0
- data/generated/google/apis/cloudshell_v1/service.rb +177 -0
- data/generated/google/apis/composer_v1.rb +1 -1
- data/generated/google/apis/composer_v1/classes.rb +2 -3
- data/generated/google/apis/composer_v1beta1.rb +1 -1
- data/generated/google/apis/composer_v1beta1/classes.rb +2 -3
- data/generated/google/apis/composer_v1beta1/service.rb +37 -35
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +126 -21
- data/generated/google/apis/compute_alpha/representations.rb +7 -0
- data/generated/google/apis/compute_alpha/service.rb +62 -3
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +83 -19
- data/generated/google/apis/compute_beta/representations.rb +4 -0
- data/generated/google/apis/compute_beta/service.rb +3 -3
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +28 -8
- data/generated/google/apis/compute_v1/representations.rb +3 -0
- data/generated/google/apis/compute_v1/service.rb +3 -3
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +99 -0
- data/generated/google/apis/content_v2_1/representations.rb +47 -0
- data/generated/google/apis/content_v2_1/service.rb +37 -0
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +50 -32
- data/generated/google/apis/dialogflow_v2/representations.rb +28 -13
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +50 -32
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +28 -13
- data/generated/google/apis/dialogflow_v2beta1/service.rb +54 -4
- data/generated/google/apis/dialogflow_v3beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v3beta1/classes.rb +66 -35
- data/generated/google/apis/dialogflow_v3beta1/representations.rb +29 -13
- data/generated/google/apis/dialogflow_v3beta1/service.rb +22 -9
- data/generated/google/apis/displayvideo_v1.rb +1 -1
- data/generated/google/apis/displayvideo_v1/service.rb +13 -10
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/service.rb +10 -10
- data/generated/google/apis/dns_v1beta2.rb +1 -1
- data/generated/google/apis/dns_v1beta2/service.rb +10 -10
- data/generated/google/apis/documentai_v1beta3.rb +36 -0
- data/generated/google/apis/documentai_v1beta3/classes.rb +6149 -0
- data/generated/google/apis/documentai_v1beta3/representations.rb +2666 -0
- data/generated/google/apis/documentai_v1beta3/service.rb +263 -0
- data/generated/google/apis/doubleclickbidmanager_v1_1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb +2 -2
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +2 -1
- data/generated/google/apis/fitness_v1.rb +13 -1
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/classes.rb +116 -289
- data/generated/google/apis/healthcare_v1beta1/representations.rb +45 -81
- data/generated/google/apis/healthcare_v1beta1/service.rb +65 -61
- data/generated/google/apis/licensing_v1.rb +1 -1
- data/generated/google/apis/licensing_v1/service.rb +2 -2
- data/generated/google/apis/lifesciences_v2beta.rb +1 -1
- data/generated/google/apis/lifesciences_v2beta/classes.rb +104 -0
- data/generated/google/apis/lifesciences_v2beta/representations.rb +47 -0
- data/generated/google/apis/memcache_v1beta2.rb +1 -1
- data/generated/google/apis/memcache_v1beta2/classes.rb +1 -1
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +48 -0
- data/generated/google/apis/monitoring_v3/representations.rb +18 -0
- data/generated/google/apis/oauth2_v2.rb +40 -0
- data/generated/google/apis/oauth2_v2/classes.rb +165 -0
- data/generated/google/apis/oauth2_v2/representations.rb +68 -0
- data/generated/google/apis/oauth2_v2/service.rb +158 -0
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/classes.rb +3 -2
- data/generated/google/apis/people_v1/service.rb +4 -4
- data/generated/google/apis/realtimebidding_v1.rb +1 -1
- data/generated/google/apis/realtimebidding_v1/classes.rb +55 -94
- data/generated/google/apis/realtimebidding_v1/representations.rb +18 -32
- data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1/classes.rb +6 -0
- data/generated/google/apis/remotebuildexecution_v1/representations.rb +1 -0
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +6 -0
- data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +1 -0
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2/classes.rb +6 -0
- data/generated/google/apis/remotebuildexecution_v2/representations.rb +1 -0
- data/generated/google/apis/run_v1.rb +1 -1
- data/generated/google/apis/run_v1/classes.rb +5 -2
- data/generated/google/apis/smartdevicemanagement_v1.rb +1 -1
- data/generated/google/apis/smartdevicemanagement_v1/classes.rb +4 -10
- data/generated/google/apis/smartdevicemanagement_v1/representations.rb +0 -1
- data/generated/google/apis/smartdevicemanagement_v1/service.rb +1 -4
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +49 -5
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +17 -0
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +13 -0
- data/generated/google/apis/storagetransfer_v1/representations.rb +12 -0
- data/generated/google/apis/storagetransfer_v1/service.rb +5 -2
- data/generated/google/apis/sts_v1.rb +1 -1
- data/generated/google/apis/sts_v1/classes.rb +10 -9
- data/generated/google/apis/sts_v1beta.rb +1 -1
- data/generated/google/apis/sts_v1beta/classes.rb +66 -70
- data/generated/google/apis/sts_v1beta/service.rb +2 -2
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +47 -0
- data/generated/google/apis/testing_v1/representations.rb +20 -0
- data/generated/google/apis/videointelligence_v1.rb +1 -1
- data/generated/google/apis/videointelligence_v1/classes.rb +430 -2
- data/generated/google/apis/videointelligence_v1/representations.rb +241 -0
- data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
- data/generated/google/apis/videointelligence_v1beta2/classes.rb +430 -2
- data/generated/google/apis/videointelligence_v1beta2/representations.rb +241 -0
- data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +430 -2
- data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +241 -0
- data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +430 -2
- data/generated/google/apis/videointelligence_v1p2beta1/representations.rb +241 -0
- data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +430 -2
- data/generated/google/apis/videointelligence_v1p3beta1/representations.rb +241 -0
- data/generated/google/apis/workflows_v1beta.rb +3 -2
- data/generated/google/apis/workflows_v1beta/service.rb +2 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +15 -3
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://cloud.google.com/storage-transfer/docs
|
27
27
|
module StoragetransferV1
|
28
28
|
VERSION = 'V1'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20201001'
|
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'
|
@@ -134,6 +134,19 @@ module Google
|
|
134
134
|
end
|
135
135
|
end
|
136
136
|
|
137
|
+
# The request message for Operations.CancelOperation.
|
138
|
+
class CancelOperationRequest
|
139
|
+
include Google::Apis::Core::Hashable
|
140
|
+
|
141
|
+
def initialize(**args)
|
142
|
+
update!(**args)
|
143
|
+
end
|
144
|
+
|
145
|
+
# Update properties of this object
|
146
|
+
def update!(**args)
|
147
|
+
end
|
148
|
+
end
|
149
|
+
|
137
150
|
# Represents a whole or partial calendar date, e.g. a birthday. The time of day
|
138
151
|
# and time zone are either specified elsewhere or are not significant. The date
|
139
152
|
# is relative to the Proleptic Gregorian Calendar. This can represent: * A full
|
@@ -46,6 +46,12 @@ module Google
|
|
46
46
|
include Google::Apis::Core::JsonObjectSupport
|
47
47
|
end
|
48
48
|
|
49
|
+
class CancelOperationRequest
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
49
55
|
class Date
|
50
56
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
57
|
|
@@ -218,6 +224,12 @@ module Google
|
|
218
224
|
end
|
219
225
|
end
|
220
226
|
|
227
|
+
class CancelOperationRequest
|
228
|
+
# @private
|
229
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
230
|
+
end
|
231
|
+
end
|
232
|
+
|
221
233
|
class Date
|
222
234
|
# @private
|
223
235
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -117,7 +117,7 @@ module Google
|
|
117
117
|
|
118
118
|
# Gets a transfer job.
|
119
119
|
# @param [String] job_name
|
120
|
-
#
|
120
|
+
# Required. " The job to get.
|
121
121
|
# @param [String] project_id
|
122
122
|
# Required. The ID of the Google Cloud Platform Console project that owns the
|
123
123
|
# job.
|
@@ -246,6 +246,7 @@ module Google
|
|
246
246
|
# discovered tomorrow.
|
247
247
|
# @param [String] name
|
248
248
|
# The name of the operation resource to be cancelled.
|
249
|
+
# @param [Google::Apis::StoragetransferV1::CancelOperationRequest] cancel_operation_request_object
|
249
250
|
# @param [String] fields
|
250
251
|
# Selector specifying which fields to include in a partial response.
|
251
252
|
# @param [String] quota_user
|
@@ -263,8 +264,10 @@ module Google
|
|
263
264
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
264
265
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
265
266
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
266
|
-
def cancel_transfer_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
267
|
+
def cancel_transfer_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
267
268
|
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
269
|
+
command.request_representation = Google::Apis::StoragetransferV1::CancelOperationRequest::Representation
|
270
|
+
command.request_object = cancel_operation_request_object
|
268
271
|
command.response_representation = Google::Apis::StoragetransferV1::Empty::Representation
|
269
272
|
command.response_class = Google::Apis::StoragetransferV1::Empty
|
270
273
|
command.params['name'] = name unless name.nil?
|
@@ -27,7 +27,7 @@ module Google
|
|
27
27
|
include Google::Apis::Core::Hashable
|
28
28
|
|
29
29
|
# Required. The grant type. Must be `urn:ietf:params:oauth:grant-type:token-
|
30
|
-
# exchange`, which indicates a token exchange
|
30
|
+
# exchange`, which indicates a token exchange.
|
31
31
|
# Corresponds to the JSON property `grantType`
|
32
32
|
# @return [String]
|
33
33
|
attr_accessor :grant_type
|
@@ -45,10 +45,10 @@ module Google
|
|
45
45
|
# @return [String]
|
46
46
|
attr_accessor :requested_token_type
|
47
47
|
|
48
|
-
# Required.
|
49
|
-
#
|
50
|
-
#
|
51
|
-
#
|
48
|
+
# Required. The input token. You can use a Google-issued OAuth 2.0 access token
|
49
|
+
# with this field to obtain an access token with new security attributes applied,
|
50
|
+
# such as a Credential Access Boundary. If an access token already contains
|
51
|
+
# security attributes, you cannot apply additional security attributes.
|
52
52
|
# Corresponds to the JSON property `subjectToken`
|
53
53
|
# @return [String]
|
54
54
|
attr_accessor :subject_token
|
@@ -84,10 +84,11 @@ module Google
|
|
84
84
|
# @return [String]
|
85
85
|
attr_accessor :access_token
|
86
86
|
|
87
|
-
# The
|
88
|
-
#
|
89
|
-
# Google-issued, short-lived access
|
90
|
-
# the `access_token`
|
87
|
+
# The amount of time, in seconds, between the time when the `access_token` was
|
88
|
+
# issued and the time when the `access_token` will expire. This field is absent
|
89
|
+
# when the `subject_token` in the request is a Google-issued, short-lived access
|
90
|
+
# token. In this case, the `access_token` has the same expiration time as the `
|
91
|
+
# subject_token`.
|
91
92
|
# Corresponds to the JSON property `expires_in`
|
92
93
|
# @return [Fixnum]
|
93
94
|
attr_accessor :expires_in
|
@@ -26,16 +26,15 @@ module Google
|
|
26
26
|
class GoogleIdentityStsV1betaExchangeTokenRequest
|
27
27
|
include Google::Apis::Core::Hashable
|
28
28
|
|
29
|
-
# The full resource name of the identity provider
|
30
|
-
# googleapis.com/projects
|
31
|
-
#
|
32
|
-
# access token.
|
29
|
+
# The full resource name of the identity provider. For example, `//iam.
|
30
|
+
# googleapis.com/projects//workloadIdentityPools//providers/`. Required when
|
31
|
+
# exchanging an external credential for a Google access token.
|
33
32
|
# Corresponds to the JSON property `audience`
|
34
33
|
# @return [String]
|
35
34
|
attr_accessor :audience
|
36
35
|
|
37
36
|
# Required. The grant type. Must be `urn:ietf:params:oauth:grant-type:token-
|
38
|
-
# exchange`, which indicates a token exchange
|
37
|
+
# exchange`, which indicates a token exchange.
|
39
38
|
# Corresponds to the JSON property `grantType`
|
40
39
|
# @return [String]
|
41
40
|
attr_accessor :grant_type
|
@@ -47,8 +46,8 @@ module Google
|
|
47
46
|
# @return [String]
|
48
47
|
attr_accessor :options
|
49
48
|
|
50
|
-
# Required.
|
51
|
-
#
|
49
|
+
# Required. The type of security token. Must be `urn:ietf:params:oauth:token-
|
50
|
+
# type:access_token`, which indicates an OAuth 2.0 access token.
|
52
51
|
# Corresponds to the JSON property `requestedTokenType`
|
53
52
|
# @return [String]
|
54
53
|
attr_accessor :requested_token_type
|
@@ -60,71 +59,68 @@ module Google
|
|
60
59
|
# @return [String]
|
61
60
|
attr_accessor :scope
|
62
61
|
|
63
|
-
# Required. The input token. This is a either an external credential
|
64
|
-
#
|
65
|
-
# If the token is an OIDC JWT, it must use the JWT format
|
66
|
-
# https://tools.ietf.org/html/rfc7523), and
|
67
|
-
# ietf:params:oauth:token-type:jwt`. The
|
68
|
-
# kid
|
69
|
-
# cryptographic algorithm securing the JWT. Must
|
70
|
-
# payload fields are required. For more information,
|
71
|
-
# https://tools.ietf.org/html/rfc7523#section-3)
|
72
|
-
# token. The issuer must provide a discovery document at
|
73
|
-
# configuration`, formatted according to section 4.2 of the
|
74
|
-
# specification](https://openid.net/specs/openid-connect-
|
75
|
-
# ProviderConfigurationResponse). -
|
76
|
-
# epoch. Must be in the past. -
|
77
|
-
# since epoch. Must be
|
78
|
-
# are more
|
79
|
-
# than 6 hours. -
|
80
|
-
# Configured by the mapper policy. The default value is the
|
81
|
-
# unique ID. Example header: ``` ` "alg": "RS256", "kid": "us-
|
82
|
-
# Example payload: ``` ` "iss": "https://accounts.google.com", "
|
83
|
-
# "exp": 1517966704, "aud": "113475438248934895348", "sub": "
|
62
|
+
# Required. The input token. This token is a either an external credential
|
63
|
+
# issued by a workload identity pool provider, or a short-lived access token
|
64
|
+
# issued by Google. If the token is an OIDC JWT, it must use the JWT format
|
65
|
+
# defined in [RFC 7523](https://tools.ietf.org/html/rfc7523), and the `
|
66
|
+
# subject_token_type` must be `urn:ietf:params:oauth:token-type:jwt`. The
|
67
|
+
# following headers are required: - `kid`: The identifier of the signing key
|
68
|
+
# securing the JWT. - `alg`: The cryptographic algorithm securing the JWT. Must
|
69
|
+
# be `RS256`. The following payload fields are required. For more information,
|
70
|
+
# see [RFC 7523, Section 3](https://tools.ietf.org/html/rfc7523#section-3): - `
|
71
|
+
# iss`: The issuer of the token. The issuer must provide a discovery document at
|
72
|
+
# `/.well-known/openid-configuration`, formatted according to section 4.2 of the
|
73
|
+
# [OIDC 1.0 Discovery specification](https://openid.net/specs/openid-connect-
|
74
|
+
# discovery-1_0.html#ProviderConfigurationResponse). - `iat`: The issue time, in
|
75
|
+
# seconds, since the Unix epoch. Must be in the past. - `exp`: The expiration
|
76
|
+
# time, in seconds, since the Unix epoch. Must be less than 48 hours after `iat`.
|
77
|
+
# Shorter expiration times are more secure. If possible, we recommend setting
|
78
|
+
# an expiration time less than 6 hours. - `sub`: The identity asserted in the
|
79
|
+
# JWT. - `aud`: Configured by the mapper policy. The default value is the
|
80
|
+
# service account's unique ID. Example header: ``` ` "alg": "RS256", "kid": "us-
|
81
|
+
# east-11" ` ``` Example payload: ``` ` "iss": "https://accounts.google.com", "
|
82
|
+
# iat": 1517963104, "exp": 1517966704, "aud": "113475438248934895348", "sub": "
|
84
83
|
# 113475438248934895348", "my_claims": ` "additional_claim": "value" ` ` ``` If `
|
85
84
|
# subject_token` is an AWS token, it must be a serialized, [signed](https://docs.
|
86
85
|
# aws.amazon.com/general/latest/gr/signing_aws_api_requests.html) request to the
|
87
86
|
# AWS [`GetCallerIdentity()`](https://docs.aws.amazon.com/STS/latest/
|
88
87
|
# APIReference/API_GetCallerIdentity) method. Format the request as URL-encoded
|
89
88
|
# JSON, and set the `subject_token_type` parameter to `urn:ietf:params:aws:token-
|
90
|
-
# type:aws4_request`. The following parameters are required: -
|
91
|
-
#
|
92
|
-
#
|
93
|
-
#
|
94
|
-
#
|
95
|
-
#
|
96
|
-
#
|
97
|
-
#
|
98
|
-
#
|
99
|
-
#
|
100
|
-
#
|
101
|
-
#
|
102
|
-
# `
|
103
|
-
#
|
104
|
-
# providers/
|
105
|
-
#
|
106
|
-
# provided by AWS, you must also include the header `x-amz-security-
|
107
|
-
# the value
|
108
|
-
#
|
109
|
-
#
|
110
|
-
#
|
111
|
-
#
|
112
|
-
#
|
113
|
-
#
|
114
|
-
#
|
115
|
-
#
|
116
|
-
#
|
117
|
-
#
|
118
|
-
#
|
119
|
-
#
|
89
|
+
# type:aws4_request`. The following parameters are required: - `url`: The URL of
|
90
|
+
# the AWS STS endpoint for `GetCallerIdentity()`, such as `https://sts.amazonaws.
|
91
|
+
# com?Action=GetCallerIdentity&Version=2011-06-15`. Regional endpoints are also
|
92
|
+
# supported. - `method`: The HTTP request method: `POST`. - `headers`: The HTTP
|
93
|
+
# request headers, which must include: - `Authorization`: The request signature.
|
94
|
+
# - `x-amz-date`: The time you will send the request, formatted as an [ISO8601
|
95
|
+
# Basic](https://docs.aws.amazon.com/general/latest/gr/sigv4_elements.html#
|
96
|
+
# sigv4_elements_date) string. This is typically set to the current time and
|
97
|
+
# used to prevent replay attacks. - `host`: The hostname of the `url` field; for
|
98
|
+
# example, `sts.amazonaws.com`. - `x-goog-cloud-target-resource`: The full,
|
99
|
+
# canonical resource name of the workload identity pool provider, with or
|
100
|
+
# without an `https:` prefix. To help ensure data integrity, we recommend
|
101
|
+
# including this header in the `SignedHeaders` field of the signed request. For
|
102
|
+
# example: //iam.googleapis.com/projects//locations//workloadIdentityPools//
|
103
|
+
# providers/ https://iam.googleapis.com/projects//locations//
|
104
|
+
# workloadIdentityPools//providers/ If you are using temporary security
|
105
|
+
# credentials provided by AWS, you must also include the header `x-amz-security-
|
106
|
+
# token`, with the value ``. The following example shows a signed, serialized
|
107
|
+
# request: ``` ` "headers":[ `"key": "x-amz-date", "value": "20200815T015049Z"`,
|
108
|
+
# `"key": "Authorization", "value": "AWS4-HMAC-SHA256+Credential=$credential,+
|
109
|
+
# SignedHeaders=host;x-amz-date;x-goog-cloud-target-resource,+Signature=$
|
110
|
+
# signature"`, `"key": "x-goog-cloud-target-resource", "value": "//iam.
|
111
|
+
# googleapis.com/projects//locations//workloadIdentityPools//providers/"`, `"key"
|
112
|
+
# : "host", "value": "sts.amazonaws.com"` . ], "method":"POST", "url":"https://
|
113
|
+
# sts.amazonaws.com?Action=GetCallerIdentity&Version=2011-06-15" ` ``` You can
|
114
|
+
# also use a Google-issued OAuth 2.0 access token with this field to obtain an
|
115
|
+
# access token with new security attributes applied, such as a Credential Access
|
116
|
+
# Boundary. In this case, set `subject_token_type` to `urn:ietf:params:oauth:
|
117
|
+
# token-type:access_token`. If an access token already contains security
|
118
|
+
# attributes, you cannot apply additional security attributes.
|
120
119
|
# Corresponds to the JSON property `subjectToken`
|
121
120
|
# @return [String]
|
122
121
|
attr_accessor :subject_token
|
123
122
|
|
124
|
-
# Required.
|
125
|
-
# subject_token` parameter. Supported values are `urn:ietf:params:oauth:token-
|
126
|
-
# type:jwt`, `urn:ietf:params:aws:token-type:aws4_request` and `urn:ietf:params:
|
127
|
-
# oauth:token-type:access_token`.
|
123
|
+
# Required. `urn:ietf:params:oauth:token-type:access_token`.
|
128
124
|
# Corresponds to the JSON property `subjectTokenType`
|
129
125
|
# @return [String]
|
130
126
|
attr_accessor :subject_token_type
|
@@ -150,18 +146,18 @@ module Google
|
|
150
146
|
include Google::Apis::Core::Hashable
|
151
147
|
|
152
148
|
# An OAuth 2.0 security token, issued by Google, in response to the token
|
153
|
-
# exchange request. Tokens can vary in size
|
154
|
-
# mapped claims
|
155
|
-
#
|
156
|
-
# Your application must support variable token sizes accordingly.
|
149
|
+
# exchange request. Tokens can vary in size, depending in part on the size of
|
150
|
+
# mapped claims, up to a maximum of 12288 bytes (12 KB). Google reserves the
|
151
|
+
# right to change the token size and the maximum length at any time.
|
157
152
|
# Corresponds to the JSON property `access_token`
|
158
153
|
# @return [String]
|
159
154
|
attr_accessor :access_token
|
160
155
|
|
161
|
-
# The
|
162
|
-
#
|
163
|
-
#
|
164
|
-
# access_token`
|
156
|
+
# The amount of time, in seconds, between the time when the `access_token` was
|
157
|
+
# issued and the time when the `access_token` will expire. This field is absent
|
158
|
+
# when the `subject_token` in the request is a Google-issued, short-lived access
|
159
|
+
# token. In this case, the `access_token` has the same expiration time as the `
|
160
|
+
# subject_token`.
|
165
161
|
# Corresponds to the JSON property `expires_in`
|
166
162
|
# @return [Fixnum]
|
167
163
|
attr_accessor :expires_in
|
@@ -49,8 +49,8 @@ module Google
|
|
49
49
|
end
|
50
50
|
|
51
51
|
# Exchanges a credential for a Google OAuth 2.0 access token. The token asserts
|
52
|
-
# an external identity within a
|
53
|
-
# Boundary
|
52
|
+
# an external identity within a workload identity pool, or it applies a
|
53
|
+
# Credential Access Boundary to a Google access token.
|
54
54
|
# @param [Google::Apis::StsV1beta::GoogleIdentityStsV1betaExchangeTokenRequest] google_identity_sts_v1beta_exchange_token_request_object
|
55
55
|
# @param [String] fields
|
56
56
|
# Selector specifying which fields to include in a partial response.
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://developers.google.com/cloud-test-lab/
|
27
27
|
module TestingV1
|
28
28
|
VERSION = 'V1'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20201001'
|
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'
|
@@ -1215,6 +1215,38 @@ module Google
|
|
1215
1215
|
end
|
1216
1216
|
end
|
1217
1217
|
|
1218
|
+
# A file or directory to install on the device before the test starts.
|
1219
|
+
class IosDeviceFile
|
1220
|
+
include Google::Apis::Core::Hashable
|
1221
|
+
|
1222
|
+
# The bundle id of the app where this file lives. iOS apps sandbox their own
|
1223
|
+
# filesystem, so app files must specify which app installed on the device.
|
1224
|
+
# Corresponds to the JSON property `bundleId`
|
1225
|
+
# @return [String]
|
1226
|
+
attr_accessor :bundle_id
|
1227
|
+
|
1228
|
+
# A reference to a file, used for user inputs.
|
1229
|
+
# Corresponds to the JSON property `content`
|
1230
|
+
# @return [Google::Apis::TestingV1::FileReference]
|
1231
|
+
attr_accessor :content
|
1232
|
+
|
1233
|
+
# Location of the file on the device, inside the app's sandboxed filesystem
|
1234
|
+
# Corresponds to the JSON property `devicePath`
|
1235
|
+
# @return [String]
|
1236
|
+
attr_accessor :device_path
|
1237
|
+
|
1238
|
+
def initialize(**args)
|
1239
|
+
update!(**args)
|
1240
|
+
end
|
1241
|
+
|
1242
|
+
# Update properties of this object
|
1243
|
+
def update!(**args)
|
1244
|
+
@bundle_id = args[:bundle_id] if args.key?(:bundle_id)
|
1245
|
+
@content = args[:content] if args.key?(:content)
|
1246
|
+
@device_path = args[:device_path] if args.key?(:device_path)
|
1247
|
+
end
|
1248
|
+
end
|
1249
|
+
|
1218
1250
|
# A list of iOS device configurations in which the test is to be executed.
|
1219
1251
|
class IosDeviceList
|
1220
1252
|
include Google::Apis::Core::Hashable
|
@@ -1380,6 +1412,19 @@ module Google
|
|
1380
1412
|
# @return [String]
|
1381
1413
|
attr_accessor :network_profile
|
1382
1414
|
|
1415
|
+
# List of directories on the device to upload to Cloud Storage at the end of the
|
1416
|
+
# test. Directories should either be in a shared directory (e.g. /private/var/
|
1417
|
+
# mobile/Media) or within an accessible directory inside the app's filesystem (e.
|
1418
|
+
# g. /Documents) by specifying the bundle id.
|
1419
|
+
# Corresponds to the JSON property `pullDirectories`
|
1420
|
+
# @return [Array<Google::Apis::TestingV1::IosDeviceFile>]
|
1421
|
+
attr_accessor :pull_directories
|
1422
|
+
|
1423
|
+
# List of files to push to the device before starting the test.
|
1424
|
+
# Corresponds to the JSON property `pushFiles`
|
1425
|
+
# @return [Array<Google::Apis::TestingV1::IosDeviceFile>]
|
1426
|
+
attr_accessor :push_files
|
1427
|
+
|
1383
1428
|
def initialize(**args)
|
1384
1429
|
update!(**args)
|
1385
1430
|
end
|
@@ -1388,6 +1433,8 @@ module Google
|
|
1388
1433
|
def update!(**args)
|
1389
1434
|
@additional_ipas = args[:additional_ipas] if args.key?(:additional_ipas)
|
1390
1435
|
@network_profile = args[:network_profile] if args.key?(:network_profile)
|
1436
|
+
@pull_directories = args[:pull_directories] if args.key?(:pull_directories)
|
1437
|
+
@push_files = args[:push_files] if args.key?(:push_files)
|
1391
1438
|
end
|
1392
1439
|
end
|
1393
1440
|
|
@@ -220,6 +220,12 @@ module Google
|
|
220
220
|
include Google::Apis::Core::JsonObjectSupport
|
221
221
|
end
|
222
222
|
|
223
|
+
class IosDeviceFile
|
224
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
225
|
+
|
226
|
+
include Google::Apis::Core::JsonObjectSupport
|
227
|
+
end
|
228
|
+
|
223
229
|
class IosDeviceList
|
224
230
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
225
231
|
|
@@ -780,6 +786,16 @@ module Google
|
|
780
786
|
end
|
781
787
|
end
|
782
788
|
|
789
|
+
class IosDeviceFile
|
790
|
+
# @private
|
791
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
792
|
+
property :bundle_id, as: 'bundleId'
|
793
|
+
property :content, as: 'content', class: Google::Apis::TestingV1::FileReference, decorator: Google::Apis::TestingV1::FileReference::Representation
|
794
|
+
|
795
|
+
property :device_path, as: 'devicePath'
|
796
|
+
end
|
797
|
+
end
|
798
|
+
|
783
799
|
class IosDeviceList
|
784
800
|
# @private
|
785
801
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -829,6 +845,10 @@ module Google
|
|
829
845
|
collection :additional_ipas, as: 'additionalIpas', class: Google::Apis::TestingV1::FileReference, decorator: Google::Apis::TestingV1::FileReference::Representation
|
830
846
|
|
831
847
|
property :network_profile, as: 'networkProfile'
|
848
|
+
collection :pull_directories, as: 'pullDirectories', class: Google::Apis::TestingV1::IosDeviceFile, decorator: Google::Apis::TestingV1::IosDeviceFile::Representation
|
849
|
+
|
850
|
+
collection :push_files, as: 'pushFiles', class: Google::Apis::TestingV1::IosDeviceFile, decorator: Google::Apis::TestingV1::IosDeviceFile::Representation
|
851
|
+
|
832
852
|
end
|
833
853
|
end
|
834
854
|
|