Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Automated regeneration of securitycenter v1beta2 client #1544

Merged
merged 1 commit into from Nov 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 10 additions & 0 deletions api_names_out.yaml
Expand Up @@ -133566,11 +133566,16 @@
"/securitycenter:v1beta2/Finding/sourceProperties": source_properties
"/securitycenter:v1beta2/Finding/sourceProperties/source_property": source_property
"/securitycenter:v1beta2/Finding/state": state
"/securitycenter:v1beta2/Folder": folder
"/securitycenter:v1beta2/Folder/resourceFolder": resource_folder
"/securitycenter:v1beta2/Folder/resourceFolderDisplayName": resource_folder_display_name
"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1NotificationMessage": google_cloud_securitycenter_v1_notification_message
"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1NotificationMessage/finding": finding
"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1NotificationMessage/notificationConfigName": notification_config_name
"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1NotificationMessage/resource": resource
"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1Resource": google_cloud_securitycenter_v1_resource
"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1Resource/folders": folders
"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1Resource/folders/folder": folder
"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1Resource/name": name
"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1Resource/parent": parent
"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1Resource/parentDisplayName": parent_display_name
Expand Down Expand Up @@ -133604,6 +133609,9 @@
"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1Finding/sourceProperties": source_properties
"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1Finding/sourceProperties/source_property": source_property
"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1Finding/state": state
"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1Folder": google_cloud_securitycenter_v1p1beta1_folder
"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1Folder/resourceFolder": resource_folder
"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1Folder/resourceFolderDisplayName": resource_folder_display_name
"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1IamPolicy": google_cloud_securitycenter_v1p1beta1_iam_policy
"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1IamPolicy/policyBlob": policy_blob
"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1NotificationMessage": google_cloud_securitycenter_v1p1beta1_notification_message
Expand All @@ -133612,6 +133620,8 @@
"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1NotificationMessage/resource": resource
"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1NotificationMessage/temporalAsset": temporal_asset
"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1Resource": google_cloud_securitycenter_v1p1beta1_resource
"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1Resource/folders": folders
"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1Resource/folders/folder": folder
"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1Resource/name": name
"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1Resource/parent": parent
"/securitycenter:v1beta2/GoogleCloudSecuritycenterV1p1beta1Resource/parentDisplayName": parent_display_name
Expand Down
2 changes: 1 addition & 1 deletion generated/google/apis/securitycenter_v1beta2.rb
Expand Up @@ -26,7 +26,7 @@ module Apis
# @see https://console.cloud.google.com/apis/api/securitycenter.googleapis.com/overview
module SecuritycenterV1beta2
VERSION = 'V1beta2'
REVISION = '20200918'
REVISION = '20201112'

# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
Expand Down
68 changes: 68 additions & 0 deletions generated/google/apis/securitycenter_v1beta2/classes.rb
Expand Up @@ -272,6 +272,32 @@ def update!(**args)
end
end

# Message that contains the resource name and display name of a folder resource.
class Folder
include Google::Apis::Core::Hashable

# Full resource name of this folder. See: https://cloud.google.com/apis/design/
# resource_names#full_resource_name
# Corresponds to the JSON property `resourceFolder`
# @return [String]
attr_accessor :resource_folder

# The user defined display name for this folder.
# Corresponds to the JSON property `resourceFolderDisplayName`
# @return [String]
attr_accessor :resource_folder_display_name

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@resource_folder = args[:resource_folder] if args.key?(:resource_folder)
@resource_folder_display_name = args[:resource_folder_display_name] if args.key?(:resource_folder_display_name)
end
end

# Cloud SCC's Notification
class GoogleCloudSecuritycenterV1NotificationMessage
include Google::Apis::Core::Hashable
Expand Down Expand Up @@ -311,6 +337,13 @@ def update!(**args)
class GoogleCloudSecuritycenterV1Resource
include Google::Apis::Core::Hashable

# Output only. Contains a Folder message for each folder in the assets ancestry.
# The first folder is the deepest nested folder, and the last folder is the
# folder directly under the Organization.
# Corresponds to the JSON property `folders`
# @return [Array<Google::Apis::SecuritycenterV1beta2::Folder>]
attr_accessor :folders

