google-cloud-cloud_security_compliance-v1 0.1.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
 - data/AUTHENTICATION.md +4 -4
 - data/README.md +4 -4
 - data/lib/google/cloud/cloud_security_compliance/v1/audit/client.rb +859 -0
 - data/lib/google/cloud/cloud_security_compliance/v1/audit/credentials.rb +47 -0
 - data/lib/google/cloud/cloud_security_compliance/v1/audit/operations.rb +841 -0
 - data/lib/google/cloud/cloud_security_compliance/v1/audit/paths.rb +110 -0
 - data/lib/google/cloud/cloud_security_compliance/v1/audit/rest/client.rb +796 -0
 - data/lib/google/cloud/cloud_security_compliance/v1/audit/rest/operations.rb +925 -0
 - data/lib/google/cloud/cloud_security_compliance/v1/audit/rest/service_stub.rb +387 -0
 - data/lib/google/cloud/cloud_security_compliance/v1/audit/rest.rb +54 -0
 - data/lib/google/cloud/cloud_security_compliance/v1/audit.rb +56 -0
 - data/lib/google/cloud/cloud_security_compliance/v1/bindings_override.rb +1 -1
 - data/lib/google/cloud/cloud_security_compliance/v1/cm_enrollment_service/client.rb +608 -0
 - data/lib/google/cloud/cloud_security_compliance/v1/cm_enrollment_service/credentials.rb +47 -0
 - data/lib/google/cloud/cloud_security_compliance/v1/cm_enrollment_service/paths.rb +72 -0
 - data/lib/google/cloud/cloud_security_compliance/v1/cm_enrollment_service/rest/client.rb +559 -0
 - data/lib/google/cloud/cloud_security_compliance/v1/cm_enrollment_service/rest/service_stub.rb +234 -0
 - data/lib/google/cloud/cloud_security_compliance/v1/cm_enrollment_service/rest.rb +54 -0
 - data/lib/google/cloud/cloud_security_compliance/v1/cm_enrollment_service.rb +56 -0
 - data/lib/google/cloud/cloud_security_compliance/v1/config/client.rb +113 -99
 - data/lib/google/cloud/cloud_security_compliance/v1/config/rest/client.rb +113 -99
 - data/lib/google/cloud/cloud_security_compliance/v1/deployment/client.rb +60 -38
 - data/lib/google/cloud/cloud_security_compliance/v1/deployment/rest/client.rb +60 -38
 - data/lib/google/cloud/cloud_security_compliance/v1/monitoring/client.rb +940 -0
 - data/lib/google/cloud/cloud_security_compliance/v1/monitoring/credentials.rb +47 -0
 - data/lib/google/cloud/cloud_security_compliance/v1/monitoring/paths.rb +142 -0
 - data/lib/google/cloud/cloud_security_compliance/v1/monitoring/rest/client.rb +870 -0
 - data/lib/google/cloud/cloud_security_compliance/v1/monitoring/rest/service_stub.rb +456 -0
 - data/lib/google/cloud/cloud_security_compliance/v1/monitoring/rest.rb +53 -0
 - data/lib/google/cloud/cloud_security_compliance/v1/monitoring.rb +55 -0
 - data/lib/google/cloud/cloud_security_compliance/v1/rest.rb +4 -1
 - data/lib/google/cloud/cloud_security_compliance/v1/version.rb +1 -1
 - data/lib/google/cloud/cloud_security_compliance/v1.rb +5 -2
 - data/lib/google/cloud/cloudsecuritycompliance/v1/audit_pb.rb +70 -0
 - data/lib/google/cloud/cloudsecuritycompliance/v1/audit_services_pb.rb +51 -0
 - data/lib/google/cloud/cloudsecuritycompliance/v1/cm_enrollment_service_pb.rb +54 -0
 - data/lib/google/cloud/cloudsecuritycompliance/v1/cm_enrollment_service_services_pb.rb +54 -0
 - data/lib/google/cloud/cloudsecuritycompliance/v1/common_pb.rb +4 -1
 - data/lib/google/cloud/cloudsecuritycompliance/v1/config_pb.rb +1 -1
 - data/lib/google/cloud/cloudsecuritycompliance/v1/config_services_pb.rb +58 -55
 - data/lib/google/cloud/cloudsecuritycompliance/v1/deployment_services_pb.rb +9 -6
 - data/lib/google/cloud/cloudsecuritycompliance/v1/monitoring_pb.rb +74 -0
 - data/lib/google/cloud/cloudsecuritycompliance/v1/monitoring_services_pb.rb +53 -0
 - data/proto_docs/google/cloud/cloudsecuritycompliance/v1/audit.rb +413 -0
 - data/proto_docs/google/cloud/cloudsecuritycompliance/v1/cm_enrollment_service.rb +108 -0
 - data/proto_docs/google/cloud/cloudsecuritycompliance/v1/common.rb +210 -181
 - data/proto_docs/google/cloud/cloudsecuritycompliance/v1/config.rb +69 -57
 - data/proto_docs/google/cloud/cloudsecuritycompliance/v1/deployment.rb +180 -139
 - data/proto_docs/google/cloud/cloudsecuritycompliance/v1/monitoring.rb +527 -0
 - data/proto_docs/google/type/interval.rb +45 -0
 - metadata +34 -1
 
