Skip to content

Commit

Permalink
Generate current service sources.
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasvl committed Jan 22, 2024
1 parent b2f2385 commit bcb0439
Show file tree
Hide file tree
Showing 185 changed files with 46,410 additions and 77,892 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,16 @@ @implementation GTLRAIPlatformNotebooks_ResetInstanceRequest
@end


// ----------------------------------------------------------------------------
//
// GTLRAIPlatformNotebooks_ResizeDiskRequest
//

@implementation GTLRAIPlatformNotebooks_ResizeDiskRequest
@dynamic bootDisk, dataDisk;
@end


// ----------------------------------------------------------------------------
//
// GTLRAIPlatformNotebooks_RollbackInstanceRequest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,33 @@ + (instancetype)queryWithObject:(GTLRAIPlatformNotebooks_ResetInstanceRequest *)

@end

@implementation GTLRAIPlatformNotebooksQuery_ProjectsLocationsInstancesResizeDisk

@dynamic notebookInstance;

+ (instancetype)queryWithObject:(GTLRAIPlatformNotebooks_ResizeDiskRequest *)object
notebookInstance:(NSString *)notebookInstance {
if (object == nil) {
#if defined(DEBUG) && DEBUG
NSAssert(object != nil, @"Got a nil object");
#endif
return nil;
}
NSArray *pathParams = @[ @"notebookInstance" ];
NSString *pathURITemplate = @"v2/{+notebookInstance}:resizeDisk";
GTLRAIPlatformNotebooksQuery_ProjectsLocationsInstancesResizeDisk *query =
[[self alloc] initWithPathURITemplate:pathURITemplate
HTTPMethod:@"POST"
pathParameterNames:pathParams];
query.bodyObject = object;
query.notebookInstance = notebookInstance;
query.expectedObjectClass = [GTLRAIPlatformNotebooks_Operation class];
query.loggingName = @"notebooks.projects.locations.instances.resizeDisk";
return query;
}

@end

@implementation GTLRAIPlatformNotebooksQuery_ProjectsLocationsInstancesRollback

@dynamic name;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1685,6 +1685,20 @@ FOUNDATION_EXTERN NSString * const kGTLRAIPlatformNotebooks_UpgradeHistoryEntry_
@end


/**
* Request for resizing the notebook instance disks
*/
@interface GTLRAIPlatformNotebooks_ResizeDiskRequest : GTLRObject

/** Required. The boot disk to be resized. Only disk_size_gb will be used. */
@property(nonatomic, strong, nullable) GTLRAIPlatformNotebooks_BootDisk *bootDisk;

/** Required. The data disk to be resized. Only disk_size_gb will be used. */
@property(nonatomic, strong, nullable) GTLRAIPlatformNotebooks_DataDisk *dataDisk;

@end


/**
* Request for rollbacking a notebook instance
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,39 @@ NS_ASSUME_NONNULL_BEGIN

@end

/**
* Resize a notebook instance disk to a higher capacity.
*
* Method: notebooks.projects.locations.instances.resizeDisk
*
* Authorization scope(s):
* @c kGTLRAuthScopeAIPlatformNotebooksCloudPlatform
*/
@interface GTLRAIPlatformNotebooksQuery_ProjectsLocationsInstancesResizeDisk : GTLRAIPlatformNotebooksQuery

/**
* Required. Format:
* `projects/{project_id}/locations/{location}/instances/{instance_id}`
*/
@property(nonatomic, copy, nullable) NSString *notebookInstance;

/**
* Fetches a @c GTLRAIPlatformNotebooks_Operation.
*
* Resize a notebook instance disk to a higher capacity.
*
* @param object The @c GTLRAIPlatformNotebooks_ResizeDiskRequest to include in
* the query.
* @param notebookInstance Required. Format:
* `projects/{project_id}/locations/{location}/instances/{instance_id}`
*
* @return GTLRAIPlatformNotebooksQuery_ProjectsLocationsInstancesResizeDisk
*/
+ (instancetype)queryWithObject:(GTLRAIPlatformNotebooks_ResizeDiskRequest *)object
notebookInstance:(NSString *)notebookInstance;