# The full resource name of the resource. See: https://cloud.google.com/apis/
# design/resource_names#full_resource_name
# Corresponds to the JSON property `name`
Expand Down Expand Up @@ -343,6 +376,7 @@ def initialize(**args)

# Update properties of this object
def update!(**args)
@folders = args[:folders] if args.key?(:folders)
@name = args[:name] if args.key?(:name)
@parent = args[:parent] if args.key?(:parent)
@parent_display_name = args[:parent_display_name] if args.key?(:parent_display_name)
Expand Down Expand Up @@ -506,6 +540,32 @@ def update!(**args)
end
end

# Message that contains the resource name and display name of a folder resource.
class GoogleCloudSecuritycenterV1p1beta1Folder
include Google::Apis::Core::Hashable

# Full resource name of this folder. See: https://cloud.google.com/apis/design/
# resource_names#full_resource_name
# Corresponds to the JSON property `resourceFolder`
# @return [String]
attr_accessor :resource_folder

# The user defined display name for this folder.
# Corresponds to the JSON property `resourceFolderDisplayName`
# @return [String]
attr_accessor :resource_folder_display_name

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@resource_folder = args[:resource_folder] if args.key?(:resource_folder)
@resource_folder_display_name = args[:resource_folder_display_name] if args.key?(:resource_folder_display_name)
end
end

# Security Command Center's Notification
class GoogleCloudSecuritycenterV1p1beta1NotificationMessage
include Google::Apis::Core::Hashable
Expand Down Expand Up @@ -544,6 +604,13 @@ def update!(**args)
class GoogleCloudSecuritycenterV1p1beta1Resource
include Google::Apis::Core::Hashable

# Output only. Contains a Folder message for each folder in the assets ancestry.
# The first folder is the deepest nested folder, and the last folder is the
# folder directly under the Organization.
# Corresponds to the JSON property `folders`
# @return [Array<Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1Folder>]
attr_accessor :folders

# The full resource name of the resource. See: https://cloud.google.com/apis/
# design/resource_names#full_resource_name
# Corresponds to the JSON property `name`
Expand Down Expand Up @@ -576,6 +643,7 @@ def initialize(**args)

# Update properties of this object
def update!(**args)
@folders = args[:folders] if args.key?(:folders)
@name = args[:name] if args.key?(:name)
@parent = args[:parent] if args.key?(:parent)
@parent_display_name = args[:parent_display_name] if args.key?(:parent_display_name)
Expand Down
32 changes: 32 additions & 0 deletions generated/google/apis/securitycenter_v1beta2/representations.rb
Expand Up @@ -52,6 +52,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class Folder
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class GoogleCloudSecuritycenterV1NotificationMessage
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -82,6 +88,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class GoogleCloudSecuritycenterV1p1beta1Folder
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class GoogleCloudSecuritycenterV1p1beta1NotificationMessage
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -193,6 +205,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class Folder
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :resource_folder, as: 'resourceFolder'
property :resource_folder_display_name, as: 'resourceFolderDisplayName'
end
end

class GoogleCloudSecuritycenterV1NotificationMessage
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand All @@ -207,6 +227,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
class GoogleCloudSecuritycenterV1Resource
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :folders, as: 'folders', class: Google::Apis::SecuritycenterV1beta2::Folder, decorator: Google::Apis::SecuritycenterV1beta2::Folder::Representation

property :name, as: 'name'
property :parent, as: 'parent'
property :parent_display_name, as: 'parentDisplayName'
Expand Down Expand Up @@ -249,6 +271,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class GoogleCloudSecuritycenterV1p1beta1Folder
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :resource_folder, as: 'resourceFolder'
property :resource_folder_display_name, as: 'resourceFolderDisplayName'
end
end

class GoogleCloudSecuritycenterV1p1beta1NotificationMessage
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand All @@ -263,6 +293,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
class GoogleCloudSecuritycenterV1p1beta1Resource
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :folders, as: 'folders', class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1Folder, decorator: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV1p1beta1Folder::Representation

property :name, as: 'name'
property :parent, as: 'parent'
property :parent_display_name, as: 'parentDisplayName'
Expand Down
Expand Up @@ -4,7 +4,7 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/google-api-ruby-client.git",
"sha": "c98c719bbab68d0890524d53f8b629d7858af9c2"
"sha": "fd68d8388ddace483f1cff77d52a03934f656362"
}
}
]
Expand Down