|
18 | 18 | @class GTLRAIPlatformNotebooks_AccessConfig; |
19 | 19 | @class GTLRAIPlatformNotebooks_Binding; |
20 | 20 | @class GTLRAIPlatformNotebooks_BootDisk; |
| 21 | +@class GTLRAIPlatformNotebooks_CheckAuthorizationRequest_AuthorizationDetails; |
21 | 22 | @class GTLRAIPlatformNotebooks_ConfidentialInstanceConfig; |
22 | 23 | @class GTLRAIPlatformNotebooks_ContainerImage; |
23 | 24 | @class GTLRAIPlatformNotebooks_DataDisk; |
@@ -753,6 +754,58 @@ FOUNDATION_EXTERN NSString * const kGTLRAIPlatformNotebooks_UpgradeHistoryEntry_ |
753 | 754 | @end |
754 | 755 |
|
755 | 756 |
|
| 757 | +/** |
| 758 | + * Request message for checking authorization for the instance owner. |
| 759 | + */ |
| 760 | +@interface GTLRAIPlatformNotebooks_CheckAuthorizationRequest : GTLRObject |
| 761 | + |
| 762 | +/** |
| 763 | + * Optional. The details of the OAuth authorization response. This may include |
| 764 | + * additional params such as dry_run, version_info, origin, propagate, etc. |
| 765 | + */ |
| 766 | +@property(nonatomic, strong, nullable) GTLRAIPlatformNotebooks_CheckAuthorizationRequest_AuthorizationDetails *authorizationDetails; |
| 767 | + |
| 768 | +@end |
| 769 | + |
| 770 | + |
| 771 | +/** |
| 772 | + * Optional. The details of the OAuth authorization response. This may include |
| 773 | + * additional params such as dry_run, version_info, origin, propagate, etc. |
| 774 | + * |
| 775 | + * @note This class is documented as having more properties of NSString. Use @c |
| 776 | + * -additionalJSONKeys and @c -additionalPropertyForName: to get the list |
| 777 | + * of properties and then fetch them; or @c -additionalProperties to |
| 778 | + * fetch them all at once. |
| 779 | + */ |
| 780 | +@interface GTLRAIPlatformNotebooks_CheckAuthorizationRequest_AuthorizationDetails : GTLRObject |
| 781 | +@end |
| 782 | + |
| 783 | + |
| 784 | +/** |
| 785 | + * Response message for checking authorization for the instance owner. |
| 786 | + */ |
| 787 | +@interface GTLRAIPlatformNotebooks_CheckAuthorizationResponse : GTLRObject |
| 788 | + |
| 789 | +/** Output only. Timestamp when this Authorization request was created. */ |
| 790 | +@property(nonatomic, strong, nullable) GTLRDateTime *createTime; |
| 791 | + |
| 792 | +/** |
| 793 | + * If the user has not completed OAuth consent, then the oauth_url is returned. |
| 794 | + * Otherwise, this field is not set. |
| 795 | + */ |
| 796 | +@property(nonatomic, copy, nullable) NSString *oauthUri; |
| 797 | + |
| 798 | +/** |
| 799 | + * Success indicates that the user completed OAuth consent and access tokens |
| 800 | + * can be generated. |
| 801 | + * |
| 802 | + * Uses NSNumber of boolValue. |
| 803 | + */ |
| 804 | +@property(nonatomic, strong, nullable) NSNumber *success; |
| 805 | + |
| 806 | +@end |
| 807 | + |
| 808 | + |
756 | 809 | /** |
757 | 810 | * Response for checking if a notebook instance is upgradeable. |
758 | 811 | */ |
@@ -1207,6 +1260,53 @@ FOUNDATION_EXTERN NSString * const kGTLRAIPlatformNotebooks_UpgradeHistoryEntry_ |
1207 | 1260 | @end |
1208 | 1261 |
|
1209 | 1262 |
|
| 1263 | +/** |
| 1264 | + * Request message for generating an EUC for the instance owner. |
| 1265 | + */ |
| 1266 | +@interface GTLRAIPlatformNotebooks_GenerateAccessTokenRequest : GTLRObject |
| 1267 | + |
| 1268 | +/** |
| 1269 | + * Required. The VM identity token (a JWT) for authenticating the VM. |
| 1270 | + * https://cloud.google.com/compute/docs/instances/verifying-instance-identity |
| 1271 | + */ |
| 1272 | +@property(nonatomic, copy, nullable) NSString *vmToken; |
| 1273 | + |
| 1274 | +@end |
| 1275 | + |
| 1276 | + |
| 1277 | +/** |
| 1278 | + * Response message for generating an EUC for the instance owner. |
| 1279 | + */ |
| 1280 | +@interface GTLRAIPlatformNotebooks_GenerateAccessTokenResponse : GTLRObject |
| 1281 | + |
| 1282 | +/** |
| 1283 | + * Short-lived access token string which may be used to access Google APIs. |
| 1284 | + */ |
| 1285 | +@property(nonatomic, copy, nullable) NSString *accessToken; |
| 1286 | + |
| 1287 | +/** |
| 1288 | + * The time in seconds when the access token expires. Typically that's 3600. |
| 1289 | + * |
| 1290 | + * Uses NSNumber of intValue. |
| 1291 | + */ |
| 1292 | +@property(nonatomic, strong, nullable) NSNumber *expiresIn; |
| 1293 | + |
| 1294 | +/** |
| 1295 | + * Space-separated list of scopes contained in the returned token. |
| 1296 | + * https://cloud.google.com/docs/authentication/token-types#access-contents |
| 1297 | + */ |
| 1298 | +@property(nonatomic, copy, nullable) NSString *scope; |
| 1299 | + |
| 1300 | +/** |
| 1301 | + * Type of the returned access token (e.g. "Bearer"). It specifies how the |
| 1302 | + * token must be used. Bearer tokens may be used by any entity without proof of |
| 1303 | + * identity. |
| 1304 | + */ |
| 1305 | +@property(nonatomic, copy, nullable) NSString *tokenType; |
| 1306 | + |
| 1307 | +@end |
| 1308 | + |
| 1309 | + |
1210 | 1310 | /** |
1211 | 1311 | * A GPU driver configuration |
1212 | 1312 | */ |
@@ -1278,6 +1378,13 @@ FOUNDATION_EXTERN NSString * const kGTLRAIPlatformNotebooks_UpgradeHistoryEntry_ |
1278 | 1378 | */ |
1279 | 1379 | @property(nonatomic, strong, nullable) NSNumber *enableDeletionProtection; |
1280 | 1380 |
|
| 1381 | +/** |
| 1382 | + * Optional. Flag to enable managed end user credentials for the instance. |
| 1383 | + * |
| 1384 | + * Uses NSNumber of boolValue. |
| 1385 | + */ |
| 1386 | +@property(nonatomic, strong, nullable) NSNumber *enableManagedEuc; |
| 1387 | + |
1281 | 1388 | /** |
1282 | 1389 | * Optional. Flag that specifies that a notebook can be accessed with third |
1283 | 1390 | * party identity provider. |
|
0 commit comments