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.
Files changed (160) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +59 -0
  3. data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
  4. data/generated/google/apis/accesscontextmanager_v1/classes.rb +68 -0
  5. data/generated/google/apis/accesscontextmanager_v1/representations.rb +30 -0
  6. data/generated/google/apis/accesscontextmanager_v1/service.rb +180 -0
  7. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  8. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +25 -0
  9. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +15 -0
  10. data/generated/google/apis/admob_v1.rb +3 -2
  11. data/generated/google/apis/admob_v1/service.rb +2 -1
  12. data/generated/google/apis/adsense_v1_4.rb +1 -1
  13. data/generated/google/apis/adsense_v1_4/service.rb +4 -1
  14. data/generated/google/apis/analyticsdata_v1alpha.rb +1 -1
  15. data/generated/google/apis/analyticsdata_v1alpha/classes.rb +31 -0
  16. data/generated/google/apis/analyticsdata_v1alpha/representations.rb +17 -0
  17. data/generated/google/apis/analyticsdata_v1alpha/service.rb +39 -0
  18. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  19. data/generated/google/apis/androidpublisher_v3/service.rb +2 -5
  20. data/generated/google/apis/apigee_v1.rb +1 -1
  21. data/generated/google/apis/apigee_v1/classes.rb +231 -1
  22. data/generated/google/apis/apigee_v1/representations.rb +87 -0
  23. data/generated/google/apis/apigee_v1/service.rb +201 -1
  24. data/generated/google/apis/appsmarket_v2.rb +1 -1
  25. data/generated/google/apis/billingbudgets_v1.rb +38 -0
  26. data/generated/google/apis/billingbudgets_v1/classes.rb +362 -0
  27. data/generated/google/apis/billingbudgets_v1/representations.rb +170 -0
  28. data/generated/google/apis/billingbudgets_v1/service.rb +249 -0
  29. data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
  30. data/generated/google/apis/cloudasset_v1p4beta1/classes.rb +3 -3
  31. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  32. data/generated/google/apis/cloudsearch_v1/classes.rb +2 -1
  33. data/generated/google/apis/cloudshell_v1.rb +1 -1
  34. data/generated/google/apis/cloudshell_v1/classes.rb +342 -0
  35. data/generated/google/apis/cloudshell_v1/representations.rb +200 -0
  36. data/generated/google/apis/cloudshell_v1/service.rb +177 -0
  37. data/generated/google/apis/composer_v1.rb +1 -1
  38. data/generated/google/apis/composer_v1/classes.rb +2 -3
  39. data/generated/google/apis/composer_v1beta1.rb +1 -1
  40. data/generated/google/apis/composer_v1beta1/classes.rb +2 -3
  41. data/generated/google/apis/composer_v1beta1/service.rb +37 -35
  42. data/generated/google/apis/compute_alpha.rb +1 -1
  43. data/generated/google/apis/compute_alpha/classes.rb +126 -21
  44. data/generated/google/apis/compute_alpha/representations.rb +7 -0
  45. data/generated/google/apis/compute_alpha/service.rb +62 -3
  46. data/generated/google/apis/compute_beta.rb +1 -1
  47. data/generated/google/apis/compute_beta/classes.rb +83 -19
  48. data/generated/google/apis/compute_beta/representations.rb +4 -0
  49. data/generated/google/apis/compute_beta/service.rb +3 -3
  50. data/generated/google/apis/compute_v1.rb +1 -1
  51. data/generated/google/apis/compute_v1/classes.rb +28 -8
  52. data/generated/google/apis/compute_v1/representations.rb +3 -0
  53. data/generated/google/apis/compute_v1/service.rb +3 -3
  54. data/generated/google/apis/container_v1beta1.rb +1 -1
  55. data/generated/google/apis/content_v2.rb +1 -1
  56. data/generated/google/apis/content_v2_1.rb +1 -1
  57. data/generated/google/apis/content_v2_1/classes.rb +99 -0
  58. data/generated/google/apis/content_v2_1/representations.rb +47 -0
  59. data/generated/google/apis/content_v2_1/service.rb +37 -0
  60. data/generated/google/apis/dialogflow_v2.rb +1 -1
  61. data/generated/google/apis/dialogflow_v2/classes.rb +50 -32
  62. data/generated/google/apis/dialogflow_v2/representations.rb +28 -13
  63. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  64. data/generated/google/apis/dialogflow_v2beta1/classes.rb +50 -32
  65. data/generated/google/apis/dialogflow_v2beta1/representations.rb +28 -13
  66. data/generated/google/apis/dialogflow_v2beta1/service.rb +54 -4
  67. data/generated/google/apis/dialogflow_v3beta1.rb +1 -1
  68. data/generated/google/apis/dialogflow_v3beta1/classes.rb +66 -35
  69. data/generated/google/apis/dialogflow_v3beta1/representations.rb +29 -13
  70. data/generated/google/apis/dialogflow_v3beta1/service.rb +22 -9
  71. data/generated/google/apis/displayvideo_v1.rb +1 -1
  72. data/generated/google/apis/displayvideo_v1/service.rb +13 -10
  73. data/generated/google/apis/dns_v1.rb +1 -1
  74. data/generated/google/apis/dns_v1/service.rb +10 -10
  75. data/generated/google/apis/dns_v1beta2.rb +1 -1
  76. data/generated/google/apis/dns_v1beta2/service.rb +10 -10
  77. data/generated/google/apis/documentai_v1beta3.rb +36 -0
  78. data/generated/google/apis/documentai_v1beta3/classes.rb +6149 -0
  79. data/generated/google/apis/documentai_v1beta3/representations.rb +2666 -0
  80. data/generated/google/apis/documentai_v1beta3/service.rb +263 -0
  81. data/generated/google/apis/doubleclickbidmanager_v1_1.rb +1 -1
  82. data/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb +2 -2
  83. data/generated/google/apis/drive_v2.rb +1 -1
  84. data/generated/google/apis/drive_v2/classes.rb +2 -1
  85. data/generated/google/apis/fitness_v1.rb +13 -1
  86. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  87. data/generated/google/apis/healthcare_v1beta1/classes.rb +116 -289
  88. data/generated/google/apis/healthcare_v1beta1/representations.rb +45 -81
  89. data/generated/google/apis/healthcare_v1beta1/service.rb +65 -61
  90. data/generated/google/apis/licensing_v1.rb +1 -1
  91. data/generated/google/apis/licensing_v1/service.rb +2 -2
  92. data/generated/google/apis/lifesciences_v2beta.rb +1 -1
  93. data/generated/google/apis/lifesciences_v2beta/classes.rb +104 -0
  94. data/generated/google/apis/lifesciences_v2beta/representations.rb +47 -0
  95. data/generated/google/apis/memcache_v1beta2.rb +1 -1
  96. data/generated/google/apis/memcache_v1beta2/classes.rb +1 -1
  97. data/generated/google/apis/monitoring_v3.rb +1 -1
  98. data/generated/google/apis/monitoring_v3/classes.rb +48 -0
  99. data/generated/google/apis/monitoring_v3/representations.rb +18 -0
  100. data/generated/google/apis/oauth2_v2.rb +40 -0
  101. data/generated/google/apis/oauth2_v2/classes.rb +165 -0
  102. data/generated/google/apis/oauth2_v2/representations.rb +68 -0
  103. data/generated/google/apis/oauth2_v2/service.rb +158 -0
  104. data/generated/google/apis/people_v1.rb +1 -1
  105. data/generated/google/apis/people_v1/classes.rb +3 -2
  106. data/generated/google/apis/people_v1/service.rb +4 -4
  107. data/generated/google/apis/realtimebidding_v1.rb +1 -1
  108. data/generated/google/apis/realtimebidding_v1/classes.rb +55 -94
  109. data/generated/google/apis/realtimebidding_v1/representations.rb +18 -32
  110. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  111. data/generated/google/apis/remotebuildexecution_v1/classes.rb +6 -0
  112. data/generated/google/apis/remotebuildexecution_v1/representations.rb +1 -0
  113. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  114. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +6 -0
  115. data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +1 -0
  116. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  117. data/generated/google/apis/remotebuildexecution_v2/classes.rb +6 -0
  118. data/generated/google/apis/remotebuildexecution_v2/representations.rb +1 -0
  119. data/generated/google/apis/run_v1.rb +1 -1
  120. data/generated/google/apis/run_v1/classes.rb +5 -2
  121. data/generated/google/apis/smartdevicemanagement_v1.rb +1 -1
  122. data/generated/google/apis/smartdevicemanagement_v1/classes.rb +4 -10
  123. data/generated/google/apis/smartdevicemanagement_v1/representations.rb +0 -1
  124. data/generated/google/apis/smartdevicemanagement_v1/service.rb +1 -4
  125. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  126. data/generated/google/apis/sqladmin_v1beta4/classes.rb +49 -5
  127. data/generated/google/apis/sqladmin_v1beta4/representations.rb +17 -0
  128. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  129. data/generated/google/apis/storagetransfer_v1/classes.rb +13 -0
  130. data/generated/google/apis/storagetransfer_v1/representations.rb +12 -0
  131. data/generated/google/apis/storagetransfer_v1/service.rb +5 -2
  132. data/generated/google/apis/sts_v1.rb +1 -1
  133. data/generated/google/apis/sts_v1/classes.rb +10 -9
  134. data/generated/google/apis/sts_v1beta.rb +1 -1
  135. data/generated/google/apis/sts_v1beta/classes.rb +66 -70
  136. data/generated/google/apis/sts_v1beta/service.rb +2 -2
  137. data/generated/google/apis/testing_v1.rb +1 -1
  138. data/generated/google/apis/testing_v1/classes.rb +47 -0
  139. data/generated/google/apis/testing_v1/representations.rb +20 -0
  140. data/generated/google/apis/videointelligence_v1.rb +1 -1
  141. data/generated/google/apis/videointelligence_v1/classes.rb +430 -2
  142. data/generated/google/apis/videointelligence_v1/representations.rb +241 -0
  143. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  144. data/generated/google/apis/videointelligence_v1beta2/classes.rb +430 -2
  145. data/generated/google/apis/videointelligence_v1beta2/representations.rb +241 -0
  146. data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
  147. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +430 -2
  148. data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +241 -0
  149. data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
  150. data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +430 -2
  151. data/generated/google/apis/videointelligence_v1p2beta1/representations.rb +241 -0
  152. data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
  153. data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +430 -2
  154. data/generated/google/apis/videointelligence_v1p3beta1/representations.rb +241 -0
  155. data/generated/google/apis/workflows_v1beta.rb +3 -2
  156. data/generated/google/apis/workflows_v1beta/service.rb +2 -1
  157. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  158. data/generated/google/apis/youtube_v3.rb +1 -1
  159. data/lib/google/apis/version.rb +1 -1
  160. 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 = '20200924'
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
- # " Required. The job to get.
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?
@@ -26,7 +26,7 @@ module Google
26
26
  # @see http://cloud.google.com/iam/docs/workload-identity-federation