| 
         @@ -0,0 +1,110 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # frozen_string_literal: true
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            # Copyright 2025 Google LLC
         
     | 
| 
      
 4 
     | 
    
         
            +
            #
         
     | 
| 
      
 5 
     | 
    
         
            +
            # Licensed under the Apache License, Version 2.0 (the "License");
         
     | 
| 
      
 6 
     | 
    
         
            +
            # you may not use this file except in compliance with the License.
         
     | 
| 
      
 7 
     | 
    
         
            +
            # You may obtain a copy of the License at
         
     | 
| 
      
 8 
     | 
    
         
            +
            #
         
     | 
| 
      
 9 
     | 
    
         
            +
            #     https://www.apache.org/licenses/LICENSE-2.0
         
     | 
| 
      
 10 
     | 
    
         
            +
            #
         
     | 
| 
      
 11 
     | 
    
         
            +
            # Unless required by applicable law or agreed to in writing, software
         
     | 
| 
      
 12 
     | 
    
         
            +
            # distributed under the License is distributed on an "AS IS" BASIS,
         
     | 
| 
      
 13 
     | 
    
         
            +
            # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         
     | 
| 
      
 14 
     | 
    
         
            +
            # See the License for the specific language governing permissions and
         
     | 
| 
      
 15 
     | 
    
         
            +
            # limitations under the License.
         
     | 
| 
      
 16 
     | 
    
         
            +
             
     | 
| 
      
 17 
     | 
    
         
            +
            # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
         
     | 
| 
      
 18 
     | 
    
         
            +
             
     | 
| 
      
 19 
     | 
    
         
            +
             
     | 
| 
      
 20 
     | 
    
         
            +
            module Google
         
     | 
| 
      
 21 
     | 
    
         
            +
              module Cloud
         
     | 
| 
      
 22 
     | 
    
         
            +
                module CloudSecurityCompliance
         
     | 
| 
      
 23 
     | 
    
         
            +
                  module V1
         
     | 
| 
      
 24 
     | 
    
         
            +
                    module Audit
         
     | 
| 
      
 25 
     | 
    
         
            +
                      # Path helper methods for the Audit API.
         
     | 
| 
      
 26 
     | 
    
         
            +
                      module Paths
         
     | 
| 
      
 27 
     | 
    
         
            +
                        ##
         
     | 
| 
      
 28 
     | 
    
         
            +
                        # Create a fully-qualified FrameworkAudit resource string.
         
     | 
| 
      
 29 
     | 
    
         
            +
                        #
         
     | 
| 
      
 30 
     | 
    
         
            +
                        # @overload framework_audit_path(project:, location:, framework_audit:)
         
     | 
| 
      
 31 
     | 
    
         
            +
                        #   The resource will be in the following format:
         
     | 
| 
      
 32 
     | 
    
         
            +
                        #
         
     | 
| 
      
 33 
     | 
    
         
            +
                        #   `projects/{project}/locations/{location}/frameworkAudits/{framework_audit}`
         
     | 
| 
      
 34 
     | 
    
         
            +
                        #
         
     | 
| 
      
 35 
     | 
    
         
            +
                        #   @param project [String]
         
     | 
| 
      
 36 
     | 
    
         
            +
                        #   @param location [String]
         
     | 
| 
      
 37 
     | 
    
         
            +
                        #   @param framework_audit [String]
         
     | 
| 
      
 38 
     | 
    
         
            +
                        #
         
     | 
| 
      
 39 
     | 
    
         
            +
                        # @overload framework_audit_path(organization:, location:, framework_audit:)
         
     | 
| 
      
 40 
     | 
    
         
            +
                        #   The resource will be in the following format:
         
     | 
| 
      
 41 
     | 
    
         
            +
                        #
         
     | 
| 
      
 42 
     | 
    
         
            +
                        #   `organizations/{organization}/locations/{location}/frameworkAudits/{framework_audit}`
         
     | 
| 
      
 43 
     | 
    
         
            +
                        #
         
     | 
| 
      
 44 
     | 
    
         
            +
                        #   @param organization [String]
         
     | 
| 
      
 45 
     | 
    
         
            +
                        #   @param location [String]
         
     | 
| 
      
 46 
     | 
    
         
            +
                        #   @param framework_audit [String]
         
     | 
| 
      
 47 
     | 
    
         
            +
                        #
         
     | 
| 
      
 48 
     | 
    
         
            +
                        # @return [::String]
         
     | 
| 
      
 49 
     | 
    
         
            +
                        def framework_audit_path **args
         
     | 
