diff --git a/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloud_security_compliance/v1/audit/rest/operations.rb b/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloud_security_compliance/v1/audit/rest/operations.rb index c3c301e1e19c..ebe48b06364c 100644 --- a/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloud_security_compliance/v1/audit/rest/operations.rb +++ b/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloud_security_compliance/v1/audit/rest/operations.rb @@ -850,6 +850,13 @@ def self.transcode_list_operations_request request_pb ["name", %r{^organizations/[^/]+/locations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}/operations", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) transcoder.transcode request_pb end @@ -871,6 +878,13 @@ def self.transcode_get_operation_request request_pb ["name", %r{^organizations/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] + ] + ) transcoder.transcode request_pb end @@ -892,6 +906,13 @@ def self.transcode_delete_operation_request request_pb ["name", %r{^organizations/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :delete, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] + ] + ) transcoder.transcode request_pb end @@ -914,6 +935,14 @@ def self.transcode_cancel_operation_request request_pb ["name", %r{^organizations/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:cancel", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] + ] + ) transcoder.transcode request_pb end end diff --git a/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloud_security_compliance/v1/bindings_override.rb b/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloud_security_compliance/v1/bindings_override.rb index bbb9a2a22e25..251163c727e1 100644 --- a/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloud_security_compliance/v1/bindings_override.rb +++ b/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloud_security_compliance/v1/bindings_override.rb @@ -51,6 +51,14 @@ def self.configure ["name", %r{^organizations/[^/]+/locations/[^/]+/?$}, false] ], body: nil + ), + Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ], + body: nil ) ] default_config.bindings_override["google.cloud.location.Locations.ListLocations"] = [ @@ -62,6 +70,14 @@ def self.configure ["name", %r{^organizations/[^/]+/?$}, false] ], body: nil + ), + Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation( + uri_method: :get, + uri_template: "/v1/{name}/locations", + matches: [ + ["name", %r{^projects/[^/]+/?$}, false] + ], + body: nil ) ] default_config diff --git a/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloud_security_compliance/v1/config/client.rb b/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloud_security_compliance/v1/config/client.rb index 59be159712fb..d4a04a57cfc9 100644 --- a/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloud_security_compliance/v1/config/client.rb +++ b/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloud_security_compliance/v1/config/client.rb @@ -254,8 +254,10 @@ def logger # the default parameter values, pass an empty Hash as a request object (see above). # # @param parent [::String] - # Required. The parent resource name, in the format - # `organizations/{organization}/locations/{location}`. + # Required. The parent resource name, in one of the following formats: + # - `organizations/{organization}/locations/{location}` + # - `projects/{project}/locations/{location}`. + # # The only supported location is `global`. # @param page_size [::Integer] # Optional. The maximum number of frameworks to return. The default value is @@ -360,8 +362,12 @@ def list_frameworks request, options = nil # the default parameter values, pass an empty Hash as a request object (see above). # # @param name [::String] - # Required. The name of the framework to retrieve, in the format - # `organizations/{organization}/locations/{location}/frameworks/{framework_id}` + # Required. The name of the framework to retrieve, in one of the following + # formats: + # `organizations/{organization}/locations/{location}/frameworks/{framework}` + # or + # `projects/{project}/locations/{location}/frameworks/{framework}`. + # # The only supported location is `global`. # @param major_revision_id [::Integer] # Optional. The framework major version to retrieve. If not specified, the @@ -452,8 +458,10 @@ def get_framework request, options = nil # the default parameter values, pass an empty Hash as a request object (see above). # # @param parent [::String] - # Required. The parent resource name, in the format - # `organizations/{organization}/locations/{location}`. + # Required. The parent resource name, in one of the following formats: + # - `organizations/{organization}/locations/{location}` + # - `projects/{project}/locations/{location}`. + # # The only supported location is `global`. # @param framework_id [::String] # Required. The identifier (ID) of the framework. The ID is not the full name @@ -654,8 +662,11 @@ def update_framework request, options = nil # the default parameter values, pass an empty Hash as a request object (see above). # # @param name [::String] - # Required. The name of the resource, in the format - # `organizations/{organization}/locations/{location}/frameworks/{framework}`. + # Required. The name of the resource, in one of the following formats: + # `organizations/{organization}/locations/{location}/frameworks/{framework}` + # or + # `projects/{project}/locations/{location}/frameworks/{framework}`. + # # The only supported location is `global`. # # @yield [response, operation] Access the result along with the RPC operation @@ -744,8 +755,10 @@ def delete_framework request, options = nil # the default parameter values, pass an empty Hash as a request object (see above). # # @param parent [::String] - # Required. The parent resource name, in the format - # `organizations/{organization}/locations/{location}`. + # Required. The parent resource name, in one of the following formats: + # - `organizations/{organization}/locations/{location}` + # - `projects/{project}/locations/{location}`. + # # The only supported location is `global`. # @param page_size [::Integer] # Optional. The maximum number of cloud controls to return. The default value @@ -857,8 +870,12 @@ def list_cloud_controls request, options = nil # the default parameter values, pass an empty Hash as a request object (see above). # # @param name [::String] - # Required. The name of the cloud control to retrieve, in the format - # `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`. + # Required. The name of the cloud control to retrieve, in one of the + # following formats: + # `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` + # or + # `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. + # # The only supported location is `global`. # @param major_revision_id [::Integer] # Optional. The major version of the cloud control to retrieve. If not @@ -950,8 +967,10 @@ def get_cloud_control request, options = nil # the default parameter values, pass an empty Hash as a request object (see above). # # @param parent [::String] - # Required. The parent resource name, in the format - # `organizations/{organization}/locations/{location}`. + # Required. The parent resource name, in one of the following formats: + # - `organizations/{organization}/locations/{location}`. + # - `projects/{project}/locations/{location}`. + # # The only supported location is `global`. # @param cloud_control_id [::String] # Required. The identifier for the cloud control, which is the last segment @@ -1161,8 +1180,12 @@ def update_cloud_control request, options = nil # the default parameter values, pass an empty Hash as a request object (see above). # # @param name [::String] - # Required. The name of the cloud control to delete, in the format - # `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}`. + # Required. The name of the cloud control to delete, in one of the following + # formats: + # `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}` + # or + # `projects/{project}/locations/{location}/CloudControls/{CloudControl}`. + # # The only supported location is `global`. # # @yield [response, operation] Access the result along with the RPC operation diff --git a/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloud_security_compliance/v1/config/paths.rb b/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloud_security_compliance/v1/config/paths.rb index 25e21ce39ab2..f11db2e1c473 100644 --- a/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloud_security_compliance/v1/config/paths.rb +++ b/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloud_security_compliance/v1/config/paths.rb @@ -27,39 +27,104 @@ module Paths ## # Create a fully-qualified CloudControl resource string. # - # The resource will be in the following format: + # @overload cloud_control_path(organization:, location:, cloud_control:) + # The resource will be in the following format: # - # `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` + # `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` # - # @param organization [String] - # @param location [String] - # @param cloud_control [String] + # @param organization [String] + # @param location [String] + # @param cloud_control [String] + # + # @overload cloud_control_path(project:, location:, cloud_control:) + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/cloudControls/{cloud_control}` + # + # @param project [String] + # @param location [String] + # @param cloud_control [String] # # @return [::String] - def cloud_control_path organization:, location:, cloud_control: - raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + def cloud_control_path **args + resources = { + "cloud_control:location:organization" => (proc do |organization:, location:, cloud_control:| + raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - "organizations/#{organization}/locations/#{location}/cloudControls/#{cloud_control}" + "organizations/#{organization}/locations/#{location}/cloudControls/#{cloud_control}" + end), + "cloud_control:location:project" => (proc do |project:, location:, cloud_control:| + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/cloudControls/#{cloud_control}" + end) + } + + resource = resources[args.keys.sort.join(":")] + raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil? + resource.call(**args) end ## # Create a fully-qualified Framework resource string. # + # @overload framework_path(organization:, location:, framework:) + # The resource will be in the following format: + # + # `organizations/{organization}/locations/{location}/frameworks/{framework}` + # + # @param organization [String] + # @param location [String] + # @param framework [String] + # + # @overload framework_path(project:, location:, framework:) + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/frameworks/{framework}` + # + # @param project [String] + # @param location [String] + # @param framework [String] + # + # @return [::String] + def framework_path **args + resources = { + "framework:location:organization" => (proc do |organization:, location:, framework:| + raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "organizations/#{organization}/locations/#{location}/frameworks/#{framework}" + end), + "framework:location:project" => (proc do |project:, location:, framework:| + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/frameworks/#{framework}" + end) + } + + resource = resources[args.keys.sort.join(":")] + raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil? + resource.call(**args) + end + + ## + # Create a fully-qualified Location resource string. + # # The resource will be in the following format: # - # `organizations/{organization}/locations/{location}/frameworks/{framework}` + # `projects/{project}/locations/{location}` # - # @param organization [String] + # @param project [String] # @param location [String] - # @param framework [String] # # @return [::String] - def framework_path organization:, location:, framework: - raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + def location_path project:, location: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - "organizations/#{organization}/locations/#{location}/frameworks/#{framework}" + "projects/#{project}/locations/#{location}" end ## diff --git a/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloud_security_compliance/v1/config/rest/client.rb b/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloud_security_compliance/v1/config/rest/client.rb index 15f63919f80b..fa715ce333f7 100644 --- a/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloud_security_compliance/v1/config/rest/client.rb +++ b/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloud_security_compliance/v1/config/rest/client.rb @@ -248,8 +248,10 @@ def logger # the default parameter values, pass an empty Hash as a request object (see above). # # @param parent [::String] - # Required. The parent resource name, in the format - # `organizations/{organization}/locations/{location}`. + # Required. The parent resource name, in one of the following formats: + # - `organizations/{organization}/locations/{location}` + # - `projects/{project}/locations/{location}`. + # # The only supported location is `global`. # @param page_size [::Integer] # Optional. The maximum number of frameworks to return. The default value is @@ -347,8 +349,12 @@ def list_frameworks request, options = nil # the default parameter values, pass an empty Hash as a request object (see above). # # @param name [::String] - # Required. The name of the framework to retrieve, in the format - # `organizations/{organization}/locations/{location}/frameworks/{framework_id}` + # Required. The name of the framework to retrieve, in one of the following + # formats: + # `organizations/{organization}/locations/{location}/frameworks/{framework}` + # or + # `projects/{project}/locations/{location}/frameworks/{framework}`. + # # The only supported location is `global`. # @param major_revision_id [::Integer] # Optional. The framework major version to retrieve. If not specified, the @@ -432,8 +438,10 @@ def get_framework request, options = nil # the default parameter values, pass an empty Hash as a request object (see above). # # @param parent [::String] - # Required. The parent resource name, in the format - # `organizations/{organization}/locations/{location}`. + # Required. The parent resource name, in one of the following formats: + # - `organizations/{organization}/locations/{location}` + # - `projects/{project}/locations/{location}`. + # # The only supported location is `global`. # @param framework_id [::String] # Required. The identifier (ID) of the framework. The ID is not the full name @@ -620,8 +628,11 @@ def update_framework request, options = nil # the default parameter values, pass an empty Hash as a request object (see above). # # @param name [::String] - # Required. The name of the resource, in the format - # `organizations/{organization}/locations/{location}/frameworks/{framework}`. + # Required. The name of the resource, in one of the following formats: + # `organizations/{organization}/locations/{location}/frameworks/{framework}` + # or + # `projects/{project}/locations/{location}/frameworks/{framework}`. + # # The only supported location is `global`. # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Protobuf::Empty] @@ -703,8 +714,10 @@ def delete_framework request, options = nil # the default parameter values, pass an empty Hash as a request object (see above). # # @param parent [::String] - # Required. The parent resource name, in the format - # `organizations/{organization}/locations/{location}`. + # Required. The parent resource name, in one of the following formats: + # - `organizations/{organization}/locations/{location}` + # - `projects/{project}/locations/{location}`. + # # The only supported location is `global`. # @param page_size [::Integer] # Optional. The maximum number of cloud controls to return. The default value @@ -809,8 +822,12 @@ def list_cloud_controls request, options = nil # the default parameter values, pass an empty Hash as a request object (see above). # # @param name [::String] - # Required. The name of the cloud control to retrieve, in the format - # `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`. + # Required. The name of the cloud control to retrieve, in one of the + # following formats: + # `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` + # or + # `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. + # # The only supported location is `global`. # @param major_revision_id [::Integer] # Optional. The major version of the cloud control to retrieve. If not @@ -895,8 +912,10 @@ def get_cloud_control request, options = nil # the default parameter values, pass an empty Hash as a request object (see above). # # @param parent [::String] - # Required. The parent resource name, in the format - # `organizations/{organization}/locations/{location}`. + # Required. The parent resource name, in one of the following formats: + # - `organizations/{organization}/locations/{location}`. + # - `projects/{project}/locations/{location}`. + # # The only supported location is `global`. # @param cloud_control_id [::String] # Required. The identifier for the cloud control, which is the last segment @@ -1092,8 +1111,12 @@ def update_cloud_control request, options = nil # the default parameter values, pass an empty Hash as a request object (see above). # # @param name [::String] - # Required. The name of the cloud control to delete, in the format - # `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}`. + # Required. The name of the cloud control to delete, in one of the following + # formats: + # `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}` + # or + # `projects/{project}/locations/{location}/CloudControls/{CloudControl}`. + # # The only supported location is `global`. # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Protobuf::Empty] diff --git a/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloud_security_compliance/v1/config/rest/service_stub.rb b/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloud_security_compliance/v1/config/rest/service_stub.rb index bc811913a334..3e1b140821f0 100644 --- a/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloud_security_compliance/v1/config/rest/service_stub.rb +++ b/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloud_security_compliance/v1/config/rest/service_stub.rb @@ -491,6 +491,13 @@ def self.transcode_list_frameworks_request request_pb ["parent", %r{^organizations/[^/]+/locations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/frameworks", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) transcoder.transcode request_pb end @@ -512,6 +519,13 @@ def self.transcode_get_framework_request request_pb ["name", %r{^organizations/[^/]+/locations/[^/]+/frameworks/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/frameworks/[^/]+/?$}, false] + ] + ) transcoder.transcode request_pb end @@ -534,6 +548,14 @@ def self.transcode_create_framework_request request_pb ["parent", %r{^organizations/[^/]+/locations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/frameworks", + body: "framework", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) transcoder.transcode request_pb end @@ -556,6 +578,14 @@ def self.transcode_update_framework_request request_pb ["framework.name", %r{^organizations/[^/]+/locations/[^/]+/frameworks/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :patch, + uri_template: "/v1/{framework.name}", + body: "framework", + matches: [ + ["framework.name", %r{^projects/[^/]+/locations/[^/]+/frameworks/[^/]+/?$}, false] + ] + ) transcoder.transcode request_pb end @@ -577,6 +607,13 @@ def self.transcode_delete_framework_request request_pb ["name", %r{^organizations/[^/]+/locations/[^/]+/frameworks/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :delete, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/frameworks/[^/]+/?$}, false] + ] + ) transcoder.transcode request_pb end @@ -598,6 +635,13 @@ def self.transcode_list_cloud_controls_request request_pb ["parent", %r{^organizations/[^/]+/locations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/cloudControls", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) transcoder.transcode request_pb end @@ -619,6 +663,13 @@ def self.transcode_get_cloud_control_request request_pb ["name", %r{^organizations/[^/]+/locations/[^/]+/cloudControls/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/cloudControls/[^/]+/?$}, false] + ] + ) transcoder.transcode request_pb end @@ -641,6 +692,14 @@ def self.transcode_create_cloud_control_request request_pb ["parent", %r{^organizations/[^/]+/locations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/cloudControls", + body: "cloud_control", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) transcoder.transcode request_pb end @@ -663,6 +722,14 @@ def self.transcode_update_cloud_control_request request_pb ["cloud_control.name", %r{^organizations/[^/]+/locations/[^/]+/cloudControls/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :patch, + uri_template: "/v1/{cloud_control.name}", + body: "cloud_control", + matches: [ + ["cloud_control.name", %r{^projects/[^/]+/locations/[^/]+/cloudControls/[^/]+/?$}, false] + ] + ) transcoder.transcode request_pb end @@ -684,6 +751,13 @@ def self.transcode_delete_cloud_control_request request_pb ["name", %r{^organizations/[^/]+/locations/[^/]+/cloudControls/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :delete, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/cloudControls/[^/]+/?$}, false] + ] + ) transcoder.transcode request_pb end end diff --git a/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloud_security_compliance/v1/deployment/client.rb b/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloud_security_compliance/v1/deployment/client.rb index 9f5fa51f2b50..7a0c4613006a 100644 --- a/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloud_security_compliance/v1/deployment/client.rb +++ b/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloud_security_compliance/v1/deployment/client.rb @@ -261,7 +261,9 @@ def logger # # @param parent [::String] # Required. The parent resource of the framework deployment in the format - # `organizations/{organization}/locations/{location}`. + # `organizations/{organization}/locations/{location}` + # or + # `projects/{project}/locations/{location}`. # Only the global location is supported. # @param framework_deployment_id [::String] # Optional. An identifier for the framework deployment that's unique in scope @@ -364,7 +366,9 @@ def create_framework_deployment request, options = nil # @param name [::String] # Required. The name of the framework deployment that you want to delete, # in the format - # `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`. + # `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + # or + # `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. # The only supported location is `global`. # @param etag [::String] # Optional. An opaque identifier for the current version of the resource. @@ -469,7 +473,9 @@ def delete_framework_deployment request, options = nil # # @param name [::String] # Required. The name of the framework deployment, in the format - # `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`. + # `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + # or + # `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. # The only supported location is `global`. # # @yield [response, operation] Access the result along with the RPC operation @@ -556,7 +562,9 @@ def get_framework_deployment request, options = nil # # @param parent [::String] # Required. The parent resource of the framework deployment, in the format - # `organizations/{organization}/locations/{location}`. + # `organizations/{organization}/locations/{location}` + # or + # `projects/{project}/locations/{location}`. # The only supported location is `global`. # @param page_size [::Integer] # Optional. The requested page size. The server might return fewer items than @@ -667,7 +675,9 @@ def list_framework_deployments request, options = nil # # @param name [::String] # Required. The name for the cloud control deployment, in the format - # `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`. + # `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}` + # or + # `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`. # The only supported location is `global`. # # @yield [response, operation] Access the result along with the RPC operation @@ -754,8 +764,9 @@ def get_cloud_control_deployment request, options = nil # # @param parent [::String] # Required. The parent resource for the cloud control deployment, in the - # format `organizations/{organization}/locations/{location}`. The only - # supported location is `global`. + # format `organizations/{organization}/locations/{location}` or + # `projects/{project}/locations/{location}`. + # The only supported location is `global`. # @param page_size [::Integer] # Optional. The requested page size. The server might return fewer items than # you requested. diff --git a/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloud_security_compliance/v1/deployment/paths.rb b/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloud_security_compliance/v1/deployment/paths.rb index d987646b952c..33eccecf4ccf 100644 --- a/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloud_security_compliance/v1/deployment/paths.rb +++ b/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloud_security_compliance/v1/deployment/paths.rb @@ -27,39 +27,147 @@ module Paths ## # Create a fully-qualified CloudControlDeployment resource string. # - # The resource will be in the following format: + # @overload cloud_control_deployment_path(organization:, location:, cloud_control_deployment:) + # The resource will be in the following format: # - # `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}` + # `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}` # - # @param organization [String] - # @param location [String] - # @param cloud_control_deployment [String] + # @param organization [String] + # @param location [String] + # @param cloud_control_deployment [String] + # + # @overload cloud_control_deployment_path(project:, location:, cloud_control_deployment:) + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}` + # + # @param project [String] + # @param location [String] + # @param cloud_control_deployment [String] # # @return [::String] - def cloud_control_deployment_path organization:, location:, cloud_control_deployment: - raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + def cloud_control_deployment_path **args + resources = { + "cloud_control_deployment:location:organization" => (proc do |organization:, location:, cloud_control_deployment:| + raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "organizations/#{organization}/locations/#{location}/cloudControlDeployments/#{cloud_control_deployment}" + end), + "cloud_control_deployment:location:project" => (proc do |project:, location:, cloud_control_deployment:| + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" - "organizations/#{organization}/locations/#{location}/cloudControlDeployments/#{cloud_control_deployment}" + "projects/#{project}/locations/#{location}/cloudControlDeployments/#{cloud_control_deployment}" + end) + } + + resource = resources[args.keys.sort.join(":")] + raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil? + resource.call(**args) + end + + ## + # Create a fully-qualified Framework resource string. + # + # @overload framework_path(organization:, location:, framework:) + # The resource will be in the following format: + # + # `organizations/{organization}/locations/{location}/frameworks/{framework}` + # + # @param organization [String] + # @param location [String] + # @param framework [String] + # + # @overload framework_path(project:, location:, framework:) + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/frameworks/{framework}` + # + # @param project [String] + # @param location [String] + # @param framework [String] + # + # @return [::String] + def framework_path **args + resources = { + "framework:location:organization" => (proc do |organization:, location:, framework:| + raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "organizations/#{organization}/locations/#{location}/frameworks/#{framework}" + end), + "framework:location:project" => (proc do |project:, location:, framework:| + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/frameworks/#{framework}" + end) + } + + resource = resources[args.keys.sort.join(":")] + raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil? + resource.call(**args) end ## # Create a fully-qualified FrameworkDeployment resource string. # + # @overload framework_deployment_path(organization:, location:, framework_deployment:) + # The resource will be in the following format: + # + # `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + # + # @param organization [String] + # @param location [String] + # @param framework_deployment [String] + # + # @overload framework_deployment_path(project:, location:, framework_deployment:) + # The resource will be in the following format: + # + # `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}` + # + # @param project [String] + # @param location [String] + # @param framework_deployment [String] + # + # @return [::String] + def framework_deployment_path **args + resources = { + "framework_deployment:location:organization" => (proc do |organization:, location:, framework_deployment:| + raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "organizations/#{organization}/locations/#{location}/frameworkDeployments/#{framework_deployment}" + end), + "framework_deployment:location:project" => (proc do |project:, location:, framework_deployment:| + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" + raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + + "projects/#{project}/locations/#{location}/frameworkDeployments/#{framework_deployment}" + end) + } + + resource = resources[args.keys.sort.join(":")] + raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil? + resource.call(**args) + end + + ## + # Create a fully-qualified Location resource string. + # # The resource will be in the following format: # - # `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + # `projects/{project}/locations/{location}` # - # @param organization [String] + # @param project [String] # @param location [String] - # @param framework_deployment [String] # # @return [::String] - def framework_deployment_path organization:, location:, framework_deployment: - raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/" - raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" + def location_path project:, location: + raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" - "organizations/#{organization}/locations/#{location}/frameworkDeployments/#{framework_deployment}" + "projects/#{project}/locations/#{location}" end ## diff --git a/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloud_security_compliance/v1/deployment/rest/client.rb b/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloud_security_compliance/v1/deployment/rest/client.rb index e61c929137d2..5747e24e9380 100644 --- a/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloud_security_compliance/v1/deployment/rest/client.rb +++ b/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloud_security_compliance/v1/deployment/rest/client.rb @@ -255,7 +255,9 @@ def logger # # @param parent [::String] # Required. The parent resource of the framework deployment in the format - # `organizations/{organization}/locations/{location}`. + # `organizations/{organization}/locations/{location}` + # or + # `projects/{project}/locations/{location}`. # Only the global location is supported. # @param framework_deployment_id [::String] # Optional. An identifier for the framework deployment that's unique in scope @@ -351,7 +353,9 @@ def create_framework_deployment request, options = nil # @param name [::String] # Required. The name of the framework deployment that you want to delete, # in the format - # `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`. + # `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + # or + # `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. # The only supported location is `global`. # @param etag [::String] # Optional. An opaque identifier for the current version of the resource. @@ -449,7 +453,9 @@ def delete_framework_deployment request, options = nil # # @param name [::String] # Required. The name of the framework deployment, in the format - # `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`. + # `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + # or + # `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. # The only supported location is `global`. # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Cloud::CloudSecurityCompliance::V1::FrameworkDeployment] @@ -529,7 +535,9 @@ def get_framework_deployment request, options = nil # # @param parent [::String] # Required. The parent resource of the framework deployment, in the format - # `organizations/{organization}/locations/{location}`. + # `organizations/{organization}/locations/{location}` + # or + # `projects/{project}/locations/{location}`. # The only supported location is `global`. # @param page_size [::Integer] # Optional. The requested page size. The server might return fewer items than @@ -633,7 +641,9 @@ def list_framework_deployments request, options = nil # # @param name [::String] # Required. The name for the cloud control deployment, in the format - # `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`. + # `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}` + # or + # `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`. # The only supported location is `global`. # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Cloud::CloudSecurityCompliance::V1::CloudControlDeployment] @@ -713,8 +723,9 @@ def get_cloud_control_deployment request, options = nil # # @param parent [::String] # Required. The parent resource for the cloud control deployment, in the - # format `organizations/{organization}/locations/{location}`. The only - # supported location is `global`. + # format `organizations/{organization}/locations/{location}` or + # `projects/{project}/locations/{location}`. + # The only supported location is `global`. # @param page_size [::Integer] # Optional. The requested page size. The server might return fewer items than # you requested. diff --git a/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloud_security_compliance/v1/deployment/rest/operations.rb b/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloud_security_compliance/v1/deployment/rest/operations.rb index e5766007b032..dd3c1a5b7f0e 100644 --- a/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloud_security_compliance/v1/deployment/rest/operations.rb +++ b/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloud_security_compliance/v1/deployment/rest/operations.rb @@ -850,6 +850,13 @@ def self.transcode_list_operations_request request_pb ["name", %r{^organizations/[^/]+/locations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}/operations", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) transcoder.transcode request_pb end @@ -871,6 +878,13 @@ def self.transcode_get_operation_request request_pb ["name", %r{^organizations/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] + ] + ) transcoder.transcode request_pb end @@ -892,6 +906,13 @@ def self.transcode_delete_operation_request request_pb ["name", %r{^organizations/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :delete, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] + ] + ) transcoder.transcode request_pb end @@ -914,6 +935,14 @@ def self.transcode_cancel_operation_request request_pb ["name", %r{^organizations/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :post, + uri_template: "/v1/{name}:cancel", + body: "*", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/operations/[^/]+/?$}, false] + ] + ) transcoder.transcode request_pb end end diff --git a/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloud_security_compliance/v1/deployment/rest/service_stub.rb b/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloud_security_compliance/v1/deployment/rest/service_stub.rb index 264677181bbe..cf84ef409f79 100644 --- a/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloud_security_compliance/v1/deployment/rest/service_stub.rb +++ b/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloud_security_compliance/v1/deployment/rest/service_stub.rb @@ -332,6 +332,14 @@ def self.transcode_create_framework_deployment_request request_pb ["parent", %r{^organizations/[^/]+/locations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :post, + uri_template: "/v1/{parent}/frameworkDeployments", + body: "framework_deployment", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) transcoder.transcode request_pb end @@ -353,6 +361,13 @@ def self.transcode_delete_framework_deployment_request request_pb ["name", %r{^organizations/[^/]+/locations/[^/]+/frameworkDeployments/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :delete, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/frameworkDeployments/[^/]+/?$}, false] + ] + ) transcoder.transcode request_pb end @@ -374,6 +389,13 @@ def self.transcode_get_framework_deployment_request request_pb ["name", %r{^organizations/[^/]+/locations/[^/]+/frameworkDeployments/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/frameworkDeployments/[^/]+/?$}, false] + ] + ) transcoder.transcode request_pb end @@ -395,6 +417,13 @@ def self.transcode_list_framework_deployments_request request_pb ["parent", %r{^organizations/[^/]+/locations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/frameworkDeployments", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) transcoder.transcode request_pb end @@ -416,6 +445,13 @@ def self.transcode_get_cloud_control_deployment_request request_pb ["name", %r{^organizations/[^/]+/locations/[^/]+/cloudControlDeployments/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :get, + uri_template: "/v1/{name}", + matches: [ + ["name", %r{^projects/[^/]+/locations/[^/]+/cloudControlDeployments/[^/]+/?$}, false] + ] + ) transcoder.transcode request_pb end @@ -437,6 +473,13 @@ def self.transcode_list_cloud_control_deployments_request request_pb ["parent", %r{^organizations/[^/]+/locations/[^/]+/?$}, false] ] ) + .with_bindings( + uri_method: :get, + uri_template: "/v1/{parent}/cloudControlDeployments", + matches: [ + ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false] + ] + ) transcoder.transcode request_pb end end diff --git a/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloud_security_compliance/v1/monitoring/client.rb b/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloud_security_compliance/v1/monitoring/client.rb index 4a17f067467e..5a38fc883a54 100644 --- a/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloud_security_compliance/v1/monitoring/client.rb +++ b/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloud_security_compliance/v1/monitoring/client.rb @@ -237,7 +237,7 @@ def logger # @param options [::Gapic::CallOptions, ::Hash] # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. # - # @overload list_framework_compliance_summaries(parent: nil, page_size: nil, page_token: nil, filter: nil) + # @overload list_framework_compliance_summaries(parent: nil, page_size: nil, page_token: nil, filter: nil, view: nil) # Pass arguments to `list_framework_compliance_summaries` via keyword arguments. Note that at # least one keyword argument is required. To specify no parameters, or to keep all # the default parameter values, pass an empty Hash as a request object (see above). @@ -252,6 +252,8 @@ def logger # should return. # @param filter [::String] # Optional. The filtering results. + # @param view [::Google::Cloud::CloudSecurityCompliance::V1::FrameworkComplianceSummaryView] + # Optional. Specifies the level of detail to return in the response. # # @yield [response, operation] Access the result along with the RPC operation # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::CloudSecurityCompliance::V1::FrameworkComplianceSummary>] @@ -437,7 +439,7 @@ def list_finding_summaries request, options = nil # @param options [::Gapic::CallOptions, ::Hash] # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional. # - # @overload fetch_framework_compliance_report(name: nil, end_time: nil) + # @overload fetch_framework_compliance_report(name: nil, end_time: nil, filter: nil) # Pass arguments to `fetch_framework_compliance_report` via keyword arguments. Note that at # least one keyword argument is required. To specify no parameters, or to keep all # the default parameter values, pass an empty Hash as a request object (see above). @@ -446,6 +448,8 @@ def list_finding_summaries request, options = nil # Required. The name of the framework compliance report to retrieve. # @param end_time [::Google::Protobuf::Timestamp, ::Hash] # Optional. The end time of the report. + # @param filter [::String] + # Optional. The filtering results. # # @yield [response, operation] Access the result along with the RPC operation # @yieldparam response [::Google::Cloud::CloudSecurityCompliance::V1::FrameworkComplianceReport] diff --git a/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloud_security_compliance/v1/monitoring/rest/client.rb b/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloud_security_compliance/v1/monitoring/rest/client.rb index 74b9cf470d61..759aa07b6a71 100644 --- a/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloud_security_compliance/v1/monitoring/rest/client.rb +++ b/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloud_security_compliance/v1/monitoring/rest/client.rb @@ -231,7 +231,7 @@ def logger # @param options [::Gapic::CallOptions, ::Hash] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # - # @overload list_framework_compliance_summaries(parent: nil, page_size: nil, page_token: nil, filter: nil) + # @overload list_framework_compliance_summaries(parent: nil, page_size: nil, page_token: nil, filter: nil, view: nil) # Pass arguments to `list_framework_compliance_summaries` via keyword arguments. Note that at # least one keyword argument is required. To specify no parameters, or to keep all # the default parameter values, pass an empty Hash as a request object (see above). @@ -246,6 +246,8 @@ def logger # should return. # @param filter [::String] # Optional. The filtering results. + # @param view [::Google::Cloud::CloudSecurityCompliance::V1::FrameworkComplianceSummaryView] + # Optional. Specifies the level of detail to return in the response. # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::CloudSecurityCompliance::V1::FrameworkComplianceSummary>] # @yieldparam operation [::Gapic::Rest::TransportOperation] @@ -417,7 +419,7 @@ def list_finding_summaries request, options = nil # @param options [::Gapic::CallOptions, ::Hash] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # - # @overload fetch_framework_compliance_report(name: nil, end_time: nil) + # @overload fetch_framework_compliance_report(name: nil, end_time: nil, filter: nil) # Pass arguments to `fetch_framework_compliance_report` via keyword arguments. Note that at # least one keyword argument is required. To specify no parameters, or to keep all # the default parameter values, pass an empty Hash as a request object (see above). @@ -426,6 +428,8 @@ def list_finding_summaries request, options = nil # Required. The name of the framework compliance report to retrieve. # @param end_time [::Google::Protobuf::Timestamp, ::Hash] # Optional. The end time of the report. + # @param filter [::String] + # Optional. The filtering results. # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Cloud::CloudSecurityCompliance::V1::FrameworkComplianceReport] # @yieldparam operation [::Gapic::Rest::TransportOperation] diff --git a/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloudsecuritycompliance/v1/common_pb.rb b/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloudsecuritycompliance/v1/common_pb.rb index 413c17af27c1..c3c0fcbfde38 100644 --- a/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloudsecuritycompliance/v1/common_pb.rb +++ b/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloudsecuritycompliance/v1/common_pb.rb @@ -9,7 +9,7 @@ require 'google/protobuf/timestamp_pb' -descriptor_data = "\n4google/cloud/cloudsecuritycompliance/v1/common.proto\x12\'google.cloud.cloudsecuritycompliance.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x94\x07\n\tFramework\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x08\x12\x1e\n\x11major_revision_id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0b\x64\x65scription\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12S\n\x04type\x18\x06 \x01(\x0e\x32@.google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkTypeB\x03\xe0\x41\x03\x12`\n\x15\x63loud_control_details\x18\x08 \x03(\x0b\x32<.google.cloud.cloudsecuritycompliance.v1.CloudControlDetailsB\x03\xe0\x41\x01\x12Q\n\x08\x63\x61tegory\x18\t \x03(\x0e\x32:.google.cloud.cloudsecuritycompliance.v1.FrameworkCategoryB\x03\xe0\x41\x01\x12^\n\x19supported_cloud_providers\x18\n \x03(\x0e\x32\x36.google.cloud.cloudsecuritycompliance.v1.CloudProviderB\x03\xe0\x41\x03\x12i\n\x1fsupported_target_resource_types\x18\x0b \x03(\x0e\x32;.google.cloud.cloudsecuritycompliance.v1.TargetResourceTypeB\x03\xe0\x41\x03\x12\x62\n\x1bsupported_enforcement_modes\x18\r \x03(\x0e\x32\x38.google.cloud.cloudsecuritycompliance.v1.EnforcementModeB\x03\xe0\x41\x03\"I\n\rFrameworkType\x12\x1e\n\x1a\x46RAMEWORK_TYPE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x42UILT_IN\x10\x01\x12\n\n\x06\x43USTOM\x10\x02:\x97\x01\xea\x41\x93\x01\n0cloudsecuritycompliance.googleapis.com/Framework\x12Horganizations/{organization}/locations/{location}/frameworks/{framework}*\nframeworks2\tframework\"\x95\x01\n\x13\x43loudControlDetails\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1e\n\x11major_revision_id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x02\x12K\n\nparameters\x18\x04 \x03(\x0b\x32\x32.google.cloud.cloudsecuritycompliance.v1.ParameterB\x03\xe0\x41\x01\"g\n\x12\x46rameworkReference\x12\x16\n\tframework\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12#\n\x11major_revision_id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x42\x14\n\x12_major_revision_id\"q\n\tParameter\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12Q\n\x0fparameter_value\x18\x02 \x01(\x0b\x32\x33.google.cloud.cloudsecuritycompliance.v1.ParamValueB\x03\xe0\x41\x02\"\xda\x08\n\x0c\x43loudControl\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x08\x12\x1e\n\x11major_revision_id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x64\x65scription\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0c\x64isplay_name\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x62\n\x1bsupported_enforcement_modes\x18\x07 \x03(\x0e\x32\x38.google.cloud.cloudsecuritycompliance.v1.EnforcementModeB\x03\xe0\x41\x03\x12S\n\x0eparameter_spec\x18\x08 \x03(\x0b\x32\x36.google.cloud.cloudsecuritycompliance.v1.ParameterSpecB\x03\xe0\x41\x01\x12\x41\n\x05rules\x18\t \x03(\x0b\x32-.google.cloud.cloudsecuritycompliance.v1.RuleB\x03\xe0\x41\x01\x12H\n\x08severity\x18\x0b \x01(\x0e\x32\x31.google.cloud.cloudsecuritycompliance.v1.SeverityB\x03\xe0\x41\x01\x12\x1d\n\x10\x66inding_category\x18\x0c \x01(\tB\x03\xe0\x41\x01\x12^\n\x19supported_cloud_providers\x18\r \x03(\x0e\x32\x36.google.cloud.cloudsecuritycompliance.v1.CloudProviderB\x03\xe0\x41\x01\x12\x1f\n\x12related_frameworks\x18\x0e \x03(\tB\x03\xe0\x41\x03\x12\x1e\n\x11remediation_steps\x18\x0f \x01(\tB\x03\xe0\x41\x01\x12V\n\ncategories\x18\x10 \x03(\x0e\x32=.google.cloud.cloudsecuritycompliance.v1.CloudControlCategoryB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12i\n\x1fsupported_target_resource_types\x18\x12 \x03(\x0e\x32;.google.cloud.cloudsecuritycompliance.v1.TargetResourceTypeB\x03\xe0\x41\x01\"6\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06\x43USTOM\x10\x01\x12\x0c\n\x08\x42UILT_IN\x10\x02:\xa7\x01\xea\x41\xa3\x01\n3cloudsecuritycompliance.googleapis.com/CloudControl\x12Oorganizations/{organization}/locations/{location}/cloudControls/{cloud_control}*\rcloudControls2\x0c\x63loudControl\"\x8e\x05\n\rParameterSpec\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0bis_required\x18\x04 \x01(\x08\x42\x03\xe0\x41\x02\x12Y\n\nvalue_type\x18\x05 \x01(\x0e\x32@.google.cloud.cloudsecuritycompliance.v1.ParameterSpec.ValueTypeB\x03\xe0\x41\x02\x12O\n\rdefault_value\x18\x06 \x01(\x0b\x32\x33.google.cloud.cloudsecuritycompliance.v1.ParamValueB\x03\xe0\x41\x01\x12\x63\n\x12substitution_rules\x18\x07 \x03(\x0b\x32\x42.google.cloud.cloudsecuritycompliance.v1.ParameterSubstitutionRuleB\x03\xe0\x41\x01\x12S\n\x0esub_parameters\x18\x08 \x03(\x0b\x32\x36.google.cloud.cloudsecuritycompliance.v1.ParameterSpecB\x03\xe0\x41\x01\x12L\n\nvalidation\x18\t \x01(\x0b\x32\x33.google.cloud.cloudsecuritycompliance.v1.ValidationB\x03\xe0\x41\x01\"g\n\tValueType\x12\x1a\n\x16VALUE_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06STRING\x10\x03\x12\x0b\n\x07\x42OOLEAN\x10\x04\x12\x0e\n\nSTRINGLIST\x10\x05\x12\n\n\x06NUMBER\x10\x06\x12\t\n\x05ONEOF\x10\x07\"\x86\x02\n\nValidation\x12P\n\x0e\x61llowed_values\x18\x01 \x01(\x0b\x32\x36.google.cloud.cloudsecuritycompliance.v1.AllowedValuesH\x00\x12\x46\n\tint_range\x18\x02 \x01(\x0b\x32\x31.google.cloud.cloudsecuritycompliance.v1.IntRangeH\x00\x12P\n\x0eregexp_pattern\x18\x03 \x01(\x0b\x32\x36.google.cloud.cloudsecuritycompliance.v1.RegexpPatternH\x00\x42\x0c\n\nconstraint\"Y\n\rAllowedValues\x12H\n\x06values\x18\x01 \x03(\x0b\x32\x33.google.cloud.cloudsecuritycompliance.v1.ParamValueB\x03\xe0\x41\x02\"%\n\rRegexpPattern\x12\x14\n\x07pattern\x18\x01 \x01(\tB\x03\xe0\x41\x02\".\n\x08IntRange\x12\x10\n\x03min\x18\x01 \x01(\x03\x42\x03\xe0\x41\x02\x12\x10\n\x03max\x18\x02 \x01(\x03\x42\x03\xe0\x41\x02\"!\n\nStringList\x12\x13\n\x06values\x18\x01 \x03(\tB\x03\xe0\x41\x02\"\xf7\x01\n\nParamValue\x12\x16\n\x0cstring_value\x18\x03 \x01(\tH\x00\x12\x14\n\nbool_value\x18\x04 \x01(\x08H\x00\x12P\n\x11string_list_value\x18\x05 \x01(\x0b\x32\x33.google.cloud.cloudsecuritycompliance.v1.StringListH\x00\x12\x16\n\x0cnumber_value\x18\x06 \x01(\x01H\x00\x12I\n\x0boneof_value\x18\x07 \x01(\x0b\x32\x32.google.cloud.cloudsecuritycompliance.v1.ParameterH\x00\x42\x06\n\x04kind\"\x8a\x02\n\x19ParameterSubstitutionRule\x12m\n\x1dplaceholder_substitution_rule\x18\x01 \x01(\x0b\x32\x44.google.cloud.cloudsecuritycompliance.v1.PlaceholderSubstitutionRuleH\x00\x12i\n\x1b\x61ttribute_substitution_rule\x18\x02 \x01(\x0b\x32\x42.google.cloud.cloudsecuritycompliance.v1.AttributeSubstitutionRuleH\x00\x42\x13\n\x11substitution_type\".\n\x19\x41ttributeSubstitutionRule\x12\x11\n\tattribute\x18\x01 \x01(\t\"0\n\x1bPlaceholderSubstitutionRule\x12\x11\n\tattribute\x18\x01 \x01(\t\"\xdd\x01\n\x04Rule\x12P\n\x0e\x63\x65l_expression\x18\x01 \x01(\x0b\x32\x36.google.cloud.cloudsecuritycompliance.v1.CELExpressionH\x00\x12\x18\n\x0b\x64\x65scription\x18\n \x01(\tB\x03\xe0\x41\x01\x12W\n\x11rule_action_types\x18\x10 \x03(\x0e\x32\x37.google.cloud.cloudsecuritycompliance.v1.RuleActionTypeB\x03\xe0\x41\x02\x42\x10\n\x0eimplementation\"\x8a\x01\n\rCELExpression\x12T\n\x15resource_types_values\x18\x03 \x01(\x0b\x32\x33.google.cloud.cloudsecuritycompliance.v1.StringListH\x00\x12\x17\n\nexpression\x18\x01 \x01(\tB\x03\xe0\x41\x02\x42\n\n\x08\x63riteria\"\x80\x02\n\x11OperationMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04verb\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16requested_cancellation\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x61pi_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\"8\n\rControlFamily\x12\x11\n\tfamily_id\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t*\x83\x01\n#RegulatoryControlResponsibilityType\x12\x36\n2REGULATORY_CONTROL_RESPONSIBILITY_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06GOOGLE\x10\x01\x12\x0c\n\x08\x43USTOMER\x10\x02\x12\n\n\x06SHARED\x10\x03*]\n\x0f\x45nforcementMode\x12 \n\x1c\x45NFORCEMENT_MODE_UNSPECIFIED\x10\x00\x12\x0e\n\nPREVENTIVE\x10\x01\x12\r\n\tDETECTIVE\x10\x02\x12\t\n\x05\x41UDIT\x10\x03*\xb1\x01\n\x11\x46rameworkCategory\x12\"\n\x1e\x46RAMEWORK_CATEGORY_UNSPECIFIED\x10\x00\x12\x1d\n\x19INDUSTRY_DEFINED_STANDARD\x10\x01\x12\x15\n\x11\x41SSURED_WORKLOADS\x10\x02\x12\x11\n\rDATA_SECURITY\x10\x03\x12\x19\n\x15GOOGLE_BEST_PRACTICES\x10\x04\x12\x14\n\x10\x43USTOM_FRAMEWORK\x10\x05*\xf2\x04\n\x14\x43loudControlCategory\x12&\n\"CLOUD_CONTROL_CATEGORY_UNSPECIFIED\x10\x00\x12\x1e\n\x1a\x43\x43_CATEGORY_INFRASTRUCTURE\x10\x01\x12\'\n#CC_CATEGORY_ARTIFICIAL_INTELLIGENCE\x10\x02\x12!\n\x1d\x43\x43_CATEGORY_PHYSICAL_SECURITY\x10\x03\x12\x1d\n\x19\x43\x43_CATEGORY_DATA_SECURITY\x10\x04\x12 \n\x1c\x43\x43_CATEGORY_NETWORK_SECURITY\x10\x05\x12#\n\x1f\x43\x43_CATEGORY_INCIDENT_MANAGEMENT\x10\x06\x12.\n*CC_CATEGORY_IDENTITY_AND_ACCESS_MANAGEMENT\x10\x07\x12\x1a\n\x16\x43\x43_CATEGORY_ENCRYPTION\x10\x08\x12\x32\n.CC_CATEGORY_LOGS_MANAGEMENT_AND_INFRASTRUCTURE\x10\t\x12&\n\"CC_CATEGORY_HR_ADMIN_AND_PROCESSES\x10\n\x12\x38\n4CC_CATEGORY_THIRD_PARTY_AND_SUB_PROCESSOR_MANAGEMENT\x10\x0b\x12%\n!CC_CATEGORY_LEGAL_AND_DISCLOSURES\x10\x0c\x12(\n$CC_CATEGORY_VULNERABILITY_MANAGEMENT\x10\r\x12\x17\n\x13\x43\x43_CATEGORY_PRIVACY\x10\x0e\x12\x14\n\x10\x43\x43_CATEGORY_BCDR\x10\x0f*L\n\rCloudProvider\x12\x1e\n\x1a\x43LOUD_PROVIDER_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41WS\x10\x01\x12\t\n\x05\x41ZURE\x10\x02\x12\x07\n\x03GCP\x10\x03*Q\n\x08Severity\x12\x18\n\x14SEVERITY_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43RITICAL\x10\x01\x12\x08\n\x04HIGH\x10\x02\x12\n\n\x06MEDIUM\x10\x03\x12\x07\n\x03LOW\x10\x04*\x8f\x01\n\x0eRuleActionType\x12 \n\x1cRULE_ACTION_TYPE_UNSPECIFIED\x10\x00\x12\x1f\n\x1bRULE_ACTION_TYPE_PREVENTIVE\x10\x01\x12\x1e\n\x1aRULE_ACTION_TYPE_DETECTIVE\x10\x02\x12\x1a\n\x16RULE_ACTION_TYPE_AUDIT\x10\x03*\xcd\x01\n\x12TargetResourceType\x12$\n TARGET_RESOURCE_TYPE_UNSPECIFIED\x10\x00\x12 \n\x1cTARGET_RESOURCE_CRM_TYPE_ORG\x10\x01\x12#\n\x1fTARGET_RESOURCE_CRM_TYPE_FOLDER\x10\x02\x12$\n TARGET_RESOURCE_CRM_TYPE_PROJECT\x10\x03\x12$\n TARGET_RESOURCE_TYPE_APPLICATION\x10\x04\x42\x97\x03\n+com.google.cloud.cloudsecuritycompliance.v1B\x0b\x43ommonProtoP\x01Zecloud.google.com/go/cloudsecuritycompliance/apiv1/cloudsecuritycompliancepb;cloudsecuritycompliancepb\xaa\x02\'Google.Cloud.CloudSecurityCompliance.V1\xca\x02\'Google\\Cloud\\CloudSecurityCompliance\\V1\xea\x02*Google::Cloud::CloudSecurityCompliance::V1\xea\x41p\n;cloudsecuritycompliance.googleapis.com/OrganizationLocation\x12\x31organizations/{organization}/locations/{location}b\x06proto3" +descriptor_data = "\n4google/cloud/cloudsecuritycompliance/v1/common.proto\x12\'google.cloud.cloudsecuritycompliance.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xd4\x07\n\tFramework\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x08\x12\x1e\n\x11major_revision_id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0b\x64\x65scription\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12S\n\x04type\x18\x06 \x01(\x0e\x32@.google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkTypeB\x03\xe0\x41\x03\x12`\n\x15\x63loud_control_details\x18\x08 \x03(\x0b\x32<.google.cloud.cloudsecuritycompliance.v1.CloudControlDetailsB\x03\xe0\x41\x01\x12Q\n\x08\x63\x61tegory\x18\t \x03(\x0e\x32:.google.cloud.cloudsecuritycompliance.v1.FrameworkCategoryB\x03\xe0\x41\x01\x12^\n\x19supported_cloud_providers\x18\n \x03(\x0e\x32\x36.google.cloud.cloudsecuritycompliance.v1.CloudProviderB\x03\xe0\x41\x03\x12i\n\x1fsupported_target_resource_types\x18\x0b \x03(\x0e\x32;.google.cloud.cloudsecuritycompliance.v1.TargetResourceTypeB\x03\xe0\x41\x03\x12\x62\n\x1bsupported_enforcement_modes\x18\r \x03(\x0e\x32\x38.google.cloud.cloudsecuritycompliance.v1.EnforcementModeB\x03\xe0\x41\x03\"I\n\rFrameworkType\x12\x1e\n\x1a\x46RAMEWORK_TYPE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x42UILT_IN\x10\x01\x12\n\n\x06\x43USTOM\x10\x02:\xd7\x01\xea\x41\xd3\x01\n0cloudsecuritycompliance.googleapis.com/Framework\x12Horganizations/{organization}/locations/{location}/frameworks/{framework}\x12>projects/{project}/locations/{location}/frameworks/{framework}*\nframeworks2\tframework\"\x95\x01\n\x13\x43loudControlDetails\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1e\n\x11major_revision_id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x02\x12K\n\nparameters\x18\x04 \x03(\x0b\x32\x32.google.cloud.cloudsecuritycompliance.v1.ParameterB\x03\xe0\x41\x01\"\x9c\x01\n\x12\x46rameworkReference\x12K\n\tframework\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0cloudsecuritycompliance.googleapis.com/Framework\x12#\n\x11major_revision_id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x42\x14\n\x12_major_revision_id\"q\n\tParameter\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12Q\n\x0fparameter_value\x18\x02 \x01(\x0b\x32\x33.google.cloud.cloudsecuritycompliance.v1.ParamValueB\x03\xe0\x41\x02\"\xa1\t\n\x0c\x43loudControl\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x08\x12\x1e\n\x11major_revision_id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x64\x65scription\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0c\x64isplay_name\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x62\n\x1bsupported_enforcement_modes\x18\x07 \x03(\x0e\x32\x38.google.cloud.cloudsecuritycompliance.v1.EnforcementModeB\x03\xe0\x41\x03\x12S\n\x0eparameter_spec\x18\x08 \x03(\x0b\x32\x36.google.cloud.cloudsecuritycompliance.v1.ParameterSpecB\x03\xe0\x41\x01\x12\x41\n\x05rules\x18\t \x03(\x0b\x32-.google.cloud.cloudsecuritycompliance.v1.RuleB\x03\xe0\x41\x01\x12H\n\x08severity\x18\x0b \x01(\x0e\x32\x31.google.cloud.cloudsecuritycompliance.v1.SeverityB\x03\xe0\x41\x01\x12\x1d\n\x10\x66inding_category\x18\x0c \x01(\tB\x03\xe0\x41\x01\x12^\n\x19supported_cloud_providers\x18\r \x03(\x0e\x32\x36.google.cloud.cloudsecuritycompliance.v1.CloudProviderB\x03\xe0\x41\x01\x12\x1f\n\x12related_frameworks\x18\x0e \x03(\tB\x03\xe0\x41\x03\x12\x1e\n\x11remediation_steps\x18\x0f \x01(\tB\x03\xe0\x41\x01\x12V\n\ncategories\x18\x10 \x03(\x0e\x32=.google.cloud.cloudsecuritycompliance.v1.CloudControlCategoryB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12i\n\x1fsupported_target_resource_types\x18\x12 \x03(\x0e\x32;.google.cloud.cloudsecuritycompliance.v1.TargetResourceTypeB\x03\xe0\x41\x01\"6\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06\x43USTOM\x10\x01\x12\x0c\n\x08\x42UILT_IN\x10\x02:\xee\x01\xea\x41\xea\x01\n3cloudsecuritycompliance.googleapis.com/CloudControl\x12Oorganizations/{organization}/locations/{location}/cloudControls/{cloud_control}\x12\x45projects/{project}/locations/{location}/cloudControls/{cloud_control}*\rcloudControls2\x0c\x63loudControl\"\x8e\x05\n\rParameterSpec\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x18\n\x0bis_required\x18\x04 \x01(\x08\x42\x03\xe0\x41\x02\x12Y\n\nvalue_type\x18\x05 \x01(\x0e\x32@.google.cloud.cloudsecuritycompliance.v1.ParameterSpec.ValueTypeB\x03\xe0\x41\x02\x12O\n\rdefault_value\x18\x06 \x01(\x0b\x32\x33.google.cloud.cloudsecuritycompliance.v1.ParamValueB\x03\xe0\x41\x01\x12\x63\n\x12substitution_rules\x18\x07 \x03(\x0b\x32\x42.google.cloud.cloudsecuritycompliance.v1.ParameterSubstitutionRuleB\x03\xe0\x41\x01\x12S\n\x0esub_parameters\x18\x08 \x03(\x0b\x32\x36.google.cloud.cloudsecuritycompliance.v1.ParameterSpecB\x03\xe0\x41\x01\x12L\n\nvalidation\x18\t \x01(\x0b\x32\x33.google.cloud.cloudsecuritycompliance.v1.ValidationB\x03\xe0\x41\x01\"g\n\tValueType\x12\x1a\n\x16VALUE_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06STRING\x10\x03\x12\x0b\n\x07\x42OOLEAN\x10\x04\x12\x0e\n\nSTRINGLIST\x10\x05\x12\n\n\x06NUMBER\x10\x06\x12\t\n\x05ONEOF\x10\x07\"\x86\x02\n\nValidation\x12P\n\x0e\x61llowed_values\x18\x01 \x01(\x0b\x32\x36.google.cloud.cloudsecuritycompliance.v1.AllowedValuesH\x00\x12\x46\n\tint_range\x18\x02 \x01(\x0b\x32\x31.google.cloud.cloudsecuritycompliance.v1.IntRangeH\x00\x12P\n\x0eregexp_pattern\x18\x03 \x01(\x0b\x32\x36.google.cloud.cloudsecuritycompliance.v1.RegexpPatternH\x00\x42\x0c\n\nconstraint\"Y\n\rAllowedValues\x12H\n\x06values\x18\x01 \x03(\x0b\x32\x33.google.cloud.cloudsecuritycompliance.v1.ParamValueB\x03\xe0\x41\x02\"%\n\rRegexpPattern\x12\x14\n\x07pattern\x18\x01 \x01(\tB\x03\xe0\x41\x02\".\n\x08IntRange\x12\x10\n\x03min\x18\x01 \x01(\x03\x42\x03\xe0\x41\x02\x12\x10\n\x03max\x18\x02 \x01(\x03\x42\x03\xe0\x41\x02\"!\n\nStringList\x12\x13\n\x06values\x18\x01 \x03(\tB\x03\xe0\x41\x02\"\x90\x02\n\nParamValue\x12\x1b\n\x0cstring_value\x18\x03 \x01(\tB\x03\xe0\x41\x01H\x00\x12\x19\n\nbool_value\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01H\x00\x12U\n\x11string_list_value\x18\x05 \x01(\x0b\x32\x33.google.cloud.cloudsecuritycompliance.v1.StringListB\x03\xe0\x41\x01H\x00\x12\x1b\n\x0cnumber_value\x18\x06 \x01(\x01\x42\x03\xe0\x41\x01H\x00\x12N\n\x0boneof_value\x18\x07 \x01(\x0b\x32\x32.google.cloud.cloudsecuritycompliance.v1.ParameterB\x03\xe0\x41\x01H\x00\x42\x06\n\x04kind\"\x8a\x02\n\x19ParameterSubstitutionRule\x12m\n\x1dplaceholder_substitution_rule\x18\x01 \x01(\x0b\x32\x44.google.cloud.cloudsecuritycompliance.v1.PlaceholderSubstitutionRuleH\x00\x12i\n\x1b\x61ttribute_substitution_rule\x18\x02 \x01(\x0b\x32\x42.google.cloud.cloudsecuritycompliance.v1.AttributeSubstitutionRuleH\x00\x42\x13\n\x11substitution_type\".\n\x19\x41ttributeSubstitutionRule\x12\x11\n\tattribute\x18\x01 \x01(\t\"0\n\x1bPlaceholderSubstitutionRule\x12\x11\n\tattribute\x18\x01 \x01(\t\"\xdd\x01\n\x04Rule\x12P\n\x0e\x63\x65l_expression\x18\x01 \x01(\x0b\x32\x36.google.cloud.cloudsecuritycompliance.v1.CELExpressionH\x00\x12\x18\n\x0b\x64\x65scription\x18\n \x01(\tB\x03\xe0\x41\x01\x12W\n\x11rule_action_types\x18\x10 \x03(\x0e\x32\x37.google.cloud.cloudsecuritycompliance.v1.RuleActionTypeB\x03\xe0\x41\x02\x42\x10\n\x0eimplementation\"\x8a\x01\n\rCELExpression\x12T\n\x15resource_types_values\x18\x03 \x01(\x0b\x32\x33.google.cloud.cloudsecuritycompliance.v1.StringListH\x00\x12\x17\n\nexpression\x18\x01 \x01(\tB\x03\xe0\x41\x02\x42\n\n\x08\x63riteria\"\x80\x02\n\x11OperationMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04verb\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16requested_cancellation\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x61pi_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\"\xa3\x08\n\x07\x43ontrol\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x19\n\x0c\x64isplay_name\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0b\x64\x65scription\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12L\n\x06\x66\x61mily\x18\x05 \x01(\x0e\x32\x37.google.cloud.cloudsecuritycompliance.v1.Control.FamilyB\x03\xe0\x41\x03\x12S\n\x0e\x63ontrol_family\x18\x06 \x01(\x0b\x32\x36.google.cloud.cloudsecuritycompliance.v1.ControlFamilyB\x03\xe0\x41\x03\x12n\n\x13responsibility_type\x18\x07 \x01(\x0e\x32L.google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityTypeB\x03\xe0\x41\x03\x12.\n!google_responsibility_description\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12\x31\n$google_responsibility_implementation\x18\t \x01(\tB\x03\xe0\x41\x03\x12\x30\n#customer_responsibility_description\x18\n \x01(\tB\x03\xe0\x41\x03\x12\x33\n&customer_responsibility_implementation\x18\x0b \x01(\tB\x03\xe0\x41\x03\x12.\n!shared_responsibility_description\x18\x0c \x01(\tB\x03\xe0\x41\x03\x12#\n\x16\x61\x64\x64itional_content_uri\x18\r \x01(\tB\x03\xe0\x41\x03\x12\x1f\n\x12related_frameworks\x18\x0e \x03(\tB\x03\xe0\x41\x03\"\xb0\x01\n\x06\x46\x61mily\x12\x16\n\x12\x46\x41MILY_UNSPECIFIED\x10\x00\x12\x06\n\x02\x41\x43\x10\x01\x12\x06\n\x02\x41T\x10\x02\x12\x06\n\x02\x41U\x10\x03\x12\x06\n\x02\x43\x41\x10\x04\x12\x06\n\x02\x43M\x10\x05\x12\x06\n\x02\x43P\x10\x06\x12\x06\n\x02IA\x10\x07\x12\x06\n\x02IR\x10\x08\x12\x06\n\x02MA\x10\t\x12\x06\n\x02MP\x10\n\x12\x06\n\x02PE\x10\x0b\x12\x06\n\x02PL\x10\x0c\x12\x06\n\x02PS\x10\r\x12\x06\n\x02RA\x10\x0e\x12\x06\n\x02SA\x10\x0f\x12\x06\n\x02SC\x10\x10\x12\x06\n\x02SI\x10\x11\x12\x06\n\x02SR\x10\x12:\xc9\x01\xea\x41\xc5\x01\n.cloudsecuritycompliance.googleapis.com/Control\x12\x44organizations/{organization}/locations/{location}/controls/{control}\x12:projects/{project}/locations/{location}/controls/{control}*\x08\x63ontrols2\x07\x63ontrol\"8\n\rControlFamily\x12\x11\n\tfamily_id\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t*\x83\x01\n#RegulatoryControlResponsibilityType\x12\x36\n2REGULATORY_CONTROL_RESPONSIBILITY_TYPE_UNSPECIFIED\x10\x00\x12\n\n\x06GOOGLE\x10\x01\x12\x0c\n\x08\x43USTOMER\x10\x02\x12\n\n\x06SHARED\x10\x03*]\n\x0f\x45nforcementMode\x12 \n\x1c\x45NFORCEMENT_MODE_UNSPECIFIED\x10\x00\x12\x0e\n\nPREVENTIVE\x10\x01\x12\r\n\tDETECTIVE\x10\x02\x12\t\n\x05\x41UDIT\x10\x03*\xb1\x01\n\x11\x46rameworkCategory\x12\"\n\x1e\x46RAMEWORK_CATEGORY_UNSPECIFIED\x10\x00\x12\x1d\n\x19INDUSTRY_DEFINED_STANDARD\x10\x01\x12\x15\n\x11\x41SSURED_WORKLOADS\x10\x02\x12\x11\n\rDATA_SECURITY\x10\x03\x12\x19\n\x15GOOGLE_BEST_PRACTICES\x10\x04\x12\x14\n\x10\x43USTOM_FRAMEWORK\x10\x05*\xfe\x05\n\x14\x43loudControlCategory\x12&\n\"CLOUD_CONTROL_CATEGORY_UNSPECIFIED\x10\x00\x12\x1e\n\x1a\x43\x43_CATEGORY_INFRASTRUCTURE\x10\x01\x12\'\n#CC_CATEGORY_ARTIFICIAL_INTELLIGENCE\x10\x02\x12!\n\x1d\x43\x43_CATEGORY_PHYSICAL_SECURITY\x10\x03\x12\x1d\n\x19\x43\x43_CATEGORY_DATA_SECURITY\x10\x04\x12 \n\x1c\x43\x43_CATEGORY_NETWORK_SECURITY\x10\x05\x12#\n\x1f\x43\x43_CATEGORY_INCIDENT_MANAGEMENT\x10\x06\x12.\n*CC_CATEGORY_IDENTITY_AND_ACCESS_MANAGEMENT\x10\x07\x12\x1a\n\x16\x43\x43_CATEGORY_ENCRYPTION\x10\x08\x12\x32\n.CC_CATEGORY_LOGS_MANAGEMENT_AND_INFRASTRUCTURE\x10\t\x12&\n\"CC_CATEGORY_HR_ADMIN_AND_PROCESSES\x10\n\x12\x38\n4CC_CATEGORY_THIRD_PARTY_AND_SUB_PROCESSOR_MANAGEMENT\x10\x0b\x12%\n!CC_CATEGORY_LEGAL_AND_DISCLOSURES\x10\x0c\x12(\n$CC_CATEGORY_VULNERABILITY_MANAGEMENT\x10\r\x12\x17\n\x13\x43\x43_CATEGORY_PRIVACY\x10\x0e\x12\x14\n\x10\x43\x43_CATEGORY_BCDR\x10\x0f\x12\x1c\n\x18\x43\x43_CATEGORY_ADMIN_ACCESS\x10\x10\x12\x1e\n\x1a\x43\x43_CATEGORY_DATA_RESIDENCY\x10\x11\x12*\n&CC_CATEGORY_RESOURCE_USAGE_RESTRICTION\x10\x12\x12 \n\x1c\x43\x43_CATEGORY_SERVICE_SPECIFIC\x10\x13*L\n\rCloudProvider\x12\x1e\n\x1a\x43LOUD_PROVIDER_UNSPECIFIED\x10\x00\x12\x07\n\x03\x41WS\x10\x01\x12\t\n\x05\x41ZURE\x10\x02\x12\x07\n\x03GCP\x10\x03*Q\n\x08Severity\x12\x18\n\x14SEVERITY_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43RITICAL\x10\x01\x12\x08\n\x04HIGH\x10\x02\x12\n\n\x06MEDIUM\x10\x03\x12\x07\n\x03LOW\x10\x04*\x8f\x01\n\x0eRuleActionType\x12 \n\x1cRULE_ACTION_TYPE_UNSPECIFIED\x10\x00\x12\x1f\n\x1bRULE_ACTION_TYPE_PREVENTIVE\x10\x01\x12\x1e\n\x1aRULE_ACTION_TYPE_DETECTIVE\x10\x02\x12\x1a\n\x16RULE_ACTION_TYPE_AUDIT\x10\x03*\xcd\x01\n\x12TargetResourceType\x12$\n TARGET_RESOURCE_TYPE_UNSPECIFIED\x10\x00\x12 \n\x1cTARGET_RESOURCE_CRM_TYPE_ORG\x10\x01\x12#\n\x1fTARGET_RESOURCE_CRM_TYPE_FOLDER\x10\x02\x12$\n TARGET_RESOURCE_CRM_TYPE_PROJECT\x10\x03\x12$\n TARGET_RESOURCE_TYPE_APPLICATION\x10\x04\x42\x97\x03\n+com.google.cloud.cloudsecuritycompliance.v1B\x0b\x43ommonProtoP\x01Zecloud.google.com/go/cloudsecuritycompliance/apiv1/cloudsecuritycompliancepb;cloudsecuritycompliancepb\xaa\x02\'Google.Cloud.CloudSecurityCompliance.V1\xca\x02\'Google\\Cloud\\CloudSecurityCompliance\\V1\xea\x02*Google::Cloud::CloudSecurityCompliance::V1\xea\x41p\n;cloudsecuritycompliance.googleapis.com/OrganizationLocation\x12\x31organizations/{organization}/locations/{location}b\x06proto3" pool = ::Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) @@ -39,6 +39,8 @@ module V1 Rule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.cloudsecuritycompliance.v1.Rule").msgclass CELExpression = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.cloudsecuritycompliance.v1.CELExpression").msgclass OperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.cloudsecuritycompliance.v1.OperationMetadata").msgclass + Control = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.cloudsecuritycompliance.v1.Control").msgclass + Control::Family = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.cloudsecuritycompliance.v1.Control.Family").enummodule ControlFamily = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.cloudsecuritycompliance.v1.ControlFamily").msgclass RegulatoryControlResponsibilityType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType").enummodule EnforcementMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.cloudsecuritycompliance.v1.EnforcementMode").enummodule diff --git a/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloudsecuritycompliance/v1/config_pb.rb b/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloudsecuritycompliance/v1/config_pb.rb index 66fb71af8ac1..2d01f26a779a 100644 --- a/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloudsecuritycompliance/v1/config_pb.rb +++ b/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloudsecuritycompliance/v1/config_pb.rb @@ -13,7 +13,7 @@ require 'google/protobuf/field_mask_pb' -descriptor_data = "\n4google/cloud/cloudsecuritycompliance/v1/config.proto\x12\'google.cloud.cloudsecuritycompliance.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x34google/cloud/cloudsecuritycompliance/v1/common.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\x92\x01\n\x15ListFrameworksRequest\x12H\n\x06parent\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\x12\x30\x63loudsecuritycompliance.googleapis.com/Framework\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"y\n\x16ListFrameworksResponse\x12\x46\n\nframeworks\x18\x01 \x03(\x0b\x32\x32.google.cloud.cloudsecuritycompliance.v1.Framework\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"}\n\x13GetFrameworkRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0cloudsecuritycompliance.googleapis.com/Framework\x12\x1e\n\x11major_revision_id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x01\"\xc9\x01\n\x16\x43reateFrameworkRequest\x12H\n\x06parent\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\x12\x30\x63loudsecuritycompliance.googleapis.com/Framework\x12\x19\n\x0c\x66ramework_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12J\n\tframework\x18\x03 \x01(\x0b\x32\x32.google.cloud.cloudsecuritycompliance.v1.FrameworkB\x03\xe0\x41\x02\"\xba\x01\n\x16UpdateFrameworkRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12J\n\tframework\x18\x02 \x01(\x0b\x32\x32.google.cloud.cloudsecuritycompliance.v1.FrameworkB\x03\xe0\x41\x02\x12\x1e\n\x11major_revision_id\x18\x03 \x01(\x03\x42\x03\xe0\x41\x01\"`\n\x16\x44\x65leteFrameworkRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0cloudsecuritycompliance.googleapis.com/Framework\"\x98\x01\n\x18ListCloudControlsRequest\x12K\n\x06parent\x18\x01 \x01(\tB;\xe0\x41\x02\xfa\x41\x35\x12\x33\x63loudsecuritycompliance.googleapis.com/CloudControl\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x83\x01\n\x19ListCloudControlsResponse\x12M\n\x0e\x63loud_controls\x18\x01 \x03(\x0b\x32\x35.google.cloud.cloudsecuritycompliance.v1.CloudControl\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x83\x01\n\x16GetCloudControlRequest\x12I\n\x04name\x18\x01 \x01(\tB;\xe0\x41\x02\xfa\x41\x35\n3cloudsecuritycompliance.googleapis.com/CloudControl\x12\x1e\n\x11major_revision_id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x01\"\xda\x01\n\x19\x43reateCloudControlRequest\x12K\n\x06parent\x18\x01 \x01(\tB;\xe0\x41\x02\xfa\x41\x35\x12\x33\x63loudsecuritycompliance.googleapis.com/CloudControl\x12\x1d\n\x10\x63loud_control_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12Q\n\rcloud_control\x18\x03 \x01(\x0b\x32\x35.google.cloud.cloudsecuritycompliance.v1.CloudControlB\x03\xe0\x41\x02\"\xa4\x01\n\x19UpdateCloudControlRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12Q\n\rcloud_control\x18\x02 \x01(\x0b\x32\x35.google.cloud.cloudsecuritycompliance.v1.CloudControlB\x03\xe0\x41\x02\"f\n\x19\x44\x65leteCloudControlRequest\x12I\n\x04name\x18\x01 \x01(\tB;\xe0\x41\x02\xfa\x41\x35\n3cloudsecuritycompliance.googleapis.com/CloudControl2\xa1\x12\n\x06\x43onfig\x12\xd7\x01\n\x0eListFrameworks\x12>.google.cloud.cloudsecuritycompliance.v1.ListFrameworksRequest\x1a?.google.cloud.cloudsecuritycompliance.v1.ListFrameworksResponse\"D\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x35\x12\x33/v1/{parent=organizations/*/locations/*}/frameworks\x12\xc4\x01\n\x0cGetFramework\x12<.google.cloud.cloudsecuritycompliance.v1.GetFrameworkRequest\x1a\x32.google.cloud.cloudsecuritycompliance.v1.Framework\"B\xda\x41\x04name\x82\xd3\xe4\x93\x02\x35\x12\x33/v1/{name=organizations/*/locations/*/frameworks/*}\x12\xee\x01\n\x0f\x43reateFramework\x12?.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkRequest\x1a\x32.google.cloud.cloudsecuritycompliance.v1.Framework\"f\xda\x41\x1dparent,framework,framework_id\x82\xd3\xe4\x93\x02@\"3/v1/{parent=organizations/*/locations/*}/frameworks:\tframework\x12\xf0\x01\n\x0fUpdateFramework\x12?.google.cloud.cloudsecuritycompliance.v1.UpdateFrameworkRequest\x1a\x32.google.cloud.cloudsecuritycompliance.v1.Framework\"h\xda\x41\x15\x66ramework,update_mask\x82\xd3\xe4\x93\x02J2=/v1/{framework.name=organizations/*/locations/*/frameworks/*}:\tframework\x12\xae\x01\n\x0f\x44\x65leteFramework\x12?.google.cloud.cloudsecuritycompliance.v1.DeleteFrameworkRequest\x1a\x16.google.protobuf.Empty\"B\xda\x41\x04name\x82\xd3\xe4\x93\x02\x35*3/v1/{name=organizations/*/locations/*/frameworks/*}\x12\xe3\x01\n\x11ListCloudControls\x12\x41.google.cloud.cloudsecuritycompliance.v1.ListCloudControlsRequest\x1a\x42.google.cloud.cloudsecuritycompliance.v1.ListCloudControlsResponse\"G\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x38\x12\x36/v1/{parent=organizations/*/locations/*}/cloudControls\x12\xd0\x01\n\x0fGetCloudControl\x12?.google.cloud.cloudsecuritycompliance.v1.GetCloudControlRequest\x1a\x35.google.cloud.cloudsecuritycompliance.v1.CloudControl\"E\xda\x41\x04name\x82\xd3\xe4\x93\x02\x38\x12\x36/v1/{name=organizations/*/locations/*/cloudControls/*}\x12\x86\x02\n\x12\x43reateCloudControl\x12\x42.google.cloud.cloudsecuritycompliance.v1.CreateCloudControlRequest\x1a\x35.google.cloud.cloudsecuritycompliance.v1.CloudControl\"u\xda\x41%parent,cloud_control,cloud_control_id\x82\xd3\xe4\x93\x02G\"6/v1/{parent=organizations/*/locations/*}/cloudControls:\rcloud_control\x12\x88\x02\n\x12UpdateCloudControl\x12\x42.google.cloud.cloudsecuritycompliance.v1.UpdateCloudControlRequest\x1a\x35.google.cloud.cloudsecuritycompliance.v1.CloudControl\"w\xda\x41\x19\x63loud_control,update_mask\x82\xd3\xe4\x93\x02U2D/v1/{cloud_control.name=organizations/*/locations/*/cloudControls/*}:\rcloud_control\x12\xb7\x01\n\x12\x44\x65leteCloudControl\x12\x42.google.cloud.cloudsecuritycompliance.v1.DeleteCloudControlRequest\x1a\x16.google.protobuf.Empty\"E\xda\x41\x04name\x82\xd3\xe4\x93\x02\x38*6/v1/{name=organizations/*/locations/*/cloudControls/*}\x1aZ\xca\x41&cloudsecuritycompliance.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xa4\x02\n+com.google.cloud.cloudsecuritycompliance.v1B\x0b\x43onfigProtoP\x01Zecloud.google.com/go/cloudsecuritycompliance/apiv1/cloudsecuritycompliancepb;cloudsecuritycompliancepb\xaa\x02\'Google.Cloud.CloudSecurityCompliance.V1\xca\x02\'Google\\Cloud\\CloudSecurityCompliance\\V1\xea\x02*Google::Cloud::CloudSecurityCompliance::V1b\x06proto3" +descriptor_data = "\n4google/cloud/cloudsecuritycompliance/v1/config.proto\x12\'google.cloud.cloudsecuritycompliance.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x34google/cloud/cloudsecuritycompliance/v1/common.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\x92\x01\n\x15ListFrameworksRequest\x12H\n\x06parent\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\x12\x30\x63loudsecuritycompliance.googleapis.com/Framework\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"y\n\x16ListFrameworksResponse\x12\x46\n\nframeworks\x18\x01 \x03(\x0b\x32\x32.google.cloud.cloudsecuritycompliance.v1.Framework\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"}\n\x13GetFrameworkRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0cloudsecuritycompliance.googleapis.com/Framework\x12\x1e\n\x11major_revision_id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x01\"\xc9\x01\n\x16\x43reateFrameworkRequest\x12H\n\x06parent\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\x12\x30\x63loudsecuritycompliance.googleapis.com/Framework\x12\x19\n\x0c\x66ramework_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12J\n\tframework\x18\x03 \x01(\x0b\x32\x32.google.cloud.cloudsecuritycompliance.v1.FrameworkB\x03\xe0\x41\x02\"\xba\x01\n\x16UpdateFrameworkRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12J\n\tframework\x18\x02 \x01(\x0b\x32\x32.google.cloud.cloudsecuritycompliance.v1.FrameworkB\x03\xe0\x41\x02\x12\x1e\n\x11major_revision_id\x18\x03 \x01(\x03\x42\x03\xe0\x41\x01\"`\n\x16\x44\x65leteFrameworkRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0cloudsecuritycompliance.googleapis.com/Framework\"\x98\x01\n\x18ListCloudControlsRequest\x12K\n\x06parent\x18\x01 \x01(\tB;\xe0\x41\x02\xfa\x41\x35\x12\x33\x63loudsecuritycompliance.googleapis.com/CloudControl\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x83\x01\n\x19ListCloudControlsResponse\x12M\n\x0e\x63loud_controls\x18\x01 \x03(\x0b\x32\x35.google.cloud.cloudsecuritycompliance.v1.CloudControl\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x83\x01\n\x16GetCloudControlRequest\x12I\n\x04name\x18\x01 \x01(\tB;\xe0\x41\x02\xfa\x41\x35\n3cloudsecuritycompliance.googleapis.com/CloudControl\x12\x1e\n\x11major_revision_id\x18\x02 \x01(\x03\x42\x03\xe0\x41\x01\"\xda\x01\n\x19\x43reateCloudControlRequest\x12K\n\x06parent\x18\x01 \x01(\tB;\xe0\x41\x02\xfa\x41\x35\x12\x33\x63loudsecuritycompliance.googleapis.com/CloudControl\x12\x1d\n\x10\x63loud_control_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12Q\n\rcloud_control\x18\x03 \x01(\x0b\x32\x35.google.cloud.cloudsecuritycompliance.v1.CloudControlB\x03\xe0\x41\x02\"\xa4\x01\n\x19UpdateCloudControlRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12Q\n\rcloud_control\x18\x02 \x01(\x0b\x32\x35.google.cloud.cloudsecuritycompliance.v1.CloudControlB\x03\xe0\x41\x02\"f\n\x19\x44\x65leteCloudControlRequest\x12I\n\x04name\x18\x01 \x01(\tB;\xe0\x41\x02\xfa\x41\x35\n3cloudsecuritycompliance.googleapis.com/CloudControl2\xf7\x16\n\x06\x43onfig\x12\x89\x02\n\x0eListFrameworks\x12>.google.cloud.cloudsecuritycompliance.v1.ListFrameworksRequest\x1a?.google.cloud.cloudsecuritycompliance.v1.ListFrameworksResponse\"v\xda\x41\x06parent\x82\xd3\xe4\x93\x02g\x12\x33/v1/{parent=organizations/*/locations/*}/frameworksZ0\x12./v1/{parent=projects/*/locations/*}/frameworks\x12\xf6\x01\n\x0cGetFramework\x12<.google.cloud.cloudsecuritycompliance.v1.GetFrameworkRequest\x1a\x32.google.cloud.cloudsecuritycompliance.v1.Framework\"t\xda\x41\x04name\x82\xd3\xe4\x93\x02g\x12\x33/v1/{name=organizations/*/locations/*/frameworks/*}Z0\x12./v1/{name=projects/*/locations/*/frameworks/*}\x12\xac\x02\n\x0f\x43reateFramework\x12?.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkRequest\x1a\x32.google.cloud.cloudsecuritycompliance.v1.Framework\"\xa3\x01\xda\x41\x1dparent,framework,framework_id\x82\xd3\xe4\x93\x02}\"3/v1/{parent=organizations/*/locations/*}/frameworks:\tframeworkZ;\"./v1/{parent=projects/*/locations/*}/frameworks:\tframework\x12\xb9\x02\n\x0fUpdateFramework\x12?.google.cloud.cloudsecuritycompliance.v1.UpdateFrameworkRequest\x1a\x32.google.cloud.cloudsecuritycompliance.v1.Framework\"\xb0\x01\xda\x41\x15\x66ramework,update_mask\x82\xd3\xe4\x93\x02\x91\x01\x32=/v1/{framework.name=organizations/*/locations/*/frameworks/*}:\tframeworkZE28/v1/{framework.name=projects/*/locations/*/frameworks/*}:\tframework\x12\xe0\x01\n\x0f\x44\x65leteFramework\x12?.google.cloud.cloudsecuritycompliance.v1.DeleteFrameworkRequest\x1a\x16.google.protobuf.Empty\"t\xda\x41\x04name\x82\xd3\xe4\x93\x02g*3/v1/{name=organizations/*/locations/*/frameworks/*}Z0*./v1/{name=projects/*/locations/*/frameworks/*}\x12\x98\x02\n\x11ListCloudControls\x12\x41.google.cloud.cloudsecuritycompliance.v1.ListCloudControlsRequest\x1a\x42.google.cloud.cloudsecuritycompliance.v1.ListCloudControlsResponse\"|\xda\x41\x06parent\x82\xd3\xe4\x93\x02m\x12\x36/v1/{parent=organizations/*/locations/*}/cloudControlsZ3\x12\x31/v1/{parent=projects/*/locations/*}/cloudControls\x12\x85\x02\n\x0fGetCloudControl\x12?.google.cloud.cloudsecuritycompliance.v1.GetCloudControlRequest\x1a\x35.google.cloud.cloudsecuritycompliance.v1.CloudControl\"z\xda\x41\x04name\x82\xd3\xe4\x93\x02m\x12\x36/v1/{name=organizations/*/locations/*/cloudControls/*}Z3\x12\x31/v1/{name=projects/*/locations/*/cloudControls/*}\x12\xcc\x02\n\x12\x43reateCloudControl\x12\x42.google.cloud.cloudsecuritycompliance.v1.CreateCloudControlRequest\x1a\x35.google.cloud.cloudsecuritycompliance.v1.CloudControl\"\xba\x01\xda\x41%parent,cloud_control,cloud_control_id\x82\xd3\xe4\x93\x02\x8b\x01\"6/v1/{parent=organizations/*/locations/*}/cloudControls:\rcloud_controlZB\"1/v1/{parent=projects/*/locations/*}/cloudControls:\rcloud_control\x12\xdc\x02\n\x12UpdateCloudControl\x12\x42.google.cloud.cloudsecuritycompliance.v1.UpdateCloudControlRequest\x1a\x35.google.cloud.cloudsecuritycompliance.v1.CloudControl\"\xca\x01\xda\x41\x19\x63loud_control,update_mask\x82\xd3\xe4\x93\x02\xa7\x01\x32\x44/v1/{cloud_control.name=organizations/*/locations/*/cloudControls/*}:\rcloud_controlZP2?/v1/{cloud_control.name=projects/*/locations/*/cloudControls/*}:\rcloud_control\x12\xec\x01\n\x12\x44\x65leteCloudControl\x12\x42.google.cloud.cloudsecuritycompliance.v1.DeleteCloudControlRequest\x1a\x16.google.protobuf.Empty\"z\xda\x41\x04name\x82\xd3\xe4\x93\x02m*6/v1/{name=organizations/*/locations/*/cloudControls/*}Z3*1/v1/{name=projects/*/locations/*/cloudControls/*}\x1aZ\xca\x41&cloudsecuritycompliance.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xa4\x02\n+com.google.cloud.cloudsecuritycompliance.v1B\x0b\x43onfigProtoP\x01Zecloud.google.com/go/cloudsecuritycompliance/apiv1/cloudsecuritycompliancepb;cloudsecuritycompliancepb\xaa\x02\'Google.Cloud.CloudSecurityCompliance.V1\xca\x02\'Google\\Cloud\\CloudSecurityCompliance\\V1\xea\x02*Google::Cloud::CloudSecurityCompliance::V1b\x06proto3" pool = ::Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) diff --git a/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloudsecuritycompliance/v1/deployment_pb.rb b/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloudsecuritycompliance/v1/deployment_pb.rb index e93e9768d216..ed79434c5c14 100644 --- a/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloudsecuritycompliance/v1/deployment_pb.rb +++ b/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloudsecuritycompliance/v1/deployment_pb.rb @@ -14,7 +14,7 @@ require 'google/protobuf/timestamp_pb' -descriptor_data = "\n8google/cloud/cloudsecuritycompliance/v1/deployment.proto\x12\'google.cloud.cloudsecuritycompliance.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x34google/cloud/cloudsecuritycompliance/v1/common.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xd2\x07\n\x13\x46rameworkDeployment\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x62\n\x16target_resource_config\x18\x02 \x01(\x0b\x32=.google.cloud.cloudsecuritycompliance.v1.TargetResourceConfigB\x03\xe0\x41\x02\x12%\n\x18\x63omputed_target_resource\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12S\n\tframework\x18\x04 \x01(\x0b\x32;.google.cloud.cloudsecuritycompliance.v1.FrameworkReferenceB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x62\n\x16\x63loud_control_metadata\x18\x06 \x03(\x0b\x32=.google.cloud.cloudsecuritycompliance.v1.CloudControlMetadataB\x03\xe0\x41\x02\x12W\n\x10\x64\x65ployment_state\x18\x07 \x01(\x0e\x32\x38.google.cloud.cloudsecuritycompliance.v1.DeploymentStateB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x11\n\x04\x65tag\x18\x0b \x01(\tB\x03\xe0\x41\x01\x12)\n\x1ctarget_resource_display_name\x18\r \x01(\tB\x03\xe0\x41\x03\x12z\n#cloud_control_deployment_references\x18\x0e \x03(\x0b\x32H.google.cloud.cloudsecuritycompliance.v1.CloudControlDeploymentReferenceB\x03\xe0\x41\x03:\xca\x01\xea\x41\xc6\x01\n:cloudsecuritycompliance.googleapis.com/FrameworkDeployment\x12]organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}*\x14\x66rameworkDeployments2\x13\x66rameworkDeployment\"\xe9\x07\n\x16\x43loudControlDeployment\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x62\n\x16target_resource_config\x18\x02 \x01(\x0b\x32=.google.cloud.cloudsecuritycompliance.v1.TargetResourceConfigB\x03\xe0\x41\x02\x12\x1c\n\x0ftarget_resource\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x62\n\x16\x63loud_control_metadata\x18\x04 \x01(\x0b\x32=.google.cloud.cloudsecuritycompliance.v1.CloudControlMetadataB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12W\n\x10\x64\x65ployment_state\x18\x06 \x01(\x0e\x32\x38.google.cloud.cloudsecuritycompliance.v1.DeploymentStateB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x11\n\x04\x65tag\x18\t \x01(\tB\x03\xe0\x41\x01\x12g\n#parameter_substituted_cloud_control\x18\n \x01(\x0b\x32\x35.google.cloud.cloudsecuritycompliance.v1.CloudControlB\x03\xe0\x41\x03\x12s\n\x1f\x66ramework_deployment_references\x18\x0b \x03(\x0b\x32\x45.google.cloud.cloudsecuritycompliance.v1.FrameworkDeploymentReferenceB\x03\xe0\x41\x03\x12)\n\x1ctarget_resource_display_name\x18\x0c \x01(\tB\x03\xe0\x41\x03:\xda\x01\xea\x41\xd6\x01\n=cloudsecuritycompliance.googleapis.com/CloudControlDeployment\x12\x64organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}*\x17\x63loudControlDeployments2\x16\x63loudControlDeployment\"\xc9\x01\n\x14TargetResourceConfig\x12\'\n\x18\x65xisting_target_resource\x18\x01 \x01(\tB\x03\xe0\x41\x01H\x00\x12u\n\x1ftarget_resource_creation_config\x18\x02 \x01(\x0b\x32\x45.google.cloud.cloudsecuritycompliance.v1.TargetResourceCreationConfigB\x03\xe0\x41\x01H\x00\x42\x11\n\x0fresource_config\"\x88\x02\n\x1cTargetResourceCreationConfig\x12\x64\n\x16\x66older_creation_config\x18\x01 \x01(\x0b\x32=.google.cloud.cloudsecuritycompliance.v1.FolderCreationConfigB\x03\xe0\x41\x01H\x00\x12\x66\n\x17project_creation_config\x18\x02 \x01(\x0b\x32>.google.cloud.cloudsecuritycompliance.v1.ProjectCreationConfigB\x03\xe0\x41\x01H\x00\x42\x1a\n\x18resource_creation_config\"M\n\x14\x46olderCreationConfig\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12 \n\x13\x66older_display_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\"p\n\x15ProjectCreationConfig\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12!\n\x14project_display_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x1f\n\x12\x62illing_account_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\xd1\x01\n\x14\x43loudControlMetadata\x12`\n\x15\x63loud_control_details\x18\x01 \x01(\x0b\x32<.google.cloud.cloudsecuritycompliance.v1.CloudControlDetailsB\x03\xe0\x41\x02\x12W\n\x10\x65nforcement_mode\x18\x02 \x01(\x0e\x32\x38.google.cloud.cloudsecuritycompliance.v1.EnforcementModeB\x03\xe0\x41\x02\"\xfd\x01\n CreateFrameworkDeploymentRequest\x12R\n\x06parent\x18\x01 \x01(\tBB\xe0\x41\x02\xfa\x41<\x12:cloudsecuritycompliance.googleapis.com/FrameworkDeployment\x12$\n\x17\x66ramework_deployment_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12_\n\x14\x66ramework_deployment\x18\x03 \x01(\x0b\x32<.google.cloud.cloudsecuritycompliance.v1.FrameworkDeploymentB\x03\xe0\x41\x02\"\x87\x01\n DeleteFrameworkDeploymentRequest\x12P\n\x04name\x18\x01 \x01(\tBB\xe0\x41\x02\xfa\x41<\n:cloudsecuritycompliance.googleapis.com/FrameworkDeployment\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\"q\n\x1dGetFrameworkDeploymentRequest\x12P\n\x04name\x18\x01 \x01(\tBB\xe0\x41\x02\xfa\x41<\n:cloudsecuritycompliance.googleapis.com/FrameworkDeployment\"\xd2\x01\n\x1fListFrameworkDeploymentsRequest\x12R\n\x06parent\x18\x01 \x01(\tBB\xe0\x41\x02\xfa\x41<\x12:cloudsecuritycompliance.googleapis.com/FrameworkDeployment\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x98\x01\n ListFrameworkDeploymentsResponse\x12[\n\x15\x66ramework_deployments\x18\x01 \x03(\x0b\x32<.google.cloud.cloudsecuritycompliance.v1.FrameworkDeployment\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"w\n GetCloudControlDeploymentRequest\x12S\n\x04name\x18\x01 \x01(\tBE\xe0\x41\x02\xfa\x41?\n=cloudsecuritycompliance.googleapis.com/CloudControlDeployment\"\xd8\x01\n\"ListCloudControlDeploymentsRequest\x12U\n\x06parent\x18\x01 \x01(\tBE\xe0\x41\x02\xfa\x41?\x12=cloudsecuritycompliance.googleapis.com/CloudControlDeployment\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xa2\x01\n#ListCloudControlDeploymentsResponse\x12\x62\n\x19\x63loud_control_deployments\x18\x01 \x03(\x0b\x32?.google.cloud.cloudsecuritycompliance.v1.CloudControlDeployment\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x8a\x01\n\x1f\x43loudControlDeploymentReference\x12g\n\x18\x63loud_control_deployment\x18\x01 \x01(\tBE\xe0\x41\x03\xfa\x41?\n=cloudsecuritycompliance.googleapis.com/CloudControlDeployment\"\x84\x02\n\x1c\x46rameworkDeploymentReference\x12`\n\x14\x66ramework_deployment\x18\x01 \x01(\tBB\xe0\x41\x03\xfa\x41<\n:cloudsecuritycompliance.googleapis.com/FrameworkDeployment\x12]\n\x13\x66ramework_reference\x18\x02 \x01(\x0b\x32;.google.cloud.cloudsecuritycompliance.v1.FrameworkReferenceB\x03\xe0\x41\x01\x12#\n\x16\x66ramework_display_name\x18\x03 \x01(\tB\x03\xe0\x41\x01*\x9c\x02\n\x0f\x44\x65ploymentState\x12 \n\x1c\x44\x45PLOYMENT_STATE_UNSPECIFIED\x10\x00\x12\x1f\n\x1b\x44\x45PLOYMENT_STATE_VALIDATING\x10\x01\x12\x1d\n\x19\x44\x45PLOYMENT_STATE_CREATING\x10\x02\x12\x1d\n\x19\x44\x45PLOYMENT_STATE_DELETING\x10\x03\x12\x1b\n\x17\x44\x45PLOYMENT_STATE_FAILED\x10\x04\x12\x1a\n\x16\x44\x45PLOYMENT_STATE_READY\x10\x05\x12\'\n#DEPLOYMENT_STATE_PARTIALLY_DEPLOYED\x10\x06\x12&\n\"DEPLOYMENT_STATE_PARTIALLY_DELETED\x10\x07\x32\xfd\r\n\nDeployment\x12\xec\x02\n\x19\x43reateFrameworkDeployment\x12I.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkDeploymentRequest\x1a\x1d.google.longrunning.Operation\"\xe4\x01\xca\x41P\n\x13\x46rameworkDeployment\x12\x39google.cloud.cloudsecuritycompliance.v1.OperationMetadata\xda\x41\x33parent,framework_deployment,framework_deployment_id\x82\xd3\xe4\x93\x02U\"=/v1/{parent=organizations/*/locations/*}/frameworkDeployments:\x14\x66ramework_deployment\x12\xa9\x02\n\x19\x44\x65leteFrameworkDeployment\x12I.google.cloud.cloudsecuritycompliance.v1.DeleteFrameworkDeploymentRequest\x1a\x1d.google.longrunning.Operation\"\xa1\x01\xca\x41R\n\x15google.protobuf.Empty\x12\x39google.cloud.cloudsecuritycompliance.v1.OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02?*=/v1/{name=organizations/*/locations/*/frameworkDeployments/*}\x12\xec\x01\n\x16GetFrameworkDeployment\x12\x46.google.cloud.cloudsecuritycompliance.v1.GetFrameworkDeploymentRequest\x1a<.google.cloud.cloudsecuritycompliance.v1.FrameworkDeployment\"L\xda\x41\x04name\x82\xd3\xe4\x93\x02?\x12=/v1/{name=organizations/*/locations/*/frameworkDeployments/*}\x12\xff\x01\n\x18ListFrameworkDeployments\x12H.google.cloud.cloudsecuritycompliance.v1.ListFrameworkDeploymentsRequest\x1aI.google.cloud.cloudsecuritycompliance.v1.ListFrameworkDeploymentsResponse\"N\xda\x41\x06parent\x82\xd3\xe4\x93\x02?\x12=/v1/{parent=organizations/*/locations/*}/frameworkDeployments\x12\xf8\x01\n\x19GetCloudControlDeployment\x12I.google.cloud.cloudsecuritycompliance.v1.GetCloudControlDeploymentRequest\x1a?.google.cloud.cloudsecuritycompliance.v1.CloudControlDeployment\"O\xda\x41\x04name\x82\xd3\xe4\x93\x02\x42\x12@/v1/{name=organizations/*/locations/*/cloudControlDeployments/*}\x12\x8b\x02\n\x1bListCloudControlDeployments\x12K.google.cloud.cloudsecuritycompliance.v1.ListCloudControlDeploymentsRequest\x1aL.google.cloud.cloudsecuritycompliance.v1.ListCloudControlDeploymentsResponse\"Q\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x42\x12@/v1/{parent=organizations/*/locations/*}/cloudControlDeployments\x1aZ\xca\x41&cloudsecuritycompliance.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xa8\x02\n+com.google.cloud.cloudsecuritycompliance.v1B\x0f\x44\x65ploymentProtoP\x01Zecloud.google.com/go/cloudsecuritycompliance/apiv1/cloudsecuritycompliancepb;cloudsecuritycompliancepb\xaa\x02\'Google.Cloud.CloudSecurityCompliance.V1\xca\x02\'Google\\Cloud\\CloudSecurityCompliance\\V1\xea\x02*Google::Cloud::CloudSecurityCompliance::V1b\x06proto3" +descriptor_data = "\n8google/cloud/cloudsecuritycompliance/v1/deployment.proto\x12\'google.cloud.cloudsecuritycompliance.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x34google/cloud/cloudsecuritycompliance/v1/common.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa7\x08\n\x13\x46rameworkDeployment\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x62\n\x16target_resource_config\x18\x02 \x01(\x0b\x32=.google.cloud.cloudsecuritycompliance.v1.TargetResourceConfigB\x03\xe0\x41\x02\x12%\n\x18\x63omputed_target_resource\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12S\n\tframework\x18\x04 \x01(\x0b\x32;.google.cloud.cloudsecuritycompliance.v1.FrameworkReferenceB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x62\n\x16\x63loud_control_metadata\x18\x06 \x03(\x0b\x32=.google.cloud.cloudsecuritycompliance.v1.CloudControlMetadataB\x03\xe0\x41\x02\x12W\n\x10\x64\x65ployment_state\x18\x07 \x01(\x0e\x32\x38.google.cloud.cloudsecuritycompliance.v1.DeploymentStateB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x11\n\x04\x65tag\x18\x0b \x01(\tB\x03\xe0\x41\x01\x12)\n\x1ctarget_resource_display_name\x18\r \x01(\tB\x03\xe0\x41\x03\x12z\n#cloud_control_deployment_references\x18\x0e \x03(\x0b\x32H.google.cloud.cloudsecuritycompliance.v1.CloudControlDeploymentReferenceB\x03\xe0\x41\x03:\x9f\x02\xea\x41\x9b\x02\n:cloudsecuritycompliance.googleapis.com/FrameworkDeployment\x12]organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}\x12Sprojects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}*\x14\x66rameworkDeployments2\x13\x66rameworkDeployment\"\xc5\x08\n\x16\x43loudControlDeployment\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x62\n\x16target_resource_config\x18\x02 \x01(\x0b\x32=.google.cloud.cloudsecuritycompliance.v1.TargetResourceConfigB\x03\xe0\x41\x02\x12\x1c\n\x0ftarget_resource\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x62\n\x16\x63loud_control_metadata\x18\x04 \x01(\x0b\x32=.google.cloud.cloudsecuritycompliance.v1.CloudControlMetadataB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12W\n\x10\x64\x65ployment_state\x18\x06 \x01(\x0e\x32\x38.google.cloud.cloudsecuritycompliance.v1.DeploymentStateB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x11\n\x04\x65tag\x18\t \x01(\tB\x03\xe0\x41\x01\x12g\n#parameter_substituted_cloud_control\x18\n \x01(\x0b\x32\x35.google.cloud.cloudsecuritycompliance.v1.CloudControlB\x03\xe0\x41\x03\x12s\n\x1f\x66ramework_deployment_references\x18\x0b \x03(\x0b\x32\x45.google.cloud.cloudsecuritycompliance.v1.FrameworkDeploymentReferenceB\x03\xe0\x41\x03\x12)\n\x1ctarget_resource_display_name\x18\x0c \x01(\tB\x03\xe0\x41\x03:\xb6\x02\xea\x41\xb2\x02\n=cloudsecuritycompliance.googleapis.com/CloudControlDeployment\x12\x64organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}\x12Zprojects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}*\x17\x63loudControlDeployments2\x16\x63loudControlDeployment\"\xc9\x01\n\x14TargetResourceConfig\x12\'\n\x18\x65xisting_target_resource\x18\x01 \x01(\tB\x03\xe0\x41\x01H\x00\x12u\n\x1ftarget_resource_creation_config\x18\x02 \x01(\x0b\x32\x45.google.cloud.cloudsecuritycompliance.v1.TargetResourceCreationConfigB\x03\xe0\x41\x01H\x00\x42\x11\n\x0fresource_config\"\x88\x02\n\x1cTargetResourceCreationConfig\x12\x64\n\x16\x66older_creation_config\x18\x01 \x01(\x0b\x32=.google.cloud.cloudsecuritycompliance.v1.FolderCreationConfigB\x03\xe0\x41\x01H\x00\x12\x66\n\x17project_creation_config\x18\x02 \x01(\x0b\x32>.google.cloud.cloudsecuritycompliance.v1.ProjectCreationConfigB\x03\xe0\x41\x01H\x00\x42\x1a\n\x18resource_creation_config\"M\n\x14\x46olderCreationConfig\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12 \n\x13\x66older_display_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\"p\n\x15ProjectCreationConfig\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12!\n\x14project_display_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x1f\n\x12\x62illing_account_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\xd1\x01\n\x14\x43loudControlMetadata\x12`\n\x15\x63loud_control_details\x18\x01 \x01(\x0b\x32<.google.cloud.cloudsecuritycompliance.v1.CloudControlDetailsB\x03\xe0\x41\x02\x12W\n\x10\x65nforcement_mode\x18\x02 \x01(\x0e\x32\x38.google.cloud.cloudsecuritycompliance.v1.EnforcementModeB\x03\xe0\x41\x02\"\xfd\x01\n CreateFrameworkDeploymentRequest\x12R\n\x06parent\x18\x01 \x01(\tBB\xe0\x41\x02\xfa\x41<\x12:cloudsecuritycompliance.googleapis.com/FrameworkDeployment\x12$\n\x17\x66ramework_deployment_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12_\n\x14\x66ramework_deployment\x18\x03 \x01(\x0b\x32<.google.cloud.cloudsecuritycompliance.v1.FrameworkDeploymentB\x03\xe0\x41\x02\"\x87\x01\n DeleteFrameworkDeploymentRequest\x12P\n\x04name\x18\x01 \x01(\tBB\xe0\x41\x02\xfa\x41<\n:cloudsecuritycompliance.googleapis.com/FrameworkDeployment\x12\x11\n\x04\x65tag\x18\x02 \x01(\tB\x03\xe0\x41\x01\"q\n\x1dGetFrameworkDeploymentRequest\x12P\n\x04name\x18\x01 \x01(\tBB\xe0\x41\x02\xfa\x41<\n:cloudsecuritycompliance.googleapis.com/FrameworkDeployment\"\xd2\x01\n\x1fListFrameworkDeploymentsRequest\x12R\n\x06parent\x18\x01 \x01(\tBB\xe0\x41\x02\xfa\x41<\x12:cloudsecuritycompliance.googleapis.com/FrameworkDeployment\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x98\x01\n ListFrameworkDeploymentsResponse\x12[\n\x15\x66ramework_deployments\x18\x01 \x03(\x0b\x32<.google.cloud.cloudsecuritycompliance.v1.FrameworkDeployment\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"w\n GetCloudControlDeploymentRequest\x12S\n\x04name\x18\x01 \x01(\tBE\xe0\x41\x02\xfa\x41?\n=cloudsecuritycompliance.googleapis.com/CloudControlDeployment\"\xd8\x01\n\"ListCloudControlDeploymentsRequest\x12U\n\x06parent\x18\x01 \x01(\tBE\xe0\x41\x02\xfa\x41?\x12=cloudsecuritycompliance.googleapis.com/CloudControlDeployment\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xa2\x01\n#ListCloudControlDeploymentsResponse\x12\x62\n\x19\x63loud_control_deployments\x18\x01 \x03(\x0b\x32?.google.cloud.cloudsecuritycompliance.v1.CloudControlDeployment\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x8a\x01\n\x1f\x43loudControlDeploymentReference\x12g\n\x18\x63loud_control_deployment\x18\x01 \x01(\tBE\xe0\x41\x03\xfa\x41?\n=cloudsecuritycompliance.googleapis.com/CloudControlDeployment\"\x84\x02\n\x1c\x46rameworkDeploymentReference\x12`\n\x14\x66ramework_deployment\x18\x01 \x01(\tBB\xe0\x41\x03\xfa\x41<\n:cloudsecuritycompliance.googleapis.com/FrameworkDeployment\x12]\n\x13\x66ramework_reference\x18\x02 \x01(\x0b\x32;.google.cloud.cloudsecuritycompliance.v1.FrameworkReferenceB\x03\xe0\x41\x01\x12#\n\x16\x66ramework_display_name\x18\x03 \x01(\tB\x03\xe0\x41\x01*\xbb\x02\n\x0f\x44\x65ploymentState\x12 \n\x1c\x44\x45PLOYMENT_STATE_UNSPECIFIED\x10\x00\x12\x1f\n\x1b\x44\x45PLOYMENT_STATE_VALIDATING\x10\x01\x12\x1d\n\x19\x44\x45PLOYMENT_STATE_CREATING\x10\x02\x12\x1d\n\x19\x44\x45PLOYMENT_STATE_DELETING\x10\x03\x12\x1d\n\x19\x44\x45PLOYMENT_STATE_UPDATING\x10\x08\x12\x1b\n\x17\x44\x45PLOYMENT_STATE_FAILED\x10\x04\x12\x1a\n\x16\x44\x45PLOYMENT_STATE_READY\x10\x05\x12\'\n#DEPLOYMENT_STATE_PARTIALLY_DEPLOYED\x10\x06\x12&\n\"DEPLOYMENT_STATE_PARTIALLY_DELETED\x10\x07\x32\x88\x11\n\nDeployment\x12\xbf\x03\n\x19\x43reateFrameworkDeployment\x12I.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkDeploymentRequest\x1a\x1d.google.longrunning.Operation\"\xb7\x02\xca\x41P\n\x13\x46rameworkDeployment\x12\x39google.cloud.cloudsecuritycompliance.v1.OperationMetadata\xda\x41\x33parent,framework_deployment,framework_deployment_id\x82\xd3\xe4\x93\x02\xa7\x01\"=/v1/{parent=organizations/*/locations/*}/frameworkDeployments:\x14\x66ramework_deploymentZP\"8/v1/{parent=projects/*/locations/*}/frameworkDeployments:\x14\x66ramework_deployment\x12\xe5\x02\n\x19\x44\x65leteFrameworkDeployment\x12I.google.cloud.cloudsecuritycompliance.v1.DeleteFrameworkDeploymentRequest\x1a\x1d.google.longrunning.Operation\"\xdd\x01\xca\x41R\n\x15google.protobuf.Empty\x12\x39google.cloud.cloudsecuritycompliance.v1.OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02{*=/v1/{name=organizations/*/locations/*/frameworkDeployments/*}Z:*8/v1/{name=projects/*/locations/*/frameworkDeployments/*}\x12\xa9\x02\n\x16GetFrameworkDeployment\x12\x46.google.cloud.cloudsecuritycompliance.v1.GetFrameworkDeploymentRequest\x1a<.google.cloud.cloudsecuritycompliance.v1.FrameworkDeployment\"\x88\x01\xda\x41\x04name\x82\xd3\xe4\x93\x02{\x12=/v1/{name=organizations/*/locations/*/frameworkDeployments/*}Z:\x12\x38/v1/{name=projects/*/locations/*/frameworkDeployments/*}\x12\xbc\x02\n\x18ListFrameworkDeployments\x12H.google.cloud.cloudsecuritycompliance.v1.ListFrameworkDeploymentsRequest\x1aI.google.cloud.cloudsecuritycompliance.v1.ListFrameworkDeploymentsResponse\"\x8a\x01\xda\x41\x06parent\x82\xd3\xe4\x93\x02{\x12=/v1/{parent=organizations/*/locations/*}/frameworkDeploymentsZ:\x12\x38/v1/{parent=projects/*/locations/*}/frameworkDeployments\x12\xb9\x02\n\x19GetCloudControlDeployment\x12I.google.cloud.cloudsecuritycompliance.v1.GetCloudControlDeploymentRequest\x1a?.google.cloud.cloudsecuritycompliance.v1.CloudControlDeployment\"\x8f\x01\xda\x41\x04name\x82\xd3\xe4\x93\x02\x81\x01\x12@/v1/{name=organizations/*/locations/*/cloudControlDeployments/*}Z=\x12;/v1/{name=projects/*/locations/*/cloudControlDeployments/*}\x12\xcc\x02\n\x1bListCloudControlDeployments\x12K.google.cloud.cloudsecuritycompliance.v1.ListCloudControlDeploymentsRequest\x1aL.google.cloud.cloudsecuritycompliance.v1.ListCloudControlDeploymentsResponse\"\x91\x01\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x81\x01\x12@/v1/{parent=organizations/*/locations/*}/cloudControlDeploymentsZ=\x12;/v1/{parent=projects/*/locations/*}/cloudControlDeployments\x1aZ\xca\x41&cloudsecuritycompliance.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xa8\x02\n+com.google.cloud.cloudsecuritycompliance.v1B\x0f\x44\x65ploymentProtoP\x01Zecloud.google.com/go/cloudsecuritycompliance/apiv1/cloudsecuritycompliancepb;cloudsecuritycompliancepb\xaa\x02\'Google.Cloud.CloudSecurityCompliance.V1\xca\x02\'Google\\Cloud\\CloudSecurityCompliance\\V1\xea\x02*Google::Cloud::CloudSecurityCompliance::V1b\x06proto3" pool = ::Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) diff --git a/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloudsecuritycompliance/v1/monitoring_pb.rb b/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloudsecuritycompliance/v1/monitoring_pb.rb index af3a8f719602..5eaaaa4c0538 100644 --- a/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloudsecuritycompliance/v1/monitoring_pb.rb +++ b/google-cloud-cloud_security_compliance-v1/lib/google/cloud/cloudsecuritycompliance/v1/monitoring_pb.rb @@ -9,11 +9,12 @@ require 'google/api/field_behavior_pb' require 'google/api/resource_pb' require 'google/cloud/cloudsecuritycompliance/v1/common_pb' +require 'google/protobuf/duration_pb' require 'google/protobuf/timestamp_pb' require 'google/type/interval_pb' -descriptor_data = "\n8google/cloud/cloudsecuritycompliance/v1/monitoring.proto\x12\'google.cloud.cloudsecuritycompliance.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x34google/cloud/cloudsecuritycompliance/v1/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1agoogle/type/interval.proto\"\xca\x01\n\'ListFrameworkComplianceSummariesRequest\x12Y\n\x06parent\x18\x01 \x01(\tBI\xe0\x41\x02\xfa\x41\x43\x12\x41\x63loudsecuritycompliance.googleapis.com/FrameworkComplianceSummary\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\xb5\x01\n(ListFrameworkComplianceSummariesResponse\x12k\n\x1e\x66ramework_compliance_summaries\x18\x01 \x03(\x0b\x32\x43.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary\x12\x1c\n\x0fnext_page_token\x18\x02 \x01(\tB\x03\xe0\x41\x03\"\xf6\x08\n\x19\x46rameworkComplianceReport\x12\x11\n\tframework\x18\x01 \x01(\t\x12\x1d\n\x15\x66ramework_description\x18\x02 \x01(\t\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x65\n\x1a\x63ontrol_assessment_details\x18\x04 \x01(\x0b\x32\x41.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails\x12X\n\x0e\x66ramework_type\x18\x05 \x01(\x0e\x32@.google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType\x12Y\n\x19supported_cloud_providers\x18\x06 \x03(\x0e\x32\x36.google.cloud.cloudsecuritycompliance.v1.CloudProvider\x12X\n\x14\x66ramework_categories\x18\x07 \x03(\x0e\x32:.google.cloud.cloudsecuritycompliance.v1.FrameworkCategory\x12#\n\x16\x66ramework_display_name\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04name\x18\t \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x11major_revision_id\x18\n \x01(\x03\x12\x19\n\x11minor_revision_id\x18\x0b \x01(\x03\x12_\n\x17target_resource_details\x18\x0c \x03(\x0b\x32>.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails:\xab\x03\xea\x41\xa7\x03\n@cloudsecuritycompliance.googleapis.com/FrameworkComplianceReport\x12`projects/{project}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}\x12^folders/{folder}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}\x12jorganizations/{organization}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}*\x1a\x66rameworkComplianceReports2\x19\x66rameworkComplianceReport\"\xb2\x01\n%FetchFrameworkComplianceReportRequest\x12V\n\x04name\x18\x01 \x01(\tBH\xe0\x41\x02\xfa\x41\x42\n@cloudsecuritycompliance.googleapis.com/FrameworkComplianceReport\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\"\xe7\x01\n\x1bListFindingSummariesRequest\x12M\n\x06parent\x18\x01 \x01(\tB=\xe0\x41\x02\xfa\x41\x37\x12\x35\x63loudsecuritycompliance.googleapis.com/FindingSummary\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x33\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x05\x18\x01\xe0\x41\x01\"\x90\x01\n\x1cListFindingSummariesResponse\x12R\n\x11\x66inding_summaries\x18\x01 \x03(\x0b\x32\x37.google.cloud.cloudsecuritycompliance.v1.FindingSummary\x12\x1c\n\x0fnext_page_token\x18\x02 \x01(\tB\x03\xe0\x41\x03\"\xfb\x01\n%ListControlComplianceSummariesRequest\x12W\n\x06parent\x18\x01 \x01(\tBG\xe0\x41\x02\xfa\x41\x41\x12?cloudsecuritycompliance.googleapis.com/ControlComplianceSummary\x12\x33\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x05\x18\x01\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xaf\x01\n&ListControlComplianceSummariesResponse\x12g\n\x1c\x63ontrol_compliance_summaries\x18\x01 \x03(\x0b\x32\x41.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary\x12\x1c\n\x0fnext_page_token\x18\x02 \x01(\tB\x03\xe0\x41\x03\"\xc6\x01\n)AggregateFrameworkComplianceReportRequest\x12V\n\x04name\x18\x01 \x01(\tBH\xe0\x41\x02\xfa\x41\x42\n@cloudsecuritycompliance.googleapis.com/FrameworkComplianceReport\x12,\n\x08interval\x18\x02 \x01(\x0b\x32\x15.google.type.IntervalB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x98\x01\n*AggregateFrameworkComplianceReportResponse\x12j\n\x1d\x61ggregated_compliance_reports\x18\x01 \x03(\x0b\x32\x43.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport\"\x90\x01\n\x18\x43ontrolAssessmentDetails\x12\x18\n\x10passing_controls\x18\x01 \x01(\x05\x12\x18\n\x10\x66\x61iling_controls\x18\x02 \x01(\x05\x12!\n\x19\x61ssessed_passing_controls\x18\x03 \x01(\x05\x12\x1d\n\x15not_assessed_controls\x18\x04 \x01(\x05\"\xaf\x08\n\x1a\x46rameworkComplianceSummary\x12\x11\n\tframework\x18\x01 \x01(\t\x12\x65\n\x1a\x63ontrol_assessment_details\x18\x02 \x01(\x0b\x32\x41.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails\x12X\n\x0e\x66ramework_type\x18\x03 \x01(\x0e\x32@.google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType\x12Y\n\x19supported_cloud_providers\x18\x04 \x03(\x0e\x32\x36.google.cloud.cloudsecuritycompliance.v1.CloudProvider\x12X\n\x14\x66ramework_categories\x18\x05 \x03(\x0e\x32:.google.cloud.cloudsecuritycompliance.v1.FrameworkCategory\x12#\n\x16\x66ramework_display_name\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04name\x18\x07 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x11major_revision_id\x18\x08 \x01(\x03\x12\x19\n\x11minor_revision_id\x18\t \x01(\x03\x12_\n\x17target_resource_details\x18\n \x03(\x0b\x32>.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails:\xb8\x03\xea\x41\xb4\x03\nAcloudsecuritycompliance.googleapis.com/FrameworkComplianceSummary\x12\x63projects/{project}/locations/{location}/frameworkComplianceSummaries/{framework_compliance_summary}\x12\x61\x66olders/{folder}/locations/{location}/frameworkComplianceSummaries/{framework_compliance_summary}\x12morganizations/{organization}/locations/{location}/frameworkComplianceSummaries/{framework_compliance_summary}*\x1c\x66rameworkComplianceSummaries2\x1a\x66rameworkComplianceSummary\"\x8a\x05\n\x0e\x46indingSummary\x12\x18\n\x10\x66inding_category\x18\x01 \x01(\t\x12L\n\rfinding_class\x18\x02 \x01(\x0e\x32\x35.google.cloud.cloudsecuritycompliance.v1.FindingClass\x12\x43\n\x08severity\x18\x03 \x01(\x0e\x32\x31.google.cloud.cloudsecuritycompliance.v1.Severity\x12\x15\n\rfinding_count\x18\x04 \x01(\x03\x12\x34\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1f\n\x12related_frameworks\x18\x06 \x03(\tB\x03\xe0\x41\x01\x12\x11\n\x04name\x18\x07 \x01(\tB\x03\xe0\x41\x08:\xc9\x02\xea\x41\xc5\x02\n5cloudsecuritycompliance.googleapis.com/FindingSummary\x12Jprojects/{project}/locations/{location}/findingSummaries/{finding_summary}\x12Hfolders/{folder}/locations/{location}/findingSummaries/{finding_summary}\x12Torganizations/{organization}/locations/{location}/findingSummaries/{finding_summary}*\x10\x66indingSummaries2\x0e\x66indingSummary\"\x9a\t\n\x18\x43ontrolComplianceSummary\x12\x0f\n\x07\x63ontrol\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12_\n\x18overall_evaluation_state\x18\x04 \x01(\x0e\x32\x38.google.cloud.cloudsecuritycompliance.v1.EvaluationStateB\x03\xe0\x41\x03\x12\x1c\n\x14total_findings_count\x18\x05 \x01(\x05\x12\x1d\n\x15\x63ompliance_frameworks\x18\x06 \x03(\t\x12R\n\x10similar_controls\x18\x07 \x03(\x0b\x32\x38.google.cloud.cloudsecuritycompliance.v1.SimilarControls\x12Z\n\x15\x63loud_control_reports\x18\x08 \x03(\x0b\x32;.google.cloud.cloudsecuritycompliance.v1.CloudControlReport\x12q\n\x1b\x63ontrol_responsibility_type\x18\t \x01(\x0e\x32L.google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType\x12\x17\n\x0fis_fake_control\x18\n \x01(\x08\x12\x11\n\x04name\x18\x0b \x01(\tB\x03\xe0\x41\x08:\xd4\x04\xea\x41\xd0\x04\n?cloudsecuritycompliance.googleapis.com/ControlComplianceSummary\x12\x98\x01projects/{project}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}/controlComplianceSummaries/{control_compliance_summary}\x12\x96\x01\x66olders/{folder}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}/controlComplianceSummaries/{control_compliance_summary}\x12\xa2\x01organizations/{organization}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}/controlComplianceSummaries/{control_compliance_summary}*\x1a\x63ontrolComplianceSummaries2\x18\x63ontrolComplianceSummary\"\x98\x07\n\x12\x43loudControlReport\x12\x7f\n\'manual_cloud_control_assessment_details\x18\r \x01(\x0b\x32L.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetailsH\x00\x12r\n cloud_control_assessment_details\x18\x0e \x01(\x0b\x32\x46.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetailsH\x00\x12\x15\n\rcloud_control\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x12\n\ncategories\x18\x06 \x03(\t\x12R\n\x10similar_controls\x18\t \x03(\x0b\x32\x38.google.cloud.cloudsecuritycompliance.v1.SimilarControls\x12V\n\x12\x63loud_control_type\x18\n \x01(\x0e\x32:.google.cloud.cloudsecuritycompliance.v1.CloudControl.Type\x12\x18\n\x10\x66inding_category\x18\x0b \x01(\t\x12<\n\x05rules\x18\x0c \x03(\x0b\x32-.google.cloud.cloudsecuritycompliance.v1.Rule\x12K\n\x10\x66inding_severity\x18\x0f \x01(\x0e\x32\x31.google.cloud.cloudsecuritycompliance.v1.Severity\x12R\n\x10\x65nforcement_mode\x18\x10 \x01(\x0e\x32\x38.google.cloud.cloudsecuritycompliance.v1.EnforcementMode\x12 \n\x18\x63loud_control_deployment\x18\x11 \x01(\t\x12\x19\n\x11major_revision_id\x18\x12 \x01(\x03\x12\x19\n\x11minor_revision_id\x18\x13 \x01(\x03\x12$\n\x1c\x66ramework_major_revision_ids\x18\x14 \x03(\x03\x42\x14\n\x12\x61ssessment_details\"I\n#ManualCloudControlAssessmentDetails\x12\"\n\x1amanual_cloud_control_guide\x18\x01 \x03(\t\"\x90\x01\n\x1d\x43loudControlAssessmentDetails\x12\x16\n\x0e\x66indings_count\x18\x01 \x01(\x05\x12W\n\x10\x65valuation_state\x18\x02 \x01(\x0e\x32\x38.google.cloud.cloudsecuritycompliance.v1.EvaluationStateB\x03\xe0\x41\x03\"8\n\x0fSimilarControls\x12\x11\n\tframework\x18\x01 \x01(\t\x12\x12\n\ncontrol_id\x18\x02 \x01(\t\"\xb4\x01\n\x1a\x41ggregatedComplianceReport\x12\x65\n\x1a\x63ontrol_assessment_details\x18\x01 \x01(\x0b\x32\x41.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails\x12/\n\x0breport_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x8c\x02\n\x15TargetResourceDetails\x12\x1c\n\x14\x66ramework_deployment\x18\x01 \x01(\t\x12$\n\x1ctarget_resource_display_name\x18\x02 \x01(\t\x12\x17\n\x0ftarget_resource\x18\x03 \x01(\t\x12/\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x19\n\x11major_revision_id\x18\x06 \x01(\x03\x12\x19\n\x11minor_revision_id\x18\x07 \x01(\x03*\x90\x01\n\x0f\x45valuationState\x12 \n\x1c\x45VALUATION_STATE_UNSPECIFIED\x10\x00\x12\x1b\n\x17\x45VALUATION_STATE_PASSED\x10\x01\x12\x1b\n\x17\x45VALUATION_STATE_FAILED\x10\x02\x12!\n\x1d\x45VALUATION_STATE_NOT_ASSESSED\x10\x03*\xd9\x01\n\x0c\x46indingClass\x12\x1d\n\x19\x46INDING_CLASS_UNSPECIFIED\x10\x00\x12\n\n\x06THREAT\x10\x01\x12\x11\n\rVULNERABILITY\x10\x02\x12\x14\n\x10MISCONFIGURATION\x10\x03\x12\x0f\n\x0bOBSERVATION\x10\x04\x12\r\n\tSCC_ERROR\x10\x05\x12\x15\n\x11POSTURE_VIOLATION\x10\x06\x12\x15\n\x11TOXIC_COMBINATION\x10\x07\x12\x17\n\x13SENSITIVE_DATA_RISK\x10\x08\x12\x0e\n\nCHOKEPOINT\x10\t2\xd5\x11\n\nMonitoring\x12\xa8\x03\n ListFrameworkComplianceSummaries\x12P.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest\x1aQ.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse\"\xde\x01\xda\x41\x06parent\x82\xd3\xe4\x93\x02\xce\x01\x12\x45/v1/{parent=organizations/*/locations/*}/frameworkComplianceSummariesZA\x12?/v1/{parent=folders/*/locations/*}/frameworkComplianceSummariesZB\x12@/v1/{parent=projects/*/locations/*}/frameworkComplianceSummaries\x12\xe0\x02\n\x14ListFindingSummaries\x12\x44.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest\x1a\x45.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse\"\xba\x01\xda\x41\x06parent\x82\xd3\xe4\x93\x02\xaa\x01\x12\x39/v1/{parent=organizations/*/locations/*}/findingSummariesZ5\x12\x33/v1/{parent=folders/*/locations/*}/findingSummariesZ6\x12\x34/v1/{parent=projects/*/locations/*}/findingSummaries\x12\x9f\x03\n\x1e\x46\x65tchFrameworkComplianceReport\x12N.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest\x1a\x42.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport\"\xe8\x01\xda\x41\x04name\x82\xd3\xe4\x93\x02\xda\x01\x12I/v1/{name=organizations/*/locations/*/frameworkComplianceReports/*}:fetchZE\x12\x43/v1/{name=folders/*/locations/*/frameworkComplianceReports/*}:fetchZF\x12\x44/v1/{name=projects/*/locations/*/frameworkComplianceReports/*}:fetch\x12\xf3\x03\n\x1eListControlComplianceSummaries\x12N.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest\x1aO.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse\"\xaf\x02\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x9f\x02\x12`/v1/{parent=organizations/*/locations/*/frameworkComplianceReports/*}/controlComplianceSummariesZ\\\x12Z/v1/{parent=folders/*/locations/*/frameworkComplianceReports/*}/controlComplianceSummariesZ]\x12[/v1/{parent=projects/*/locations/*/frameworkComplianceReports/*}/controlComplianceSummaries\x12\xc4\x03\n\"AggregateFrameworkComplianceReport\x12R.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest\x1aS.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse\"\xf4\x01\xda\x41\x04name\x82\xd3\xe4\x93\x02\xe6\x01\x12M/v1/{name=organizations/*/locations/*/frameworkComplianceReports/*}:aggregateZI\x12G/v1/{name=folders/*/locations/*/frameworkComplianceReports/*}:aggregateZJ\x12H/v1/{name=projects/*/locations/*/frameworkComplianceReports/*}:aggregate\x1aZ\xca\x41&cloudsecuritycompliance.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x89\x03\n+com.google.cloud.cloudsecuritycompliance.v1B\x0fMonitoringProtoP\x01Zecloud.google.com/go/cloudsecuritycompliance/apiv1/cloudsecuritycompliancepb;cloudsecuritycompliancepb\xaa\x02\'Google.Cloud.CloudSecurityCompliance.V1\xca\x02\'Google\\Cloud\\CloudSecurityCompliance\\V1\xea\x02*Google::Cloud::CloudSecurityCompliance::V1\xea\x41^\n5cloudsecuritycompliance.googleapis.com/FolderLocation\x12%folders/{folder}/locations/{location}b\x06proto3" +descriptor_data = "\n8google/cloud/cloudsecuritycompliance/v1/monitoring.proto\x12\'google.cloud.cloudsecuritycompliance.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x34google/cloud/cloudsecuritycompliance/v1/common.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1agoogle/type/interval.proto\"\xa6\x02\n\'ListFrameworkComplianceSummariesRequest\x12Y\n\x06parent\x18\x01 \x01(\tBI\xe0\x41\x02\xfa\x41\x43\x12\x41\x63loudsecuritycompliance.googleapis.com/FrameworkComplianceSummary\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12Z\n\x04view\x18\x05 \x01(\x0e\x32G.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummaryViewB\x03\xe0\x41\x01\"\xb5\x01\n(ListFrameworkComplianceSummariesResponse\x12k\n\x1e\x66ramework_compliance_summaries\x18\x01 \x03(\x0b\x32\x43.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary\x12\x1c\n\x0fnext_page_token\x18\x02 \x01(\tB\x03\xe0\x41\x03\"\xf6\x08\n\x19\x46rameworkComplianceReport\x12\x11\n\tframework\x18\x01 \x01(\t\x12\x1d\n\x15\x66ramework_description\x18\x02 \x01(\t\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x65\n\x1a\x63ontrol_assessment_details\x18\x04 \x01(\x0b\x32\x41.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails\x12X\n\x0e\x66ramework_type\x18\x05 \x01(\x0e\x32@.google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType\x12Y\n\x19supported_cloud_providers\x18\x06 \x03(\x0e\x32\x36.google.cloud.cloudsecuritycompliance.v1.CloudProvider\x12X\n\x14\x66ramework_categories\x18\x07 \x03(\x0e\x32:.google.cloud.cloudsecuritycompliance.v1.FrameworkCategory\x12#\n\x16\x66ramework_display_name\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04name\x18\t \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x11major_revision_id\x18\n \x01(\x03\x12\x19\n\x11minor_revision_id\x18\x0b \x01(\x03\x12_\n\x17target_resource_details\x18\x0c \x03(\x0b\x32>.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails:\xab\x03\xea\x41\xa7\x03\n@cloudsecuritycompliance.googleapis.com/FrameworkComplianceReport\x12`projects/{project}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}\x12^folders/{folder}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}\x12jorganizations/{organization}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}*\x1a\x66rameworkComplianceReports2\x19\x66rameworkComplianceReport\"\xc7\x01\n%FetchFrameworkComplianceReportRequest\x12V\n\x04name\x18\x01 \x01(\tBH\xe0\x41\x02\xfa\x41\x42\n@cloudsecuritycompliance.googleapis.com/FrameworkComplianceReport\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xe7\x01\n\x1bListFindingSummariesRequest\x12M\n\x06parent\x18\x01 \x01(\tB=\xe0\x41\x02\xfa\x41\x37\x12\x35\x63loudsecuritycompliance.googleapis.com/FindingSummary\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x33\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x05\x18\x01\xe0\x41\x01\"\x90\x01\n\x1cListFindingSummariesResponse\x12R\n\x11\x66inding_summaries\x18\x01 \x03(\x0b\x32\x37.google.cloud.cloudsecuritycompliance.v1.FindingSummary\x12\x1c\n\x0fnext_page_token\x18\x02 \x01(\tB\x03\xe0\x41\x03\"\xfb\x01\n%ListControlComplianceSummariesRequest\x12W\n\x06parent\x18\x01 \x01(\tBG\xe0\x41\x02\xfa\x41\x41\x12?cloudsecuritycompliance.googleapis.com/ControlComplianceSummary\x12\x33\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x05\x18\x01\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\xaf\x01\n&ListControlComplianceSummariesResponse\x12g\n\x1c\x63ontrol_compliance_summaries\x18\x01 \x03(\x0b\x32\x41.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary\x12\x1c\n\x0fnext_page_token\x18\x02 \x01(\tB\x03\xe0\x41\x03\"\xc6\x01\n)AggregateFrameworkComplianceReportRequest\x12V\n\x04name\x18\x01 \x01(\tBH\xe0\x41\x02\xfa\x41\x42\n@cloudsecuritycompliance.googleapis.com/FrameworkComplianceReport\x12,\n\x08interval\x18\x02 \x01(\x0b\x32\x15.google.type.IntervalB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x98\x01\n*AggregateFrameworkComplianceReportResponse\x12j\n\x1d\x61ggregated_compliance_reports\x18\x01 \x03(\x0b\x32\x43.google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport\"\x90\x01\n\x18\x43ontrolAssessmentDetails\x12\x18\n\x10passing_controls\x18\x01 \x01(\x05\x12\x18\n\x10\x66\x61iling_controls\x18\x02 \x01(\x05\x12!\n\x19\x61ssessed_passing_controls\x18\x03 \x01(\x05\x12\x1d\n\x15not_assessed_controls\x18\x04 \x01(\x05\"\xa0\t\n\x1a\x46rameworkComplianceSummary\x12\x11\n\tframework\x18\x01 \x01(\t\x12\x65\n\x1a\x63ontrol_assessment_details\x18\x02 \x01(\x0b\x32\x41.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails\x12X\n\x0e\x66ramework_type\x18\x03 \x01(\x0e\x32@.google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType\x12Y\n\x19supported_cloud_providers\x18\x04 \x03(\x0e\x32\x36.google.cloud.cloudsecuritycompliance.v1.CloudProvider\x12X\n\x14\x66ramework_categories\x18\x05 \x03(\x0e\x32:.google.cloud.cloudsecuritycompliance.v1.FrameworkCategory\x12#\n\x16\x66ramework_display_name\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04name\x18\x07 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x11major_revision_id\x18\x08 \x01(\x03\x12\x19\n\x11minor_revision_id\x18\t \x01(\x03\x12_\n\x17target_resource_details\x18\n \x03(\x0b\x32>.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails\x12\x1a\n\rfinding_count\x18\x0b \x01(\x03\x42\x03\xe0\x41\x03\x12S\n\x16\x63ontrols_passing_trend\x18\x0c \x01(\x0b\x32..google.cloud.cloudsecuritycompliance.v1.TrendB\x03\xe0\x41\x03:\xb8\x03\xea\x41\xb4\x03\nAcloudsecuritycompliance.googleapis.com/FrameworkComplianceSummary\x12\x63projects/{project}/locations/{location}/frameworkComplianceSummaries/{framework_compliance_summary}\x12\x61\x66olders/{folder}/locations/{location}/frameworkComplianceSummaries/{framework_compliance_summary}\x12morganizations/{organization}/locations/{location}/frameworkComplianceSummaries/{framework_compliance_summary}*\x1c\x66rameworkComplianceSummaries2\x1a\x66rameworkComplianceSummary\"\x8a\x05\n\x0e\x46indingSummary\x12\x18\n\x10\x66inding_category\x18\x01 \x01(\t\x12L\n\rfinding_class\x18\x02 \x01(\x0e\x32\x35.google.cloud.cloudsecuritycompliance.v1.FindingClass\x12\x43\n\x08severity\x18\x03 \x01(\x0e\x32\x31.google.cloud.cloudsecuritycompliance.v1.Severity\x12\x15\n\rfinding_count\x18\x04 \x01(\x03\x12\x34\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x1f\n\x12related_frameworks\x18\x06 \x03(\tB\x03\xe0\x41\x01\x12\x11\n\x04name\x18\x07 \x01(\tB\x03\xe0\x41\x08:\xc9\x02\xea\x41\xc5\x02\n5cloudsecuritycompliance.googleapis.com/FindingSummary\x12Jprojects/{project}/locations/{location}/findingSummaries/{finding_summary}\x12Hfolders/{folder}/locations/{location}/findingSummaries/{finding_summary}\x12Torganizations/{organization}/locations/{location}/findingSummaries/{finding_summary}*\x10\x66indingSummaries2\x0e\x66indingSummary\"\x9a\t\n\x18\x43ontrolComplianceSummary\x12\x0f\n\x07\x63ontrol\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12_\n\x18overall_evaluation_state\x18\x04 \x01(\x0e\x32\x38.google.cloud.cloudsecuritycompliance.v1.EvaluationStateB\x03\xe0\x41\x03\x12\x1c\n\x14total_findings_count\x18\x05 \x01(\x05\x12\x1d\n\x15\x63ompliance_frameworks\x18\x06 \x03(\t\x12R\n\x10similar_controls\x18\x07 \x03(\x0b\x32\x38.google.cloud.cloudsecuritycompliance.v1.SimilarControls\x12Z\n\x15\x63loud_control_reports\x18\x08 \x03(\x0b\x32;.google.cloud.cloudsecuritycompliance.v1.CloudControlReport\x12q\n\x1b\x63ontrol_responsibility_type\x18\t \x01(\x0e\x32L.google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType\x12\x17\n\x0fis_fake_control\x18\n \x01(\x08\x12\x11\n\x04name\x18\x0b \x01(\tB\x03\xe0\x41\x08:\xd4\x04\xea\x41\xd0\x04\n?cloudsecuritycompliance.googleapis.com/ControlComplianceSummary\x12\x98\x01projects/{project}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}/controlComplianceSummaries/{control_compliance_summary}\x12\x96\x01\x66olders/{folder}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}/controlComplianceSummaries/{control_compliance_summary}\x12\xa2\x01organizations/{organization}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}/controlComplianceSummaries/{control_compliance_summary}*\x1a\x63ontrolComplianceSummaries2\x18\x63ontrolComplianceSummary\"\x98\x07\n\x12\x43loudControlReport\x12\x7f\n\'manual_cloud_control_assessment_details\x18\r \x01(\x0b\x32L.google.cloud.cloudsecuritycompliance.v1.ManualCloudControlAssessmentDetailsH\x00\x12r\n cloud_control_assessment_details\x18\x0e \x01(\x0b\x32\x46.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetailsH\x00\x12\x15\n\rcloud_control\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x12\n\ncategories\x18\x06 \x03(\t\x12R\n\x10similar_controls\x18\t \x03(\x0b\x32\x38.google.cloud.cloudsecuritycompliance.v1.SimilarControls\x12V\n\x12\x63loud_control_type\x18\n \x01(\x0e\x32:.google.cloud.cloudsecuritycompliance.v1.CloudControl.Type\x12\x18\n\x10\x66inding_category\x18\x0b \x01(\t\x12<\n\x05rules\x18\x0c \x03(\x0b\x32-.google.cloud.cloudsecuritycompliance.v1.Rule\x12K\n\x10\x66inding_severity\x18\x0f \x01(\x0e\x32\x31.google.cloud.cloudsecuritycompliance.v1.Severity\x12R\n\x10\x65nforcement_mode\x18\x10 \x01(\x0e\x32\x38.google.cloud.cloudsecuritycompliance.v1.EnforcementMode\x12 \n\x18\x63loud_control_deployment\x18\x11 \x01(\t\x12\x19\n\x11major_revision_id\x18\x12 \x01(\x03\x12\x19\n\x11minor_revision_id\x18\x13 \x01(\x03\x12$\n\x1c\x66ramework_major_revision_ids\x18\x14 \x03(\x03\x42\x14\n\x12\x61ssessment_details\"I\n#ManualCloudControlAssessmentDetails\x12\"\n\x1amanual_cloud_control_guide\x18\x01 \x03(\t\"\x90\x01\n\x1d\x43loudControlAssessmentDetails\x12\x16\n\x0e\x66indings_count\x18\x01 \x01(\x05\x12W\n\x10\x65valuation_state\x18\x02 \x01(\x0e\x32\x38.google.cloud.cloudsecuritycompliance.v1.EvaluationStateB\x03\xe0\x41\x03\"8\n\x0fSimilarControls\x12\x11\n\tframework\x18\x01 \x01(\t\x12\x12\n\ncontrol_id\x18\x02 \x01(\t\"\xb4\x01\n\x1a\x41ggregatedComplianceReport\x12\x65\n\x1a\x63ontrol_assessment_details\x18\x01 \x01(\x0b\x32\x41.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails\x12/\n\x0breport_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x8c\x02\n\x15TargetResourceDetails\x12\x1c\n\x14\x66ramework_deployment\x18\x01 \x01(\t\x12$\n\x1ctarget_resource_display_name\x18\x02 \x01(\t\x12\x17\n\x0ftarget_resource\x18\x03 \x01(\t\x12/\n\x0b\x63reate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x19\n\x11major_revision_id\x18\x06 \x01(\x03\x12\x19\n\x11minor_revision_id\x18\x07 \x01(\x03\"U\n\x05Trend\x12\x30\n\x08\x64uration\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x03\x12\x1a\n\rvalue_percent\x18\x02 \x01(\x01\x42\x03\xe0\x41\x03*\x90\x01\n\x0f\x45valuationState\x12 \n\x1c\x45VALUATION_STATE_UNSPECIFIED\x10\x00\x12\x1b\n\x17\x45VALUATION_STATE_PASSED\x10\x01\x12\x1b\n\x17\x45VALUATION_STATE_FAILED\x10\x02\x12!\n\x1d\x45VALUATION_STATE_NOT_ASSESSED\x10\x03*\xd9\x01\n\x0c\x46indingClass\x12\x1d\n\x19\x46INDING_CLASS_UNSPECIFIED\x10\x00\x12\n\n\x06THREAT\x10\x01\x12\x11\n\rVULNERABILITY\x10\x02\x12\x14\n\x10MISCONFIGURATION\x10\x03\x12\x0f\n\x0bOBSERVATION\x10\x04\x12\r\n\tSCC_ERROR\x10\x05\x12\x15\n\x11POSTURE_VIOLATION\x10\x06\x12\x15\n\x11TOXIC_COMBINATION\x10\x07\x12\x17\n\x13SENSITIVE_DATA_RISK\x10\x08\x12\x0e\n\nCHOKEPOINT\x10\t*\xac\x01\n\x1e\x46rameworkComplianceSummaryView\x12\x31\n-FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_UNSPECIFIED\x10\x00\x12+\n\'FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_BASIC\x10\x01\x12*\n&FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_FULL\x10\x02\x32\xd5\x11\n\nMonitoring\x12\xa8\x03\n ListFrameworkComplianceSummaries\x12P.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest\x1aQ.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse\"\xde\x01\xda\x41\x06parent\x82\xd3\xe4\x93\x02\xce\x01\x12\x45/v1/{parent=organizations/*/locations/*}/frameworkComplianceSummariesZA\x12?/v1/{parent=folders/*/locations/*}/frameworkComplianceSummariesZB\x12@/v1/{parent=projects/*/locations/*}/frameworkComplianceSummaries\x12\xe0\x02\n\x14ListFindingSummaries\x12\x44.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest\x1a\x45.google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesResponse\"\xba\x01\xda\x41\x06parent\x82\xd3\xe4\x93\x02\xaa\x01\x12\x39/v1/{parent=organizations/*/locations/*}/findingSummariesZ5\x12\x33/v1/{parent=folders/*/locations/*}/findingSummariesZ6\x12\x34/v1/{parent=projects/*/locations/*}/findingSummaries\x12\x9f\x03\n\x1e\x46\x65tchFrameworkComplianceReport\x12N.google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest\x1a\x42.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceReport\"\xe8\x01\xda\x41\x04name\x82\xd3\xe4\x93\x02\xda\x01\x12I/v1/{name=organizations/*/locations/*/frameworkComplianceReports/*}:fetchZE\x12\x43/v1/{name=folders/*/locations/*/frameworkComplianceReports/*}:fetchZF\x12\x44/v1/{name=projects/*/locations/*/frameworkComplianceReports/*}:fetch\x12\xf3\x03\n\x1eListControlComplianceSummaries\x12N.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest\x1aO.google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesResponse\"\xaf\x02\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x9f\x02\x12`/v1/{parent=organizations/*/locations/*/frameworkComplianceReports/*}/controlComplianceSummariesZ\\\x12Z/v1/{parent=folders/*/locations/*/frameworkComplianceReports/*}/controlComplianceSummariesZ]\x12[/v1/{parent=projects/*/locations/*/frameworkComplianceReports/*}/controlComplianceSummaries\x12\xc4\x03\n\"AggregateFrameworkComplianceReport\x12R.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportRequest\x1aS.google.cloud.cloudsecuritycompliance.v1.AggregateFrameworkComplianceReportResponse\"\xf4\x01\xda\x41\x04name\x82\xd3\xe4\x93\x02\xe6\x01\x12M/v1/{name=organizations/*/locations/*/frameworkComplianceReports/*}:aggregateZI\x12G/v1/{name=folders/*/locations/*/frameworkComplianceReports/*}:aggregateZJ\x12H/v1/{name=projects/*/locations/*/frameworkComplianceReports/*}:aggregate\x1aZ\xca\x41&cloudsecuritycompliance.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x89\x03\n+com.google.cloud.cloudsecuritycompliance.v1B\x0fMonitoringProtoP\x01Zecloud.google.com/go/cloudsecuritycompliance/apiv1/cloudsecuritycompliancepb;cloudsecuritycompliancepb\xaa\x02\'Google.Cloud.CloudSecurityCompliance.V1\xca\x02\'Google\\Cloud\\CloudSecurityCompliance\\V1\xea\x02*Google::Cloud::CloudSecurityCompliance::V1\xea\x41^\n5cloudsecuritycompliance.googleapis.com/FolderLocation\x12%folders/{folder}/locations/{location}b\x06proto3" pool = ::Google::Protobuf::DescriptorPool.generated_pool pool.add_serialized_file(descriptor_data) @@ -42,8 +43,10 @@ module V1 SimilarControls = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.cloudsecuritycompliance.v1.SimilarControls").msgclass AggregatedComplianceReport = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.cloudsecuritycompliance.v1.AggregatedComplianceReport").msgclass TargetResourceDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails").msgclass + Trend = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.cloudsecuritycompliance.v1.Trend").msgclass EvaluationState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.cloudsecuritycompliance.v1.EvaluationState").enummodule FindingClass = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.cloudsecuritycompliance.v1.FindingClass").enummodule + FrameworkComplianceSummaryView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummaryView").enummodule end end end diff --git a/google-cloud-cloud_security_compliance-v1/proto_docs/google/api/client.rb b/google-cloud-cloud_security_compliance-v1/proto_docs/google/api/client.rb index 25b227e61cdc..30c954fb0d5c 100644 --- a/google-cloud-cloud_security_compliance-v1/proto_docs/google/api/client.rb +++ b/google-cloud-cloud_security_compliance-v1/proto_docs/google/api/client.rb @@ -31,6 +31,8 @@ module Api # @!attribute [rw] selective_gapic_generation # @return [::Google::Api::SelectiveGapicGeneration] # Configuration for which RPCs should be generated in the GAPIC client. + # + # Note: This field should not be used in most cases. class CommonLanguageSettings include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -441,6 +443,8 @@ class LongRunning # This message is used to configure the generation of a subset of the RPCs in # a service for client libraries. + # + # Note: This feature should not be used in most cases. # @!attribute [rw] methods # @return [::Array<::String>] # An allowlist of the fully qualified names of RPCs that should be included diff --git a/google-cloud-cloud_security_compliance-v1/proto_docs/google/cloud/cloudsecuritycompliance/v1/common.rb b/google-cloud-cloud_security_compliance-v1/proto_docs/google/cloud/cloudsecuritycompliance/v1/common.rb index 4cb9bf6eb0b1..b803e1f6d3e1 100644 --- a/google-cloud-cloud_security_compliance-v1/proto_docs/google/cloud/cloudsecuritycompliance/v1/common.rb +++ b/google-cloud-cloud_security_compliance-v1/proto_docs/google/cloud/cloudsecuritycompliance/v1/common.rb @@ -26,8 +26,12 @@ module V1 # FedRAMP or NIST. # @!attribute [rw] name # @return [::String] - # Required. Identifier. The name of the framework, in the format - # `organizations/{organization}/locations/{location}/frameworks/{framework_id}`. + # Required. Identifier. The name of the framework, in one of the following + # formats: + # `organizations/{organization}/locations/{location}/frameworks/{framework}` + # or + # `projects/{project}/locations/{location}/frameworks/{framework}`. + # # The only supported location is `global`. # @!attribute [r] major_revision_id # @return [::Integer] @@ -80,8 +84,11 @@ module FrameworkType # The details of a cloud control. # @!attribute [rw] name # @return [::String] - # Required. The name of the cloud control, in the format - # `organizations/{organization}/locations/{location}/cloudControls/{cloud-control}`. + # Required. The name of the cloud control, in one of the following formats: + # `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` + # or + # `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. + # # The only supported location is `global`. # @!attribute [rw] major_revision_id # @return [::Integer] @@ -97,8 +104,10 @@ class CloudControlDetails extend ::Google::Protobuf::MessageExts::ClassMethods end - # The reference of a framework, in the format - # `organizations/{organization}/locations/{location}/frameworks/{framework}`. + # The reference of a framework, in one of the following formats: + # - `organizations/{organization}/locations/{location}/frameworks/{framework}` + # - `projects/{project}/locations/{location}/frameworks/{framework}`. + # # The only supported location is `global`. # @!attribute [rw] framework # @return [::String] @@ -131,8 +140,12 @@ class Parameter # use to define your organization's security or compliance intent. # @!attribute [rw] name # @return [::String] - # Required. Identifier. The name of the cloud control, in the format - # `organizations/{organization}/locations/{location}/cloudControls/{cloud_control_id}`. + # Required. Identifier. The name of the cloud control, in either of the + # formats: + # `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` + # or + # `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. + # # The only supported location is `global`. # @!attribute [r] major_revision_id # @return [::Integer] @@ -324,27 +337,27 @@ class StringList # The possible parameter value types. # @!attribute [rw] string_value # @return [::String] - # A string value. + # Optional. A string value. # # Note: The following fields are mutually exclusive: `string_value`, `bool_value`, `string_list_value`, `number_value`, `oneof_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] bool_value # @return [::Boolean] - # A boolean value. + # Optional. A boolean value. # # Note: The following fields are mutually exclusive: `bool_value`, `string_value`, `string_list_value`, `number_value`, `oneof_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] string_list_value # @return [::Google::Cloud::CloudSecurityCompliance::V1::StringList] - # A repeated string. + # Optional. A repeated string. # # Note: The following fields are mutually exclusive: `string_list_value`, `string_value`, `bool_value`, `number_value`, `oneof_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] number_value # @return [::Float] - # A double value. + # Optional. A double value. # # Note: The following fields are mutually exclusive: `number_value`, `string_value`, `bool_value`, `string_list_value`, `oneof_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. # @!attribute [rw] oneof_value # @return [::Google::Cloud::CloudSecurityCompliance::V1::Parameter] - # Sub-parameter values. + # Optional. Sub-parameter values. # # Note: The following fields are mutually exclusive: `oneof_value`, `string_value`, `bool_value`, `string_list_value`, `number_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. class ParamValue @@ -449,6 +462,122 @@ class OperationMetadata extend ::Google::Protobuf::MessageExts::ClassMethods end + # The regulatory control. + # @!attribute [r] name + # @return [::String] + # Output only. The name of a regulatory control, in one of the following + # formats: + # - `organizations/{organization}/locations/{location}/controls/{control}` + # - `projects/{project}/locations/{location}/controls/{control}`. + # + # The only supported location is `global`. + # @!attribute [r] display_name + # @return [::String] + # Output only. The friendly name for the regulatory control. + # @!attribute [r] description + # @return [::String] + # Output only. The description of the regulatory control. + # @!attribute [r] family + # @return [::Google::Cloud::CloudSecurityCompliance::V1::Control::Family] + # Output only. The regulatory group that the control belongs to. + # @!attribute [r] control_family + # @return [::Google::Cloud::CloudSecurityCompliance::V1::ControlFamily] + # Output only. The regulatory family that the control belongs to. + # @!attribute [r] responsibility_type + # @return [::Google::Cloud::CloudSecurityCompliance::V1::RegulatoryControlResponsibilityType] + # Output only. The entity that's responsible for the control, whether Google, + # you as the customer, or both. + # @!attribute [r] google_responsibility_description + # @return [::String] + # Output only. A description of Google's responsibility for the regulatory + # control. + # @!attribute [r] google_responsibility_implementation + # @return [::String] + # Output only. A description of Google's responsibility for implementing the + # regulatory control. + # @!attribute [r] customer_responsibility_description + # @return [::String] + # Output only. A description of your responsibility for the regulatory + # control. + # @!attribute [r] customer_responsibility_implementation + # @return [::String] + # Output only. A description of the your responsibility for implementing the + # regulatory control. + # @!attribute [r] shared_responsibility_description + # @return [::String] + # Output only. A description of the responsibility that's shared between + # Google and you in implementing this control. + # @!attribute [r] additional_content_uri + # @return [::String] + # Output only. A link to the documentation that's related to this control. + # @!attribute [r] related_frameworks + # @return [::Array<::String>] + # Output only. The frameworks that include this control. + class Control + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + + # The regulatory control family. + module Family + # Default value. This value is unused. + FAMILY_UNSPECIFIED = 0 + + # Access control + AC = 1 + + # Awareness and araining + AT = 2 + + # Audit and accountability + AU = 3 + + # Certification, accreditation, and security assessments + CA = 4 + + # Configuration management + CM = 5 + + # Contingency planning + CP = 6 + + # Identification and authentication + IA = 7 + + # Incident response + IR = 8 + + # Maintenance + MA = 9 + + # Media protection + MP = 10 + + # Physical and environmental protection + PE = 11 + + # Security planning + PL = 12 + + # Personnel aecurity + PS = 13 + + # Risk assessment + RA = 14 + + # System services and acquisition + SA = 15 + + # System and communications protection + SC = 16 + + # System and information integrity + SI = 17 + + # Supply chain risk management + SR = 18 + end + end + # The regulatory family of the control. # @!attribute [rw] family_id # @return [::String] @@ -561,6 +690,18 @@ module CloudControlCategory # The business continuity and disaster recovery (BCDR) category. CC_CATEGORY_BCDR = 15 + + # The admin access category. + CC_CATEGORY_ADMIN_ACCESS = 16 + + # DRZ (Data Residency). + CC_CATEGORY_DATA_RESIDENCY = 17 + + # RUR (Resource Usage Restriction). + CC_CATEGORY_RESOURCE_USAGE_RESTRICTION = 18 + + # SERVICE SPECIFIC + CC_CATEGORY_SERVICE_SPECIFIC = 19 end # The cloud provider that's associated with the cloud control. diff --git a/google-cloud-cloud_security_compliance-v1/proto_docs/google/cloud/cloudsecuritycompliance/v1/config.rb b/google-cloud-cloud_security_compliance-v1/proto_docs/google/cloud/cloudsecuritycompliance/v1/config.rb index 329f7e841766..00e85dd5de7e 100644 --- a/google-cloud-cloud_security_compliance-v1/proto_docs/google/cloud/cloudsecuritycompliance/v1/config.rb +++ b/google-cloud-cloud_security_compliance-v1/proto_docs/google/cloud/cloudsecuritycompliance/v1/config.rb @@ -24,8 +24,10 @@ module V1 # Request message for [ListFrameworks][]. # @!attribute [rw] parent # @return [::String] - # Required. The parent resource name, in the format - # `organizations/{organization}/locations/{location}`. + # Required. The parent resource name, in one of the following formats: + # - `organizations/{organization}/locations/{location}` + # - `projects/{project}/locations/{location}`. + # # The only supported location is `global`. # @!attribute [rw] page_size # @return [::Integer] @@ -60,8 +62,12 @@ class ListFrameworksResponse # The request message for [GetFramework][]. # @!attribute [rw] name # @return [::String] - # Required. The name of the framework to retrieve, in the format - # `organizations/{organization}/locations/{location}/frameworks/{framework_id}` + # Required. The name of the framework to retrieve, in one of the following + # formats: + # `organizations/{organization}/locations/{location}/frameworks/{framework}` + # or + # `projects/{project}/locations/{location}/frameworks/{framework}`. + # # The only supported location is `global`. # @!attribute [rw] major_revision_id # @return [::Integer] @@ -75,8 +81,10 @@ class GetFrameworkRequest # The request message for [CreateFramework][]. # @!attribute [rw] parent # @return [::String] - # Required. The parent resource name, in the format - # `organizations/{organization}/locations/{location}`. + # Required. The parent resource name, in one of the following formats: + # - `organizations/{organization}/locations/{location}` + # - `projects/{project}/locations/{location}`. + # # The only supported location is `global`. # @!attribute [rw] framework_id # @return [::String] @@ -112,8 +120,11 @@ class UpdateFrameworkRequest # Request message for [DeleteFramework][]. # @!attribute [rw] name # @return [::String] - # Required. The name of the resource, in the format - # `organizations/{organization}/locations/{location}/frameworks/{framework}`. + # Required. The name of the resource, in one of the following formats: + # `organizations/{organization}/locations/{location}/frameworks/{framework}` + # or + # `projects/{project}/locations/{location}/frameworks/{framework}`. + # # The only supported location is `global`. class DeleteFrameworkRequest include ::Google::Protobuf::MessageExts @@ -123,8 +134,10 @@ class DeleteFrameworkRequest # Request message for [ListCloudControls][]. # @!attribute [rw] parent # @return [::String] - # Required. The parent resource name, in the format - # `organizations/{organization}/locations/{location}`. + # Required. The parent resource name, in one of the following formats: + # - `organizations/{organization}/locations/{location}` + # - `projects/{project}/locations/{location}`. + # # The only supported location is `global`. # @!attribute [rw] page_size # @return [::Integer] @@ -163,8 +176,12 @@ class ListCloudControlsResponse # The request message for [GetCloudControl][]. # @!attribute [rw] name # @return [::String] - # Required. The name of the cloud control to retrieve, in the format - # `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`. + # Required. The name of the cloud control to retrieve, in one of the + # following formats: + # `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` + # or + # `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. + # # The only supported location is `global`. # @!attribute [rw] major_revision_id # @return [::Integer] @@ -178,8 +195,10 @@ class GetCloudControlRequest # The request message for [CreateCloudControl][]. # @!attribute [rw] parent # @return [::String] - # Required. The parent resource name, in the format - # `organizations/{organization}/locations/{location}`. + # Required. The parent resource name, in one of the following formats: + # - `organizations/{organization}/locations/{location}`. + # - `projects/{project}/locations/{location}`. + # # The only supported location is `global`. # @!attribute [rw] cloud_control_id # @return [::String] @@ -222,8 +241,12 @@ class UpdateCloudControlRequest # The request message for [DeleteCloudControl][]. # @!attribute [rw] name # @return [::String] - # Required. The name of the cloud control to delete, in the format - # `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}`. + # Required. The name of the cloud control to delete, in one of the following + # formats: + # `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}` + # or + # `projects/{project}/locations/{location}/CloudControls/{CloudControl}`. + # # The only supported location is `global`. class DeleteCloudControlRequest include ::Google::Protobuf::MessageExts diff --git a/google-cloud-cloud_security_compliance-v1/proto_docs/google/cloud/cloudsecuritycompliance/v1/deployment.rb b/google-cloud-cloud_security_compliance-v1/proto_docs/google/cloud/cloudsecuritycompliance/v1/deployment.rb index d5b0aecba40a..80a734eac612 100644 --- a/google-cloud-cloud_security_compliance-v1/proto_docs/google/cloud/cloudsecuritycompliance/v1/deployment.rb +++ b/google-cloud-cloud_security_compliance-v1/proto_docs/google/cloud/cloudsecuritycompliance/v1/deployment.rb @@ -27,7 +27,9 @@ module V1 # @!attribute [rw] name # @return [::String] # Identifier. The name of the framework deployment, in the format - # `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`. + # `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + # or + # `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. # The only supported location is `global`. # @!attribute [rw] target_resource_config # @return [::Google::Cloud::CloudSecurityCompliance::V1::TargetResourceConfig] @@ -103,7 +105,9 @@ class FrameworkDeployment # @!attribute [rw] name # @return [::String] # Identifier. The name for the cloud control deployment, in the format - # `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`. + # `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}` + # or + # `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`. # The only supported location is `global`. # @!attribute [rw] target_resource_config # @return [::Google::Cloud::CloudSecurityCompliance::V1::TargetResourceConfig] @@ -241,7 +245,9 @@ class CloudControlMetadata # @!attribute [rw] parent # @return [::String] # Required. The parent resource of the framework deployment in the format - # `organizations/{organization}/locations/{location}`. + # `organizations/{organization}/locations/{location}` + # or + # `projects/{project}/locations/{location}`. # Only the global location is supported. # @!attribute [rw] framework_deployment_id # @return [::String] @@ -261,7 +267,9 @@ class CreateFrameworkDeploymentRequest # @return [::String] # Required. The name of the framework deployment that you want to delete, # in the format - # `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`. + # `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + # or + # `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. # The only supported location is `global`. # @!attribute [rw] etag # @return [::String] @@ -282,7 +290,9 @@ class DeleteFrameworkDeploymentRequest # @!attribute [rw] name # @return [::String] # Required. The name of the framework deployment, in the format - # `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`. + # `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + # or + # `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. # The only supported location is `global`. class GetFrameworkDeploymentRequest include ::Google::Protobuf::MessageExts @@ -293,7 +303,9 @@ class GetFrameworkDeploymentRequest # @!attribute [rw] parent # @return [::String] # Required. The parent resource of the framework deployment, in the format - # `organizations/{organization}/locations/{location}`. + # `organizations/{organization}/locations/{location}` + # or + # `projects/{project}/locations/{location}`. # The only supported location is `global`. # @!attribute [rw] page_size # @return [::Integer] @@ -339,7 +351,9 @@ class ListFrameworkDeploymentsResponse # @!attribute [rw] name # @return [::String] # Required. The name for the cloud control deployment, in the format - # `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`. + # `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}` + # or + # `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`. # The only supported location is `global`. class GetCloudControlDeploymentRequest include ::Google::Protobuf::MessageExts @@ -350,8 +364,9 @@ class GetCloudControlDeploymentRequest # @!attribute [rw] parent # @return [::String] # Required. The parent resource for the cloud control deployment, in the - # format `organizations/{organization}/locations/{location}`. The only - # supported location is `global`. + # format `organizations/{organization}/locations/{location}` or + # `projects/{project}/locations/{location}`. + # The only supported location is `global`. # @!attribute [rw] page_size # @return [::Integer] # Optional. The requested page size. The server might return fewer items than @@ -396,7 +411,9 @@ class ListCloudControlDeploymentsResponse # @!attribute [r] cloud_control_deployment # @return [::String] # Output only. The name of the CloudControlDeployment. The format is - # `organizations/{org}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`. + # `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}` + # or + # `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`. # The only supported location is `global`. class CloudControlDeploymentReference include ::Google::Protobuf::MessageExts @@ -407,7 +424,9 @@ class CloudControlDeploymentReference # @!attribute [r] framework_deployment # @return [::String] # Output only. The name of the framework deployment, in the format - # `organizations/{org}/locations/{location}/frameworkDeployments/{framework_deployment_id}`. + # `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + # or + # `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. # The only supported location is `global`. # @!attribute [rw] framework_reference # @return [::Google::Cloud::CloudSecurityCompliance::V1::FrameworkReference] @@ -417,7 +436,7 @@ class CloudControlDeploymentReference # ``` # { # framework: - # "organizations/\\{org}/locations/\\{location}/frameworks/\\{framework}", + # "organizations/\\{organization}/locations/\\{location}/frameworks/\\{framework}", # major_revision_id: 1 # } # ``` @@ -446,6 +465,9 @@ module DeploymentState # Deployment is being deleted. DEPLOYMENT_STATE_DELETING = 3 + # Deployment is being updated. + DEPLOYMENT_STATE_UPDATING = 8 + # Deployment has failed. All the changes made by the deployment were # successfully rolled back. You can retry or delete a deployment that's # in this state. diff --git a/google-cloud-cloud_security_compliance-v1/proto_docs/google/cloud/cloudsecuritycompliance/v1/monitoring.rb b/google-cloud-cloud_security_compliance-v1/proto_docs/google/cloud/cloudsecuritycompliance/v1/monitoring.rb index 596d8c150335..1d77941fee16 100644 --- a/google-cloud-cloud_security_compliance-v1/proto_docs/google/cloud/cloudsecuritycompliance/v1/monitoring.rb +++ b/google-cloud-cloud_security_compliance-v1/proto_docs/google/cloud/cloudsecuritycompliance/v1/monitoring.rb @@ -37,6 +37,9 @@ module V1 # @!attribute [rw] filter # @return [::String] # Optional. The filtering results. + # @!attribute [rw] view + # @return [::Google::Cloud::CloudSecurityCompliance::V1::FrameworkComplianceSummaryView] + # Optional. Specifies the level of detail to return in the response. class ListFrameworkComplianceSummariesRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -104,6 +107,9 @@ class FrameworkComplianceReport # @!attribute [rw] end_time # @return [::Google::Protobuf::Timestamp] # Optional. The end time of the report. + # @!attribute [rw] filter + # @return [::String] + # Optional. The filtering results. class FetchFrameworkComplianceReportRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -260,6 +266,12 @@ class ControlAssessmentDetails # @!attribute [rw] target_resource_details # @return [::Array<::Google::Cloud::CloudSecurityCompliance::V1::TargetResourceDetails>] # The target resource details for the framework. + # @!attribute [r] finding_count + # @return [::Integer] + # Output only. The count of the findings generated against the framework. + # @!attribute [r] controls_passing_trend + # @return [::Google::Cloud::CloudSecurityCompliance::V1::Trend] + # Output only. The trend of controls that are passing for the given duration. class FrameworkComplianceSummary include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods @@ -467,6 +479,19 @@ class TargetResourceDetails extend ::Google::Protobuf::MessageExts::ClassMethods end + # The trend of a compliance metric. + # @!attribute [r] duration + # @return [::Google::Protobuf::Duration] + # Output only. The duration for the trend. + # @!attribute [r] value_percent + # @return [::Float] + # Output only. The trend value as a percentage. The value can be positive or + # negative. + class Trend + include ::Google::Protobuf::MessageExts + extend ::Google::Protobuf::MessageExts::ClassMethods + end + # The evaluation state of the control. module EvaluationState # Default value. This value is unused. @@ -521,6 +546,23 @@ module FindingClass # converge, based on attack path simulations (APS). CHOKEPOINT = 9 end + + # Specifies the view of the framework compliance summary to be returned. + # New values may be added in the future. + module FrameworkComplianceSummaryView + # The default / unset value. The API will default to the BASIC view. + FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_UNSPECIFIED = 0 + + # Includes basic compliance metadata, but omits trend data. + FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_BASIC = 1 + + # Includes all information, including + # [finding_count][google.cloud.cloudsecuritycompliance.v1main.FrameworkComplianceSummary.finding_count] + # and + # [controls_passing_trend][google.cloud.cloudsecuritycompliance.v1main.FrameworkComplianceSummary.controls_passing_trend]. + # Trend data is provided for the last 30 days. + FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_FULL = 2 + end end end end diff --git a/google-cloud-cloud_security_compliance-v1/test/google/cloud/cloud_security_compliance/v1/config_paths_test.rb b/google-cloud-cloud_security_compliance-v1/test/google/cloud/cloud_security_compliance/v1/config_paths_test.rb index d90bf5d2c53b..e5acce0af6e7 100644 --- a/google-cloud-cloud_security_compliance-v1/test/google/cloud/cloud_security_compliance/v1/config_paths_test.rb +++ b/google-cloud-cloud_security_compliance-v1/test/google/cloud/cloud_security_compliance/v1/config_paths_test.rb @@ -50,6 +50,9 @@ def test_cloud_control_path path = client.cloud_control_path organization: "value0", location: "value1", cloud_control: "value2" assert_equal "organizations/value0/locations/value1/cloudControls/value2", path + + path = client.cloud_control_path project: "value0", location: "value1", cloud_control: "value2" + assert_equal "projects/value0/locations/value1/cloudControls/value2", path end end @@ -62,6 +65,21 @@ def test_framework_path path = client.framework_path organization: "value0", location: "value1", framework: "value2" assert_equal "organizations/value0/locations/value1/frameworks/value2", path + + path = client.framework_path project: "value0", location: "value1", framework: "value2" + assert_equal "projects/value0/locations/value1/frameworks/value2", path + end + end + + def test_location_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::CloudSecurityCompliance::V1::Config::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.location_path project: "value0", location: "value1" + assert_equal "projects/value0/locations/value1", path end end diff --git a/google-cloud-cloud_security_compliance-v1/test/google/cloud/cloud_security_compliance/v1/deployment_paths_test.rb b/google-cloud-cloud_security_compliance-v1/test/google/cloud/cloud_security_compliance/v1/deployment_paths_test.rb index fa6b2db33a74..f3d1a2c04927 100644 --- a/google-cloud-cloud_security_compliance-v1/test/google/cloud/cloud_security_compliance/v1/deployment_paths_test.rb +++ b/google-cloud-cloud_security_compliance-v1/test/google/cloud/cloud_security_compliance/v1/deployment_paths_test.rb @@ -50,6 +50,24 @@ def test_cloud_control_deployment_path path = client.cloud_control_deployment_path organization: "value0", location: "value1", cloud_control_deployment: "value2" assert_equal "organizations/value0/locations/value1/cloudControlDeployments/value2", path + + path = client.cloud_control_deployment_path project: "value0", location: "value1", cloud_control_deployment: "value2" + assert_equal "projects/value0/locations/value1/cloudControlDeployments/value2", path + end + end + + def test_framework_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::CloudSecurityCompliance::V1::Deployment::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.framework_path organization: "value0", location: "value1", framework: "value2" + assert_equal "organizations/value0/locations/value1/frameworks/value2", path + + path = client.framework_path project: "value0", location: "value1", framework: "value2" + assert_equal "projects/value0/locations/value1/frameworks/value2", path end end @@ -62,6 +80,21 @@ def test_framework_deployment_path path = client.framework_deployment_path organization: "value0", location: "value1", framework_deployment: "value2" assert_equal "organizations/value0/locations/value1/frameworkDeployments/value2", path + + path = client.framework_deployment_path project: "value0", location: "value1", framework_deployment: "value2" + assert_equal "projects/value0/locations/value1/frameworkDeployments/value2", path + end + end + + def test_location_path + grpc_channel = ::GRPC::Core::Channel.new "localhost:8888", nil, :this_channel_is_insecure + ::Gapic::ServiceStub.stub :new, DummyStub.new do + client = ::Google::Cloud::CloudSecurityCompliance::V1::Deployment::Client.new do |config| + config.credentials = grpc_channel + end + + path = client.location_path project: "value0", location: "value1" + assert_equal "projects/value0/locations/value1", path end end diff --git a/google-cloud-cloud_security_compliance-v1/test/google/cloud/cloud_security_compliance/v1/monitoring_rest_test.rb b/google-cloud-cloud_security_compliance-v1/test/google/cloud/cloud_security_compliance/v1/monitoring_rest_test.rb index a64db7e5d4c6..a977a75f3c29 100644 --- a/google-cloud-cloud_security_compliance-v1/test/google/cloud/cloud_security_compliance/v1/monitoring_rest_test.rb +++ b/google-cloud-cloud_security_compliance-v1/test/google/cloud/cloud_security_compliance/v1/monitoring_rest_test.rb @@ -90,6 +90,7 @@ def test_list_framework_compliance_summaries page_size = 42 page_token = "hello world" filter = "hello world" + view = :FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_UNSPECIFIED list_framework_compliance_summaries_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| assert options.metadata.key? :"x-goog-api-client" @@ -105,27 +106,27 @@ def test_list_framework_compliance_summaries end # Use hash object - client.list_framework_compliance_summaries({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |_result, response| + client.list_framework_compliance_summaries({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, view: view }) do |_result, response| assert_equal http_response, response.underlying_op end # Use named arguments - client.list_framework_compliance_summaries parent: parent, page_size: page_size, page_token: page_token, filter: filter do |_result, response| + client.list_framework_compliance_summaries parent: parent, page_size: page_size, page_token: page_token, filter: filter, view: view do |_result, response| assert_equal http_response, response.underlying_op end # Use protobuf object - client.list_framework_compliance_summaries ::Google::Cloud::CloudSecurityCompliance::V1::ListFrameworkComplianceSummariesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |_result, response| + client.list_framework_compliance_summaries ::Google::Cloud::CloudSecurityCompliance::V1::ListFrameworkComplianceSummariesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, view: view) do |_result, response| assert_equal http_response, response.underlying_op end # Use hash object with options - client.list_framework_compliance_summaries({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, call_options) do |_result, response| + client.list_framework_compliance_summaries({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, view: view }, call_options) do |_result, response| assert_equal http_response, response.underlying_op end # Use protobuf object with options - client.list_framework_compliance_summaries(::Google::Cloud::CloudSecurityCompliance::V1::ListFrameworkComplianceSummariesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), call_options) do |_result, response| + client.list_framework_compliance_summaries(::Google::Cloud::CloudSecurityCompliance::V1::ListFrameworkComplianceSummariesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, view: view), call_options) do |_result, response| assert_equal http_response, response.underlying_op end @@ -203,6 +204,7 @@ def test_fetch_framework_compliance_report # Create request parameters for a unary method. name = "hello world" end_time = {} + filter = "hello world" fetch_framework_compliance_report_client_stub = ClientStub.new http_response do |_verb, uri:, body:, params:, options:, method_name:| assert options.metadata.key? :"x-goog-api-client" @@ -218,27 +220,27 @@ def test_fetch_framework_compliance_report end # Use hash object - client.fetch_framework_compliance_report({ name: name, end_time: end_time }) do |_result, response| + client.fetch_framework_compliance_report({ name: name, end_time: end_time, filter: filter }) do |_result, response| assert_equal http_response, response.underlying_op end # Use named arguments - client.fetch_framework_compliance_report name: name, end_time: end_time do |_result, response| + client.fetch_framework_compliance_report name: name, end_time: end_time, filter: filter do |_result, response| assert_equal http_response, response.underlying_op end # Use protobuf object - client.fetch_framework_compliance_report ::Google::Cloud::CloudSecurityCompliance::V1::FetchFrameworkComplianceReportRequest.new(name: name, end_time: end_time) do |_result, response| + client.fetch_framework_compliance_report ::Google::Cloud::CloudSecurityCompliance::V1::FetchFrameworkComplianceReportRequest.new(name: name, end_time: end_time, filter: filter) do |_result, response| assert_equal http_response, response.underlying_op end # Use hash object with options - client.fetch_framework_compliance_report({ name: name, end_time: end_time }, call_options) do |_result, response| + client.fetch_framework_compliance_report({ name: name, end_time: end_time, filter: filter }, call_options) do |_result, response| assert_equal http_response, response.underlying_op end # Use protobuf object with options - client.fetch_framework_compliance_report(::Google::Cloud::CloudSecurityCompliance::V1::FetchFrameworkComplianceReportRequest.new(name: name, end_time: end_time), call_options) do |_result, response| + client.fetch_framework_compliance_report(::Google::Cloud::CloudSecurityCompliance::V1::FetchFrameworkComplianceReportRequest.new(name: name, end_time: end_time, filter: filter), call_options) do |_result, response| assert_equal http_response, response.underlying_op end diff --git a/google-cloud-cloud_security_compliance-v1/test/google/cloud/cloud_security_compliance/v1/monitoring_test.rb b/google-cloud-cloud_security_compliance-v1/test/google/cloud/cloud_security_compliance/v1/monitoring_test.rb index 219e9b8b6d0c..be9a3f94a702 100644 --- a/google-cloud-cloud_security_compliance-v1/test/google/cloud/cloud_security_compliance/v1/monitoring_test.rb +++ b/google-cloud-cloud_security_compliance-v1/test/google/cloud/cloud_security_compliance/v1/monitoring_test.rb @@ -75,6 +75,7 @@ def test_list_framework_compliance_summaries page_size = 42 page_token = "hello world" filter = "hello world" + view = :FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_UNSPECIFIED list_framework_compliance_summaries_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| assert_equal :list_framework_compliance_summaries, name @@ -83,6 +84,7 @@ def test_list_framework_compliance_summaries assert_equal 42, request["page_size"] assert_equal "hello world", request["page_token"] assert_equal "hello world", request["filter"] + assert_equal :FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_UNSPECIFIED, request["view"] refute_nil options end @@ -93,35 +95,35 @@ def test_list_framework_compliance_summaries end # Use hash object - client.list_framework_compliance_summaries({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }) do |response, operation| + client.list_framework_compliance_summaries({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, view: view }) do |response, operation| assert_kind_of Gapic::PagedEnumerable, response assert_equal grpc_response, response.response assert_equal grpc_operation, operation end # Use named arguments - client.list_framework_compliance_summaries parent: parent, page_size: page_size, page_token: page_token, filter: filter do |response, operation| + client.list_framework_compliance_summaries parent: parent, page_size: page_size, page_token: page_token, filter: filter, view: view do |response, operation| assert_kind_of Gapic::PagedEnumerable, response assert_equal grpc_response, response.response assert_equal grpc_operation, operation end # Use protobuf object - client.list_framework_compliance_summaries ::Google::Cloud::CloudSecurityCompliance::V1::ListFrameworkComplianceSummariesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter) do |response, operation| + client.list_framework_compliance_summaries ::Google::Cloud::CloudSecurityCompliance::V1::ListFrameworkComplianceSummariesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, view: view) do |response, operation| assert_kind_of Gapic::PagedEnumerable, response assert_equal grpc_response, response.response assert_equal grpc_operation, operation end # Use hash object with options - client.list_framework_compliance_summaries({ parent: parent, page_size: page_size, page_token: page_token, filter: filter }, grpc_options) do |response, operation| + client.list_framework_compliance_summaries({ parent: parent, page_size: page_size, page_token: page_token, filter: filter, view: view }, grpc_options) do |response, operation| assert_kind_of Gapic::PagedEnumerable, response assert_equal grpc_response, response.response assert_equal grpc_operation, operation end # Use protobuf object with options - client.list_framework_compliance_summaries(::Google::Cloud::CloudSecurityCompliance::V1::ListFrameworkComplianceSummariesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter), grpc_options) do |response, operation| + client.list_framework_compliance_summaries(::Google::Cloud::CloudSecurityCompliance::V1::ListFrameworkComplianceSummariesRequest.new(parent: parent, page_size: page_size, page_token: page_token, filter: filter, view: view), grpc_options) do |response, operation| assert_kind_of Gapic::PagedEnumerable, response assert_equal grpc_response, response.response assert_equal grpc_operation, operation @@ -213,12 +215,14 @@ def test_fetch_framework_compliance_report # Create request parameters for a unary method. name = "hello world" end_time = {} + filter = "hello world" fetch_framework_compliance_report_client_stub = ClientStub.new grpc_response, grpc_operation do |name, request, options:| assert_equal :fetch_framework_compliance_report, name assert_kind_of ::Google::Cloud::CloudSecurityCompliance::V1::FetchFrameworkComplianceReportRequest, request assert_equal "hello world", request["name"] assert_equal Gapic::Protobuf.coerce({}, to: ::Google::Protobuf::Timestamp), request["end_time"] + assert_equal "hello world", request["filter"] refute_nil options end @@ -229,31 +233,31 @@ def test_fetch_framework_compliance_report end # Use hash object - client.fetch_framework_compliance_report({ name: name, end_time: end_time }) do |response, operation| + client.fetch_framework_compliance_report({ name: name, end_time: end_time, filter: filter }) do |response, operation| assert_equal grpc_response, response assert_equal grpc_operation, operation end # Use named arguments - client.fetch_framework_compliance_report name: name, end_time: end_time do |response, operation| + client.fetch_framework_compliance_report name: name, end_time: end_time, filter: filter do |response, operation| assert_equal grpc_response, response assert_equal grpc_operation, operation end # Use protobuf object - client.fetch_framework_compliance_report ::Google::Cloud::CloudSecurityCompliance::V1::FetchFrameworkComplianceReportRequest.new(name: name, end_time: end_time) do |response, operation| + client.fetch_framework_compliance_report ::Google::Cloud::CloudSecurityCompliance::V1::FetchFrameworkComplianceReportRequest.new(name: name, end_time: end_time, filter: filter) do |response, operation| assert_equal grpc_response, response assert_equal grpc_operation, operation end # Use hash object with options - client.fetch_framework_compliance_report({ name: name, end_time: end_time }, grpc_options) do |response, operation| + client.fetch_framework_compliance_report({ name: name, end_time: end_time, filter: filter }, grpc_options) do |response, operation| assert_equal grpc_response, response assert_equal grpc_operation, operation end # Use protobuf object with options - client.fetch_framework_compliance_report(::Google::Cloud::CloudSecurityCompliance::V1::FetchFrameworkComplianceReportRequest.new(name: name, end_time: end_time), grpc_options) do |response, operation| + client.fetch_framework_compliance_report(::Google::Cloud::CloudSecurityCompliance::V1::FetchFrameworkComplianceReportRequest.new(name: name, end_time: end_time, filter: filter), grpc_options) do |response, operation| assert_equal grpc_response, response assert_equal grpc_operation, operation end