27
27
  module StsV1
28
28
  VERSION = 'V1'
29
- REVISION = '20200908'
29
+ REVISION = '20201004'
30
30
  end
31
31
  end
32
32
  end
@@ -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 is requested.
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. Input subject token. You can use a Google-issued OAuth 2.0 access
49
- # token with this field to obtain an access token with new security attributes
50
- # applied, such as an AccessBoundary. Applying additional security attributes on
51
- # access tokens that already contain security attributes is not allowed.
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 expiration time of `access_token` in seconds, measured from the time of
88
- # issuance. This field is absent when the `subject_token` in the request is a
89
- # Google-issued, short-lived access token. In this case, the expiration time of
90
- # the `access_token` is the same as the `subject_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,7 +26,7 @@ module Google
26
26
  # @see http://cloud.google.com/iam/docs/workload-identity-federation
27
27
  module StsV1beta
28
28
  VERSION = 'V1beta'
29
- REVISION = '20200919'
29
+ REVISION = '20201004'
30
30
  end
31
31
  end
32
32
  end
@@ -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; for example: `https://iam.
30
- # googleapis.com/projects/`PROJECT_ID`/workloadIdentityPools/`POOL_ID`/providers/
31
- # `PROVIDER_ID``. Required when exchanging an external credential for a Google
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 is requested.
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. An identifier for the type of requested security token. Must be `urn:
51
- # ietf:params:oauth:token-type:access_token`.
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 issued by a
64
- # WorkloadIdentityPoolProvider, or a short-lived access token issued by Google.
65
- # If the token is an OIDC JWT, it must use the JWT format defined in [RFC 7523](
66
- # https://tools.ietf.org/html/rfc7523), and `subject_token_type` must be `urn:
67
- # ietf:params:oauth:token-type:jwt`. The following headers are required: - **`
68
- # kid`**: The identifier of the signing key securing the JWT. - **`alg`**: The
69
- # cryptographic algorithm securing the JWT. Must be `RS256`. The following
70
- # payload fields are required. For more information, see [RFC 7523, Section 3](
71
- # https://tools.ietf.org/html/rfc7523#section-3). - **`iss`**: The issuer of the
72
- # token. The issuer must provide a discovery document at `/.well-known/openid-
73
- # configuration`, formatted according to section 4.2 of the [OIDC 1.0 Discovery
74
- # specification](https://openid.net/specs/openid-connect-discovery-1_0.html#
75
- # ProviderConfigurationResponse). - **`iat`**: The issue time, in seconds, since
76
- # epoch. Must be in the past. - **`exp`**: The expiration time, in seconds,
77
- # since epoch. Must be fewer than 48 hours after `iat`. Shorter expiration times
78
- # are more. secure. If possible, we recommend setting an expiration time fewer
79
- # than 6 hours. - **`sub`**: The identity asserted in the JWT. - **`aud`**:
80
- # Configured by the mapper policy. The default value is the service account's
81
- # unique ID. Example header: ``` ` "alg": "RS256", "kid": "us-east-11" ` ```
82
- # Example payload: ``` ` "iss": "https://accounts.google.com", "iat": 1517963104,
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: - **`url`**: The
91
- # URL of the AWS STS endpoint for `GetCallerIdentity()`, such as `https://sts.
92
- # amazonaws.com?Action=GetCallerIdentity&Version=2011-06-15`. Regional endpoints
93
- # are also supported. - **`method`:** The HTTP request method: `POST`. - **`
94
- # headers`**: The HTTP request headers, which must include: - **`Authorization`**
95
- # : The request signature. - **`x-amz-date`**`: The time you will send the
96
- # request, formatted as an [ISO8601 Basic](https://docs.aws.amazon.com/general/
97
- # latest/gr/sigv4_elements.html#sigv4_elements_date) string. This is typically
98
- # set to the current time, and used to prevent replay attacks. - **`host`**: The
99
- # hostname of the `url` field; for example, `sts.amazonaws.com`. - **`x-goog-
100
- # cloud-target-resource`**: The full, canonical resource name of the
101
- # WorkloadIdentityPoolProvider, with or without the HTTPS prefix. For example: ``
102
- # ` //iam.googleapis.com/projects//locations//workloadIdentityPools//providers/
103
- # https://iam.googleapis.com/projects//locations//workloadIdentityPools//
104
- # providers/ ``` Signing this header as part of the signature is recommended to
105
- # ensure data integrity. If you are using temporary security credentials
106
- # provided by AWS, you must also include the header `x-amz-security-token`, with
107
- # the value `[SESSION_TOKEN]`. The following is an example of a signed,
108
- # serialized request: ``` ` "headers":[ `"key": "x-amz-date", "value": "
109
- # 20200815T015049Z"`, `"key": "Authorization", "value": "AWS4-HMAC-SHA256+
110
- # Credential=$credential,+SignedHeaders=host;x-amz-date;x-goog-cloud-target-
111
- # resource,+Signature=$signature"`, `"key": "x-goog-cloud-target-resource", "
112
- # value": "//iam.googleapis.com/projects//locations//workloadIdentityPools//
113
- # providers/"`, `"key": "host", "value": "sts.amazonaws.com"` . ], "method":"
114
- # POST", "url":"https://sts.amazonaws.com?Action=GetCallerIdentity&Version=2011-
115
- # 06-15" ` ``` You can also use a Google-issued OAuth 2.0 access token with this
116
- # field to obtain an access token with new security attributes applied, such as
117
- # an AccessBoundary. In this case, set `subject_token_type` to `urn:ietf:params:
118
- # oauth:token-type:access_token`. Applying additional security attributes on
119
- # access tokens that already contain security attributes is not allowed.
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. An identifier that indicates the type of the security token in the `
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 (mainly depending on the size of
154
- # mapped claims), currently up to the 12288 bytes (12 KB) size limit. Google
155
- # reserves the right to change token size, including increasing these limits.
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 expiration time of `access_token`, in seconds, from the time of issuance.
162
- # This field is absent when the `subject_token` in the request is a Google-
163
- # issued, short-lived access token. In this case, the expiration time of the `
164
- # access_token` is the same as the `subject_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 WorkloadIdentityPool, or applies an Access
53
- # Boundary on a Google access token.
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 = '20200914'
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