Skip to content

Commit

Permalink
Generate current services.
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasvl committed Jan 16, 2019
1 parent bd470fb commit 2debe5d
Show file tree
Hide file tree
Showing 125 changed files with 21,606 additions and 579 deletions.
20 changes: 20 additions & 0 deletions GoogleAPIClientForREST.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ Pod::Spec.new do |s|
sp.dependency 'GoogleAPIClientForREST/Core'
sp.source_files = 'Source/GeneratedServices/Bigquery/*.{h,m}'
end
s.subspec 'BigtableAdmin' do |sp|
sp.dependency 'GoogleAPIClientForREST/Core'
sp.source_files = 'Source/GeneratedServices/BigtableAdmin/*.{h,m}'
end
s.subspec 'BinaryAuthorization' do |sp|
sp.dependency 'GoogleAPIClientForREST/Core'
sp.source_files = 'Source/GeneratedServices/BinaryAuthorization/*.{h,m}'
Expand Down Expand Up @@ -164,6 +168,10 @@ Pod::Spec.new do |s|
sp.dependency 'GoogleAPIClientForREST/Core'
sp.source_files = 'Source/GeneratedServices/CloudIAP/*.{h,m}'
end
s.subspec 'CloudIdentity' do |sp|
sp.dependency 'GoogleAPIClientForREST/Core'
sp.source_files = 'Source/GeneratedServices/CloudIdentity/*.{h,m}'
end
s.subspec 'CloudIot' do |sp|
sp.dependency 'GoogleAPIClientForREST/Core'
sp.source_files = 'Source/GeneratedServices/CloudIot/*.{h,m}'
Expand Down Expand Up @@ -248,6 +256,10 @@ Pod::Spec.new do |s|
sp.dependency 'GoogleAPIClientForREST/Core'
sp.source_files = 'Source/GeneratedServices/Container/*.{h,m}'
end
s.subspec 'ContainerAnalysis' do |sp|
sp.dependency 'GoogleAPIClientForREST/Core'
sp.source_files = 'Source/GeneratedServices/ContainerAnalysis/*.{h,m}'
end
s.subspec 'Customsearch' do |sp|
sp.dependency 'GoogleAPIClientForREST/Core'
sp.source_files = 'Source/GeneratedServices/Customsearch/*.{h,m}'
Expand Down Expand Up @@ -392,6 +404,10 @@ Pod::Spec.new do |s|
sp.dependency 'GoogleAPIClientForREST/Core'
sp.source_files = 'Source/GeneratedServices/Kgsearch/*.{h,m}'
end
s.subspec 'Libraryagent' do |sp|
sp.dependency 'GoogleAPIClientForREST/Core'
sp.source_files = 'Source/GeneratedServices/Libraryagent/*.{h,m}'
end
s.subspec 'Licensing' do |sp|
sp.dependency 'GoogleAPIClientForREST/Core'
sp.source_files = 'Source/GeneratedServices/Licensing/*.{h,m}'
Expand Down Expand Up @@ -452,6 +468,10 @@ Pod::Spec.new do |s|
sp.dependency 'GoogleAPIClientForREST/Core'
sp.source_files = 'Source/GeneratedServices/Pubsub/*.{h,m}'
end
s.subspec 'RemoteBuildExecution' do |sp|
sp.dependency 'GoogleAPIClientForREST/Core'
sp.source_files = 'Source/GeneratedServices/RemoteBuildExecution/*.{h,m}'
end
s.subspec 'ReplicaPool' do |sp|
sp.dependency 'GoogleAPIClientForREST/Core'
sp.source_files = 'Source/GeneratedServices/ReplicaPool/*.{h,m}'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,6 @@ GTLR_EXTERN NSString * const kGTLRAccessContextManager_ServicePerimeter_Perimete
/**
* An `AccessLevel` is a label that can be applied to requests to GCP services,
* along with a list of requirements necessary for the label to be applied.
* `AccessLevels` can be referenced in `AccessZones` and in the `Cloud Org
* Policy` API.
*/
@interface GTLRAccessContextManager_AccessLevel : GTLRObject

Expand Down
74 changes: 73 additions & 1 deletion Source/GeneratedServices/AlertCenter/GTLRAlertCenterObjects.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@
@class GTLRAlertCenter_Alert_Data;
@class GTLRAlertCenter_AlertFeedback;
@class GTLRAlertCenter_Attachment;
@class GTLRAlertCenter_CloudPubsubTopic;
@class GTLRAlertCenter_Csv;
@class GTLRAlertCenter_CsvRow;
@class GTLRAlertCenter_DeviceCompromisedSecurityDetail;
@class GTLRAlertCenter_DomainId;
@class GTLRAlertCenter_GmailMessageInfo;
@class GTLRAlertCenter_LoginDetails;
@class GTLRAlertCenter_MaliciousEntity;
@class GTLRAlertCenter_Notification;
@class GTLRAlertCenter_SuspiciousActivitySecurityDetail;

