Skip to content

Commit

Permalink
Update generated services.
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasvl committed Sep 4, 2024
1 parent 9e6f102 commit 903e70c
Show file tree
Hide file tree
Showing 388 changed files with 79,065 additions and 50,780 deletions.
10 changes: 10 additions & 0 deletions GoogleAPIClientForREST.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,11 @@ Pod::Spec.new do |s|
sp.source_files = 'Sources/GeneratedServices/AdSenseHost/**/*.{h,m}'
sp.public_header_files = 'Sources/GeneratedServices/AdSenseHost/Public/GoogleAPIClientForREST/*.h'
end
s.subspec 'AdSensePlatform' do |sp|
sp.dependency 'GoogleAPIClientForREST/Core'
sp.source_files = 'Sources/GeneratedServices/AdSensePlatform/**/*.{h,m}'
sp.public_header_files = 'Sources/GeneratedServices/AdSensePlatform/Public/GoogleAPIClientForREST/*.h'
end
s.subspec 'Advisorynotifications' do |sp|
sp.dependency 'GoogleAPIClientForREST/Core'
sp.source_files = 'Sources/GeneratedServices/Advisorynotifications/**/*.{h,m}'
Expand Down Expand Up @@ -604,6 +609,11 @@ Pod::Spec.new do |s|
sp.source_files = 'Sources/GeneratedServices/Contentwarehouse/**/*.{h,m}'
sp.public_header_files = 'Sources/GeneratedServices/Contentwarehouse/Public/GoogleAPIClientForREST/*.h'
end
s.subspec 'Css' do |sp|
sp.dependency 'GoogleAPIClientForREST/Core'
sp.source_files = 'Sources/GeneratedServices/Css/**/*.{h,m}'
sp.public_header_files = 'Sources/GeneratedServices/Css/Public/GoogleAPIClientForREST/*.h'
end
s.subspec 'CustomSearchAPI' do |sp|
sp.dependency 'GoogleAPIClientForREST/Core'
sp.source_files = 'Sources/GeneratedServices/CustomSearchAPI/**/*.{h,m}'
Expand Down
20 changes: 20 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ let package = Package(
name: "GoogleAPIClientForREST_AdSenseHost",
targets: ["GoogleAPIClientForREST_AdSenseHost"]
),
.library(
name: "GoogleAPIClientForREST_AdSensePlatform",
targets: ["GoogleAPIClientForREST_AdSensePlatform"]
),
.library(
name: "GoogleAPIClientForREST_Advisorynotifications",
targets: ["GoogleAPIClientForREST_Advisorynotifications"]
Expand Down Expand Up @@ -453,6 +457,10 @@ let package = Package(
name: "GoogleAPIClientForREST_Contentwarehouse",
targets: ["GoogleAPIClientForREST_Contentwarehouse"]
),
.library(
name: "GoogleAPIClientForREST_Css",
targets: ["GoogleAPIClientForREST_Css"]
),
.library(
name: "GoogleAPIClientForREST_CustomSearchAPI",
targets: ["GoogleAPIClientForREST_CustomSearchAPI"]
Expand Down Expand Up @@ -1261,6 +1269,12 @@ let package = Package(
path: "Sources/GeneratedServices/AdSenseHost",
publicHeadersPath: "Public"
),
.target(
name: "GoogleAPIClientForREST_AdSensePlatform",
dependencies: ["GoogleAPIClientForRESTCore"],
path: "Sources/GeneratedServices/AdSensePlatform",
publicHeadersPath: "Public"
),
.target(
name: "GoogleAPIClientForREST_Advisorynotifications",
dependencies: ["GoogleAPIClientForRESTCore"],
Expand Down Expand Up @@ -1849,6 +1863,12 @@ let package = Package(
path: "Sources/GeneratedServices/Contentwarehouse",
publicHeadersPath: "Public"
),
.target(
name: "GoogleAPIClientForREST_Css",
dependencies: ["GoogleAPIClientForRESTCore"],
path: "Sources/GeneratedServices/Css",
publicHeadersPath: "Public"
),
.target(
name: "GoogleAPIClientForREST_CustomSearchAPI",
dependencies: ["GoogleAPIClientForRESTCore"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,8 @@ @implementation GTLRAIPlatformNotebooks_Expr
@implementation GTLRAIPlatformNotebooks_GceSetup
@dynamic acceleratorConfigs, bootDisk, containerImage, dataDisks,
disablePublicIp, enableIpForwarding, gpuDriverConfig, machineType,
metadata, networkInterfaces, serviceAccounts, shieldedInstanceConfig,
tags, vmImage;
metadata, minCpuPlatform, networkInterfaces, serviceAccounts,
shieldedInstanceConfig, tags, vmImage;

+ (NSDictionary<NSString *, Class> *)arrayPropertyToClassMap {
NSDictionary<NSString *, Class> *map = @{
Expand Down Expand Up @@ -614,6 +614,16 @@ @implementation GTLRAIPlatformNotebooks_ResizeDiskRequest
@end


// ----------------------------------------------------------------------------
//
// GTLRAIPlatformNotebooks_RestoreInstanceRequest
//

@implementation GTLRAIPlatformNotebooks_RestoreInstanceRequest
@dynamic snapshot;
@end


// ----------------------------------------------------------------------------
//
// GTLRAIPlatformNotebooks_RollbackInstanceRequest
Expand Down Expand Up @@ -662,6 +672,16 @@ @implementation GTLRAIPlatformNotebooks_ShieldedInstanceConfig
@end


// ----------------------------------------------------------------------------
//
// GTLRAIPlatformNotebooks_Snapshot
//

@implementation GTLRAIPlatformNotebooks_Snapshot
@dynamic projectId, snapshotId;
@end


// ----------------------------------------------------------------------------
//
// GTLRAIPlatformNotebooks_StartInstanceRequest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,33 @@ + (instancetype)queryWithObject:(GTLRAIPlatformNotebooks_ResizeDiskRequest *)obj

@end

@implementation GTLRAIPlatformNotebooksQuery_ProjectsLocationsInstancesRestore

@dynamic name;

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

@end

@implementation GTLRAIPlatformNotebooksQuery_ProjectsLocationsInstancesRollback

@dynamic name;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
@class GTLRAIPlatformNotebooks_Policy;
@class GTLRAIPlatformNotebooks_ServiceAccount;
@class GTLRAIPlatformNotebooks_ShieldedInstanceConfig;
@class GTLRAIPlatformNotebooks_Snapshot;
@class GTLRAIPlatformNotebooks_Status;
@class GTLRAIPlatformNotebooks_Status_Details_Item;
@class GTLRAIPlatformNotebooks_SupportedValues;
Expand Down Expand Up @@ -1057,6 +1058,13 @@ FOUNDATION_EXTERN NSString * const kGTLRAIPlatformNotebooks_UpgradeHistoryEntry_
/** Optional. Custom metadata to apply to this instance. */
@property(nonatomic, strong, nullable) GTLRAIPlatformNotebooks_GceSetup_Metadata *metadata;

/**
* Optional. The minimum CPU platform to use for this instance. The list of
* valid values can be found in
* https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform#availablezones
*/
@property(nonatomic, copy, nullable) NSString *minCpuPlatform;

/**
* Optional. The network interfaces for the VM. Supports only one interface.
*/
Expand Down Expand Up @@ -1743,6 +1751,17 @@ FOUNDATION_EXTERN NSString * const kGTLRAIPlatformNotebooks_UpgradeHistoryEntry_
@end


/**
* Request for restoring the notebook instance from a BackupSource.
*/
@interface GTLRAIPlatformNotebooks_RestoreInstanceRequest : GTLRObject

/** Snapshot to be used for restore. */
@property(nonatomic, strong, nullable) GTLRAIPlatformNotebooks_Snapshot *snapshot;

@end


/**
* Request for rollbacking a notebook instance
*/
Expand Down Expand Up @@ -1831,6 +1850,22 @@ FOUNDATION_EXTERN NSString * const kGTLRAIPlatformNotebooks_UpgradeHistoryEntry_
@end


/**
* Snapshot represents the snapshot of the data disk used to restore the
* Workbench Instance from. Refers to:
* compute/v1/projects/{project_id}/global/snapshots/{snapshot_id}
*/
@interface GTLRAIPlatformNotebooks_Snapshot : GTLRObject

/** Required. The project ID of the snapshot. */
@property(nonatomic, copy, nullable) NSString *projectId;

/** Required. The ID of the snapshot. */
@property(nonatomic, copy, nullable) NSString *snapshotId;

@end


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

@end

/**
* RestoreInstance restores an Instance from a BackupSource.
*
* Method: notebooks.projects.locations.instances.restore
*
* Authorization scope(s):
* @c kGTLRAuthScopeAIPlatformNotebooksCloudPlatform
*/
@interface GTLRAIPlatformNotebooksQuery_ProjectsLocationsInstancesRestore : GTLRAIPlatformNotebooksQuery

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

/**
* Fetches a @c GTLRAIPlatformNotebooks_Operation.
*
* RestoreInstance restores an Instance from a BackupSource.
*
* @param object The @c GTLRAIPlatformNotebooks_RestoreInstanceRequest to
* include in the query.
* @param name Required. Format:
* `projects/{project_id}/locations/{location}/instances/{instance_id}`
*
* @return GTLRAIPlatformNotebooksQuery_ProjectsLocationsInstancesRestore
*/
+ (instancetype)queryWithObject:(GTLRAIPlatformNotebooks_RestoreInstanceRequest *)object
name:(NSString *)name;

@end

/**
* Rollbacks a notebook instance to the previous version.
*
Expand Down
87 changes: 87 additions & 0 deletions Sources/GeneratedServices/APIManagement/GTLRAPIManagementObjects.m
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@
NSString * const kGTLRAPIManagement_ObservationSource_State_Error = @"ERROR";
NSString * const kGTLRAPIManagement_ObservationSource_State_StateUnspecified = @"STATE_UNSPECIFIED";

// GTLRAPIManagement_TagAction.action
NSString * const kGTLRAPIManagement_TagAction_Action_ActionUnspecified = @"ACTION_UNSPECIFIED";
NSString * const kGTLRAPIManagement_TagAction_Action_Add = @"ADD";
NSString * const kGTLRAPIManagement_TagAction_Action_Remove = @"REMOVE";

// ----------------------------------------------------------------------------
//
// GTLRAPIManagement_ApiObservation
Expand Down Expand Up @@ -104,6 +109,42 @@ @implementation GTLRAPIManagement_ApiOperation
@end


// ----------------------------------------------------------------------------
//
// GTLRAPIManagement_BatchEditTagsApiObservationsRequest
//

@implementation GTLRAPIManagement_BatchEditTagsApiObservationsRequest
@dynamic requests;

+ (NSDictionary<NSString *, Class> *)arrayPropertyToClassMap {
NSDictionary<NSString *, Class> *map = @{
@"requests" : [GTLRAPIManagement_EditTagsApiObservationsRequest class]
};
return map;
}

@end


// ----------------------------------------------------------------------------
//
// GTLRAPIManagement_BatchEditTagsApiObservationsResponse
//

@implementation GTLRAPIManagement_BatchEditTagsApiObservationsResponse
@dynamic apiObservations;

+ (NSDictionary<NSString *, Class> *)arrayPropertyToClassMap {
NSDictionary<NSString *, Class> *map = @{
@"apiObservations" : [GTLRAPIManagement_ApiObservation class]
};
return map;
}

@end


// ----------------------------------------------------------------------------
//
// GTLRAPIManagement_CancelOperationRequest
Expand All @@ -122,6 +163,24 @@ @implementation GTLRAPIManagement_DisableObservationJobRequest
@end


// ----------------------------------------------------------------------------
//
// GTLRAPIManagement_EditTagsApiObservationsRequest
//

@implementation GTLRAPIManagement_EditTagsApiObservationsRequest
@dynamic apiObservationId, tagActions;

+ (NSDictionary<NSString *, Class> *)arrayPropertyToClassMap {
NSDictionary<NSString *, Class> *map = @{
@"tagActions" : [GTLRAPIManagement_TagAction class]
};
return map;
}

@end


// ----------------------------------------------------------------------------
//
// GTLRAPIManagement_Empty
Expand Down Expand Up @@ -314,6 +373,24 @@ + (NSString *)collectionItemsKey {
@end


// ----------------------------------------------------------------------------
//
// GTLRAPIManagement_ListApiObservationTagsResponse
//

@implementation GTLRAPIManagement_ListApiObservationTagsResponse
@dynamic apiObservationTags, nextPageToken;

+ (NSDictionary<NSString *, Class> *)arrayPropertyToClassMap {
NSDictionary<NSString *, Class> *map = @{
@"apiObservationTags" : [NSString class]
};
return map;
}

@end


// ----------------------------------------------------------------------------
//
// GTLRAPIManagement_ListApiOperationsResponse
Expand Down Expand Up @@ -571,3 +648,13 @@ + (Class)classForAdditionalProperties {
}

@end


// ----------------------------------------------------------------------------
//
// GTLRAPIManagement_TagAction
//

@implementation GTLRAPIManagement_TagAction
@dynamic action, tag;
@end
Loading

0 comments on commit 903e70c

Please sign in to comment.