@end

/**
* Rollbacks a notebook instance to the previous version.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -535,9 +535,25 @@ FOUNDATION_EXTERN NSString * const kGTLRAPIGateway_Gateway_State_Updating;
* `group:{emailid}`: An email address that represents a Google group. For
* example, `admins\@example.com`. * `domain:{domain}`: The G Suite domain
* (primary) that represents all the users of that domain. For example,
* `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An
* email address (plus unique identifier) representing a user that has been
* recently deleted. For example,
* `google.com` or `example.com`. *
* `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
* A single identity in a workforce identity pool. *
* `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
* All workforce identities in a group. *
* `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
* All workforce identities with a specific attribute value. *
* `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/
* *`: All identities in a workforce identity pool. *
* `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`:
* A single identity in a workload identity pool. *
* `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`:
* A workload identity pool group. *
* `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`:
* All identities in a workload identity pool with a certain attribute. *
* `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/
* *`: All identities in a workload identity pool. *
* `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a user that has been recently deleted. For example,
* `alice\@example.com?uid=123456789012345678901`. If the user is recovered,
* this value reverts to `user:{emailid}` and the recovered user retains the
* role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An
Expand All @@ -551,7 +567,10 @@ FOUNDATION_EXTERN NSString * const kGTLRAPIGateway_Gateway_State_Updating;
* recently deleted. For example,
* `admins\@example.com?uid=123456789012345678901`. If the group is recovered,
* this value reverts to `group:{emailid}` and the recovered group retains the
* role in the binding.
* role in the binding. *
* `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`:
* Deleted single identity in a workforce identity pool. For example,
* `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
*/
@property(nonatomic, strong, nullable) NSArray<NSString *> *members;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,10 @@ NS_ASSUME_NONNULL_BEGIN
// GTLRAccessApproval_AccessReason.type

/**
* Similar to 'GOOGLE_INITIATED_SERVICE' or 'GOOGLE_INITIATED_REVIEW', but
* meant to reflect when the cloud operator is not Google (namely, a TPC
* operator), and accessed customer data in order to diagnose or resolve a
* suspected issue in services or a known outage, or for security, fraud,
* abuse, or compliance review purposes.
* Similar to 'GOOGLE_INITIATED_SERVICE' or 'GOOGLE_INITIATED_REVIEW', but with
* universe agnostic naming. The principal accessed customer data in order to
* diagnose or resolve a suspected issue in services or a known outage, or for
* security, fraud, abuse, or compliance review purposes.
*
* Value: "CLOUD_INITIATED_ACCESS"
*/
Expand Down Expand Up @@ -371,12 +370,11 @@ FOUNDATION_EXTERN NSString * const kGTLRAccessApproval_SignatureInfo_GoogleKeyAl
*
* Likely values:
* @arg @c kGTLRAccessApproval_AccessReason_Type_CloudInitiatedAccess Similar
* to 'GOOGLE_INITIATED_SERVICE' or 'GOOGLE_INITIATED_REVIEW', but meant
* to reflect when the cloud operator is not Google (namely, a TPC
* operator), and accessed customer data in order to diagnose or resolve
* a suspected issue in services or a known outage, or for security,
* fraud, abuse, or compliance review purposes. (Value:
* "CLOUD_INITIATED_ACCESS")
* to 'GOOGLE_INITIATED_SERVICE' or 'GOOGLE_INITIATED_REVIEW', but with
* universe agnostic naming. The principal accessed customer data in
* order to diagnose or resolve a suspected issue in services or a known
* outage, or for security, fraud, abuse, or compliance review purposes.
* (Value: "CLOUD_INITIATED_ACCESS")
* @arg @c kGTLRAccessApproval_AccessReason_Type_CustomerInitiatedSupport
* Customer made a request or raised an issue that required the principal
* to access customer data. `detail` is of the form ("#####" is the issue
Expand Down
Loading

0 comments on commit bcb0439

Please sign in to comment.