| 
      
 50 
     | 
    
         
            +
                          resources = {
         
     | 
| 
      
 51 
     | 
    
         
            +
                            "framework_audit:location:project" => (proc do |project:, location:, framework_audit:|
         
     | 
| 
      
 52 
     | 
    
         
            +
                              raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
         
     | 
| 
      
 53 
     | 
    
         
            +
                              raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
         
     | 
| 
      
 54 
     | 
    
         
            +
             
     | 
| 
      
 55 
     | 
    
         
            +
                              "projects/#{project}/locations/#{location}/frameworkAudits/#{framework_audit}"
         
     | 
| 
      
 56 
     | 
    
         
            +
                            end),
         
     | 
| 
      
 57 
     | 
    
         
            +
                            "framework_audit:location:organization" => (proc do |organization:, location:, framework_audit:|
         
     | 
| 
      
 58 
     | 
    
         
            +
                              raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
         
     | 
| 
      
 59 
     | 
    
         
            +
                              raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
         
     | 
| 
      
 60 
     | 
    
         
            +
             
     | 
| 
      
 61 
     | 
    
         
            +
                              "organizations/#{organization}/locations/#{location}/frameworkAudits/#{framework_audit}"
         
     | 
| 
      
 62 
     | 
    
         
            +
                            end)
         
     | 
| 
      
 63 
     | 
    
         
            +
                          }
         
     | 
| 
      
 64 
     | 
    
         
            +
             
     | 
| 
      
 65 
     | 
    
         
            +
                          resource = resources[args.keys.sort.join(":")]
         
     | 
| 
      
 66 
     | 
    
         
            +
                          raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
         
     | 
| 
      
 67 
     | 
    
         
            +
                          resource.call(**args)
         
     | 
| 
      
 68 
     | 
    
         
            +
                        end
         
     | 
| 
      
 69 
     | 
    
         
            +
             
     | 
| 
      
 70 
     | 
    
         
            +
                        ##
         
     | 
| 
      
 71 
     | 
    
         
            +
                        # Create a fully-qualified Location resource string.
         
     | 
| 
      
 72 
     | 
    
         
            +
                        #
         
     | 
| 
      
 73 
     | 
    
         
            +
                        # The resource will be in the following format:
         
     | 
| 
      
 74 
     | 
    
         
            +
                        #
         
     | 
| 
      
 75 
     | 
    
         
            +
                        # `projects/{project}/locations/{location}`
         
     | 
| 
      
 76 
     | 
    
         
            +
                        #
         
     | 
| 
      
 77 
     | 
    
         
            +
                        # @param project [String]
         
     | 
| 
      
 78 
     | 
    
         
            +
                        # @param location [String]
         
     | 
| 
      
 79 
     | 
    
         
            +
                        #
         
     | 
| 
      
 80 
     | 
    
         
            +
                        # @return [::String]
         
     | 
| 
      
 81 
     | 
    
         
            +
                        def location_path project:, location:
         
     | 
| 
      
 82 
     | 
    
         
            +
                          raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
         
     | 
| 
      
 83 
     | 
    
         
            +
             
     | 
| 
      
 84 
     | 
    
         
            +
                          "projects/#{project}/locations/#{location}"
         
     | 
| 
      
 85 
     | 
    
         
            +
                        end
         
     | 
| 
      
 86 
     | 
    
         
            +
             
     | 
| 
      
 87 
     | 
    
         
            +
                        ##
         
     | 
| 
      
 88 
     | 
    
         
            +
                        # Create a fully-qualified OrganizationLocation resource string.
         
     | 
| 
      
 89 
     | 
    
         
            +
                        #
         
     | 
| 
      
 90 
     | 
    
         
            +
                        # The resource will be in the following format:
         
     | 
| 
      
 91 
     | 
    
         
            +
                        #
         
     | 
| 
      
 92 
     | 
    
         
            +
                        # `organizations/{organization}/locations/{location}`
         
     | 
| 
      
 93 
     | 
    
         
            +
                        #
         
     | 
| 
      
 94 
     | 
    
         
            +
                        # @param organization [String]
         
     | 
| 
      
 95 
     | 
    
         
            +
                        # @param location [String]
         
     | 
| 
      
 96 
     | 
    
         
            +
                        #
         
     | 
| 
      
 97 
     | 
    
         
            +
                        # @return [::String]
         
     | 
| 
      
 98 
     | 
    
         
            +
                        def organization_location_path organization:, location:
         
     | 
| 
      
 99 
     | 
    
         
            +
                          raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
         
     | 
| 
      
 100 
     | 
    
         
            +
             
     | 
| 
      
 101 
     | 
    
         
            +
                          "organizations/#{organization}/locations/#{location}"
         
     | 
| 
      
 102 
     | 
    
         
            +
                        end
         
     | 
| 
      
 103 
     | 
    
         
            +
             
     | 
| 
      
 104 
     | 
    
         
            +
                        extend self
         
     | 
| 
      
 105 
     | 
    
         
            +
                      end
         
     | 
| 
      
 106 
     | 
    
         
            +
                    end
         
     | 
| 
      
 107 
     | 
    
         
            +
                  end
         
     | 
| 
      
 108 
     | 
    
         
            +
                end
         
     | 
| 
      
 109 
     | 
    
         
            +
              end
         
     | 
| 
      
 110 
     | 
    
         
            +
            end
         
     |