// Generated comments include content from the discovery document; avoid them
Expand Down Expand Up @@ -69,6 +71,22 @@ GTLR_EXTERN NSString * const kGTLRAlertCenter_AlertFeedback_Type_SomewhatUseful;
*/
GTLR_EXTERN NSString * const kGTLRAlertCenter_AlertFeedback_Type_VeryUseful;

// ----------------------------------------------------------------------------
// GTLRAlertCenter_CloudPubsubTopic.payloadFormat

/**
* Use JSON.
*
* Value: "JSON"
*/
GTLR_EXTERN NSString * const kGTLRAlertCenter_CloudPubsubTopic_PayloadFormat_Json;
/**
* Payload format is not specified (will use JSON as default).
*
* Value: "PAYLOAD_FORMAT_UNSPECIFIED"
*/
GTLR_EXTERN NSString * const kGTLRAlertCenter_CloudPubsubTopic_PayloadFormat_PayloadFormatUnspecified;

/**
* Alerts for user account warning events.
*/
Expand Down Expand Up @@ -134,7 +152,7 @@ GTLR_EXTERN NSString * const kGTLRAlertCenter_AlertFeedback_Type_VeryUseful;
@property(nonatomic, copy, nullable) NSString *securityInvestigationToolLink;

/**
* Required. A unique identifier for the system that is reported the alert.
* Required. A unique identifier for the system that reported the alert.
* Supported sources are any of the following:
* * Google Operations
* * Mobile device management
Expand Down Expand Up @@ -250,6 +268,36 @@ GTLR_EXTERN NSString * const kGTLRAlertCenter_AlertFeedback_Type_VeryUseful;
@end


/**
* A reference to a Cloud Pubsub topic.
* To register for notifications, the owner of the topic must grant
* `alerts-api-push-notifications\@system.gserviceaccount.com` the
* `projects.topics.publish` permission.
*/
@interface GTLRAlertCenter_CloudPubsubTopic : GTLRObject

/**
* Optional. The format of the payload that would be sent.
* If not specified the format will be JSON.
*
* Likely values:
* @arg @c kGTLRAlertCenter_CloudPubsubTopic_PayloadFormat_Json Use JSON.
* (Value: "JSON")
* @arg @c kGTLRAlertCenter_CloudPubsubTopic_PayloadFormat_PayloadFormatUnspecified
* Payload format is not specified (will use JSON as default). (Value:
* "PAYLOAD_FORMAT_UNSPECIFIED")
*/
@property(nonatomic, copy, nullable) NSString *payloadFormat;

/**
* The `name` field of a Cloud Pubsub [Topic]
* (https://cloud.google.com/pubsub/docs/reference/rest/v1/projects.topics#Topic).
*/
@property(nonatomic, copy, nullable) NSString *topicName;

@end


/**
* A representation of a CSV file attachment, as a list of column headers and
* a list of data rows.
Expand Down Expand Up @@ -536,6 +584,19 @@ GTLR_EXTERN NSString * const kGTLRAlertCenter_AlertFeedback_Type_VeryUseful;
@end


/**
* Settings for callback notifications.
* For more details see [G Suite Alert
* Notification](/admin-sdk/alertcenter/guides/notifications).
*/
@interface GTLRAlertCenter_Notification : GTLRObject

/** A Google Cloud Pub/sub topic destination. */
@property(nonatomic, strong, nullable) GTLRAlertCenter_CloudPubsubTopic *cloudPubsubTopic;

@end


/**
* Alert for a spike in user reported phishing.
* <aside class="warning"><b>Warning</b>: This type has been deprecated. Use
Expand Down Expand Up @@ -563,6 +624,17 @@ GTLR_EXTERN NSString * const kGTLRAlertCenter_AlertFeedback_Type_VeryUseful;
@end


/**
* Customer-level settings.
*/
@interface GTLRAlertCenter_Settings : GTLRObject

/** The list of notifications. */
@property(nonatomic, strong, nullable) NSArray<GTLRAlertCenter_Notification *> *notifications;

@end


/**
* A state-sponsored attack alert. Derived from audit logs.
*/
Expand Down
42 changes: 42 additions & 0 deletions Source/GeneratedServices/AlertCenter/GTLRAlertCenterObjects.m
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
NSString * const kGTLRAlertCenter_AlertFeedback_Type_SomewhatUseful = @"SOMEWHAT_USEFUL";
NSString * const kGTLRAlertCenter_AlertFeedback_Type_VeryUseful = @"VERY_USEFUL";

// GTLRAlertCenter_CloudPubsubTopic.payloadFormat
NSString * const kGTLRAlertCenter_CloudPubsubTopic_PayloadFormat_Json = @"JSON";
NSString * const kGTLRAlertCenter_CloudPubsubTopic_PayloadFormat_PayloadFormatUnspecified = @"PAYLOAD_FORMAT_UNSPECIFIED";

// ----------------------------------------------------------------------------
//
// GTLRAlertCenter_AccountWarning
Expand Down Expand Up @@ -92,6 +96,16 @@ @implementation GTLRAlertCenter_BadWhitelist
@end


// ----------------------------------------------------------------------------
//
// GTLRAlertCenter_CloudPubsubTopic
//

@implementation GTLRAlertCenter_CloudPubsubTopic
@dynamic payloadFormat, topicName;
@end


// ----------------------------------------------------------------------------
//
// GTLRAlertCenter_Csv
Expand Down Expand Up @@ -306,6 +320,16 @@ @implementation GTLRAlertCenter_MaliciousEntity
@end


// ----------------------------------------------------------------------------
//
// GTLRAlertCenter_Notification
//

@implementation GTLRAlertCenter_Notification
@dynamic cloudPubsubTopic;
@end


// ----------------------------------------------------------------------------
//
// GTLRAlertCenter_PhishingSpike
Expand All @@ -324,6 +348,24 @@ @implementation GTLRAlertCenter_PhishingSpike
@end


// ----------------------------------------------------------------------------
//
// GTLRAlertCenter_Settings
//

@implementation GTLRAlertCenter_Settings
@dynamic notifications;

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

@end


// ----------------------------------------------------------------------------
//
// GTLRAlertCenter_StateSponsoredAttack
Expand Down
63 changes: 63 additions & 0 deletions Source/GeneratedServices/AlertCenter/GTLRAlertCenterQuery.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#endif

@class GTLRAlertCenter_AlertFeedback;
@class GTLRAlertCenter_Settings;
@class GTLRAlertCenter_UndeleteAlertRequest;

// Generated comments include content from the discovery document; avoid them
Expand Down Expand Up @@ -317,6 +318,68 @@ NS_ASSUME_NONNULL_BEGIN

@end

/**
* Returns customer-level settings.
*
* Method: alertcenter.getSettings
*
* Authorization scope(s):
* @c kGTLRAuthScopeAlertCenterAppsAlerts
*/
@interface GTLRAlertCenterQuery_V1beta1GetSettings : GTLRAlertCenterQuery
// Previous library name was
// +[GTLQueryAlertCenter queryForGetSettings]

/**
* Optional. The unique identifier of the G Suite organization account of the
* customer the alert settings are associated with.
* Inferred from the caller identity if not provided.
*/
@property(nonatomic, copy, nullable) NSString *customerId;

/**
* Fetches a @c GTLRAlertCenter_Settings.
*
* Returns customer-level settings.
*
* @return GTLRAlertCenterQuery_V1beta1GetSettings
*/
+ (instancetype)query;

@end

/**
* Update the customer-level settings.
*
* Method: alertcenter.updateSettings
*
* Authorization scope(s):
* @c kGTLRAuthScopeAlertCenterAppsAlerts
*/
@interface GTLRAlertCenterQuery_V1beta1UpdateSettings : GTLRAlertCenterQuery
// Previous library name was
// +[GTLQueryAlertCenter queryForUpdateSettingsWithObject:]

/**
* Optional. The unique identifier of the G Suite organization account of the
* customer the alert settings are associated with.
* Inferred from the caller identity if not provided.
*/
@property(nonatomic, copy, nullable) NSString *customerId;

/**
* Fetches a @c GTLRAlertCenter_Settings.
*
* Update the customer-level settings.
*
* @param object The @c GTLRAlertCenter_Settings to include in the query.
*
* @return GTLRAlertCenterQuery_V1beta1UpdateSettings
*/
+ (instancetype)queryWithObject:(GTLRAlertCenter_Settings *)object;

@end

NS_ASSUME_NONNULL_END

#pragma clang diagnostic pop
39 changes: 39 additions & 0 deletions Source/GeneratedServices/AlertCenter/GTLRAlertCenterQuery.m
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,42 @@ + (instancetype)queryWithObject:(GTLRAlertCenter_UndeleteAlertRequest *)object
}

@end

@implementation GTLRAlertCenterQuery_V1beta1GetSettings

@dynamic customerId;

+ (instancetype)query {
NSString *pathURITemplate = @"v1beta1/settings";
GTLRAlertCenterQuery_V1beta1GetSettings *query =
[[self alloc] initWithPathURITemplate:pathURITemplate
HTTPMethod:nil
pathParameterNames:nil];
query.expectedObjectClass = [GTLRAlertCenter_Settings class];
query.loggingName = @"alertcenter.getSettings";
return query;
}

@end

@implementation GTLRAlertCenterQuery_V1beta1UpdateSettings

@dynamic customerId;

+ (instancetype)queryWithObject:(GTLRAlertCenter_Settings *)object {
if (object == nil) {
GTLR_DEBUG_ASSERT(object != nil, @"Got a nil object");
return nil;
}
NSString *pathURITemplate = @"v1beta1/settings";
GTLRAlertCenterQuery_V1beta1UpdateSettings *query =
[[self alloc] initWithPathURITemplate:pathURITemplate
HTTPMethod:@"PATCH"
pathParameterNames:nil];
query.bodyObject = object;
query.expectedObjectClass = [GTLRAlertCenter_Settings class];
query.loggingName = @"alertcenter.updateSettings";
return query;
}

@end
Loading

0 comments on commit 2debe5d

Please sign in to comment.