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,796 @@ 
     | 
|
| 
      
 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 
     | 
    
         
            +
            require "google/cloud/errors"
         
     | 
| 
      
 20 
     | 
    
         
            +
            require "google/cloud/cloudsecuritycompliance/v1/audit_pb"
         
     | 
| 
      
 21 
     | 
    
         
            +
            require "google/cloud/cloud_security_compliance/v1/audit/rest/service_stub"
         
     | 
| 
      
 22 
     | 
    
         
            +
            require "google/cloud/location/rest"
         
     | 
| 
      
 23 
     | 
    
         
            +
             
     | 
| 
      
 24 
     | 
    
         
            +
            module Google
         
     | 
| 
      
 25 
     | 
    
         
            +
              module Cloud
         
     | 
| 
      
 26 
     | 
    
         
            +
                module CloudSecurityCompliance
         
     | 
| 
      
 27 
     | 
    
         
            +
                  module V1
         
     | 
| 
      
 28 
     | 
    
         
            +
                    module Audit
         
     | 
| 
      
 29 
     | 
    
         
            +
                      module Rest
         
     | 
| 
      
 30 
     | 
    
         
            +
                        ##
         
     | 
| 
      
 31 
     | 
    
         
            +
                        # REST client for the Audit service.
         
     | 
| 
      
 32 
     | 
    
         
            +
                        #
         
     | 
| 
      
 33 
     | 
    
         
            +
                        # Service describing handlers for resources
         
     | 
| 
      
 34 
     | 
    
         
            +
                        #
         
     | 
| 
      
 35 
     | 
    
         
            +
                        class Client
         
     | 
| 
      
 36 
     | 
    
         
            +
                          # @private
         
     | 
| 
      
 37 
     | 
    
         
            +
                          API_VERSION = ""
         
     | 
| 
      
 38 
     | 
    
         
            +
             
     | 
| 
      
 39 
     | 
    
         
            +
                          # @private
         
     | 
| 
      
 40 
     | 
    
         
            +
                          DEFAULT_ENDPOINT_TEMPLATE = "cloudsecuritycompliance.$UNIVERSE_DOMAIN$"
         
     | 
| 
      
 41 
     | 
    
         
            +
             
     | 
| 
      
 42 
     | 
    
         
            +
                          include Paths
         
     | 
| 
      
 43 
     | 
    
         
            +
             
     | 
| 
      
 44 
     | 
    
         
            +
                          # @private
         
     | 
| 
      
 45 
     | 
    
         
            +
                          attr_reader :audit_stub
         
     | 
| 
      
 46 
     | 
    
         
            +
             
     | 
| 
      
 47 
     | 
    
         
            +
                          ##
         
     | 
| 
      
 48 
     | 
    
         
            +
                          # Configure the Audit Client class.
         
     | 
| 
      
 49 
     | 
    
         
            +
                          #
         
     | 
| 
      
 50 
     | 
    
         
            +
                          # See {::Google::Cloud::CloudSecurityCompliance::V1::Audit::Rest::Client::Configuration}
         
     | 
| 
      
 51 
     | 
    
         
            +
                          # for a description of the configuration fields.
         
     | 
| 
      
 52 
     | 
    
         
            +
                          #
         
     | 
| 
      
 53 
     | 
    
         
            +
                          # @example
         
     | 
| 
      
 54 
     | 
    
         
            +
                          #
         
     | 
| 
      
 55 
     | 
    
         
            +
                          #   # Modify the configuration for all Audit clients
         
     | 
| 
      
 56 
     | 
    
         
            +
                          #   ::Google::Cloud::CloudSecurityCompliance::V1::Audit::Rest::Client.configure do |config|
         
     | 
| 
      
 57 
     | 
    
         
            +
                          #     config.timeout = 10.0
         
     | 
| 
      
 58 
     | 
    
         
            +
                          #   end
         
     | 
| 
      
 59 
     | 
    
         
            +
                          #
         
     | 
| 
      
 60 
     | 
    
         
            +
                          # @yield [config] Configure the Client client.
         
     | 
| 
      
 61 
     | 
    
         
            +
                          # @yieldparam config [Client::Configuration]
         
     | 
| 
      
 62 
     | 
    
         
            +
                          #
         
     | 
| 
      
 63 
     | 
    
         
            +
                          # @return [Client::Configuration]
         
     | 
| 
      
 64 
     | 
    
         
            +
                          #
         
     | 
| 
      
 65 
     | 
    
         
            +
                          def self.configure
         
     | 
| 
      
 66 
     | 
    
         
            +
                            @configure ||= begin
         
     | 
| 
      
 67 
     | 
    
         
            +
                              namespace = ["Google", "Cloud", "CloudSecurityCompliance", "V1"]
         
     | 
| 
      
 68 
     | 
    
         
            +
                              parent_config = while namespace.any?
         
     | 
| 
      
 69 
     | 
    
         
            +
                                                parent_name = namespace.join "::"
         
     | 
| 
      
 70 
     | 
    
         
            +
                                                parent_const = const_get parent_name
         
     | 
| 
      
 71 
     | 
    
         
            +
                                                break parent_const.configure if parent_const.respond_to? :configure
         
     | 
| 
      
 72 
     | 
    
         
            +
                                                namespace.pop
         
     | 
| 
      
 73 
     | 
    
         
            +
                                              end
         
     | 
| 
      
 74 
     | 
    
         
            +
                              default_config = Client::Configuration.new parent_config
         
     | 
| 
      
 75 
     | 
    
         
            +
             
     | 
| 
      
 76 
     | 
    
         
            +
                              default_config.rpcs.generate_framework_audit_scope_report.timeout = 60.0
         
     | 
| 
      
 77 
     | 
    
         
            +
             
     | 
| 
      
 78 
     | 
    
         
            +
                              default_config.rpcs.create_framework_audit.timeout = 60.0
         
     | 
| 
      
 79 
     | 
    
         
            +
             
     | 
| 
      
 80 
     | 
    
         
            +
                              default_config.rpcs.list_framework_audits.timeout = 60.0
         
     | 
| 
      
 81 
     | 
    
         
            +
                              default_config.rpcs.list_framework_audits.retry_policy = {
         
     | 
| 
      
 82 
     | 
    
         
            +
                                initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
         
     | 
| 
      
 83 
     | 
    
         
            +
                              }
         
     | 
| 
      
 84 
     | 
    
         
            +
             
     | 
| 
      
 85 
     | 
    
         
            +
                              default_config.rpcs.get_framework_audit.timeout = 60.0
         
     | 
| 
      
 86 
     | 
    
         
            +
                              default_config.rpcs.get_framework_audit.retry_policy = {
         
     | 
| 
      
 87 
     | 
    
         
            +
                                initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
         
     | 
| 
      
 88 
     | 
    
         
            +
                              }
         
     | 
| 
      
 89 
     | 
    
         
            +
             
     | 
| 
      
 90 
     | 
    
         
            +
                              default_config
         
     | 
| 
      
 91 
     | 
    
         
            +
                            end
         
     | 
| 
      
 92 
     | 
    
         
            +
                            yield @configure if block_given?
         
     | 
| 
      
 93 
     | 
    
         
            +
                            @configure
         
     | 
| 
      
 94 
     | 
    
         
            +
                          end
         
     | 
| 
      
 95 
     | 
    
         
            +
             
     | 
| 
      
 96 
     | 
    
         
            +
                          ##
         
     | 
| 
      
 97 
     | 
    
         
            +
                          # Configure the Audit Client instance.
         
     | 
| 
      
 98 
     | 
    
         
            +
                          #
         
     | 
| 
      
 99 
     | 
    
         
            +
                          # The configuration is set to the derived mode, meaning that values can be changed,
         
     | 
| 
      
 100 
     | 
    
         
            +
                          # but structural changes (adding new fields, etc.) are not allowed. Structural changes
         
     | 
| 
      
 101 
     | 
    
         
            +
                          # should be made on {Client.configure}.
         
     | 
| 
      
 102 
     | 
    
         
            +
                          #
         
     | 
| 
      
 103 
     | 
    
         
            +
                          # See {::Google::Cloud::CloudSecurityCompliance::V1::Audit::Rest::Client::Configuration}
         
     | 
| 
      
 104 
     | 
    
         
            +
                          # for a description of the configuration fields.
         
     | 
| 
      
 105 
     | 
    
         
            +
                          #
         
     | 
| 
      
 106 
     | 
    
         
            +
                          # @yield [config] Configure the Client client.
         
     | 
| 
      
 107 
     | 
    
         
            +
                          # @yieldparam config [Client::Configuration]
         
     | 
| 
      
 108 
     | 
    
         
            +
                          #
         
     | 
| 
      
 109 
     | 
    
         
            +
                          # @return [Client::Configuration]
         
     | 
| 
      
 110 
     | 
    
         
            +
                          #
         
     | 
| 
      
 111 
     | 
    
         
            +
                          def configure
         
     | 
| 
      
 112 
     | 
    
         
            +
                            yield @config if block_given?
         
     | 
| 
      
 113 
     | 
    
         
            +
                            @config
         
     | 
| 
      
 114 
     | 
    
         
            +
                          end
         
     | 
| 
      
 115 
     | 
    
         
            +
             
     | 
| 
      
 116 
     | 
    
         
            +
                          ##
         
     | 
| 
      
 117 
     | 
    
         
            +
                          # The effective universe domain
         
     | 
| 
      
 118 
     | 
    
         
            +
                          #
         
     | 
| 
      
 119 
     | 
    
         
            +
                          # @return [String]
         
     | 
| 
      
 120 
     | 
    
         
            +
                          #
         
     | 
| 
      
 121 
     | 
    
         
            +
                          def universe_domain
         
     | 
| 
      
 122 
     | 
    
         
            +
                            @audit_stub.universe_domain
         
     | 
| 
      
 123 
     | 
    
         
            +
                          end
         
     | 
| 
      
 124 
     | 
    
         
            +
             
     | 
| 
      
 125 
     | 
    
         
            +
                          ##
         
     | 
| 
      
 126 
     | 
    
         
            +
                          # Create a new Audit REST client object.
         
     | 
| 
      
 127 
     | 
    
         
            +
                          #
         
     | 
| 
      
 128 
     | 
    
         
            +
                          # @example
         
     | 
| 
      
 129 
     | 
    
         
            +
                          #
         
     | 
| 
      
 130 
     | 
    
         
            +
                          #   # Create a client using the default configuration
         
     | 
| 
      
 131 
     | 
    
         
            +
                          #   client = ::Google::Cloud::CloudSecurityCompliance::V1::Audit::Rest::Client.new
         
     | 
| 
      
 132 
     | 
    
         
            +
                          #
         
     | 
| 
      
 133 
     | 
    
         
            +
                          #   # Create a client using a custom configuration
         
     | 
| 
      
 134 
     | 
    
         
            +
                          #   client = ::Google::Cloud::CloudSecurityCompliance::V1::Audit::Rest::Client.new do |config|
         
     | 
| 
      
 135 
     | 
    
         
            +
                          #     config.timeout = 10.0
         
     | 
| 
      
 136 
     | 
    
         
            +
                          #   end
         
     | 
| 
      
 137 
     | 
    
         
            +
                          #
         
     | 
| 
      
 138 
     | 
    
         
            +
                          # @yield [config] Configure the Audit client.
         
     | 
| 
      
 139 
     | 
    
         
            +
                          # @yieldparam config [Client::Configuration]
         
     | 
| 
      
 140 
     | 
    
         
            +
                          #
         
     | 
| 
      
 141 
     | 
    
         
            +
                          def initialize
         
     | 
| 
      
 142 
     | 
    
         
            +
                            # Create the configuration object
         
     | 
| 
      
 143 
     | 
    
         
            +
                            @config = Configuration.new Client.configure
         
     | 
| 
      
 144 
     | 
    
         
            +
             
     | 
| 
      
 145 
     | 
    
         
            +
                            # Yield the configuration if needed
         
     | 
| 
      
 146 
     | 
    
         
            +
                            yield @config if block_given?
         
     | 
| 
      
 147 
     | 
    
         
            +
             
     | 
| 
      
 148 
     | 
    
         
            +
                            # Create credentials
         
     | 
| 
      
 149 
     | 
    
         
            +
                            credentials = @config.credentials
         
     | 
| 
      
 150 
     | 
    
         
            +
                            # Use self-signed JWT if the endpoint is unchanged from default,
         
     | 
| 
      
 151 
     | 
    
         
            +
                            # but only if the default endpoint does not have a region prefix.
         
     | 
| 
      
 152 
     | 
    
         
            +
                            enable_self_signed_jwt = @config.endpoint.nil? ||
         
     | 
| 
      
 153 
     | 
    
         
            +
                                                     (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
         
     | 
| 
      
 154 
     | 
    
         
            +
                                                     !@config.endpoint.split(".").first.include?("-"))
         
     | 
| 
      
 155 
     | 
    
         
            +
                            credentials ||= Credentials.default scope: @config.scope,
         
     | 
| 
      
 156 
     | 
    
         
            +
                                                                enable_self_signed_jwt: enable_self_signed_jwt
         
     | 
| 
      
 157 
     | 
    
         
            +
                            if credentials.is_a?(::String) || credentials.is_a?(::Hash)
         
     | 
| 
      
 158 
     | 
    
         
            +
                              credentials = Credentials.new credentials, scope: @config.scope
         
     | 
| 
      
 159 
     | 
    
         
            +
                            end
         
     | 
| 
      
 160 
     | 
    
         
            +
             
     | 
| 
      
 161 
     | 
    
         
            +
                            @quota_project_id = @config.quota_project
         
     | 
| 
      
 162 
     | 
    
         
            +
                            @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
         
     | 
| 
      
 163 
     | 
    
         
            +
             
     | 
| 
      
 164 
     | 
    
         
            +
                            @operations_client = ::Google::Cloud::CloudSecurityCompliance::V1::Audit::Rest::Operations.new do |config|
         
     | 
| 
      
 165 
     | 
    
         
            +
                              config.credentials = credentials
         
     | 
| 
      
 166 
     | 
    
         
            +
                              config.quota_project = @quota_project_id
         
     | 
| 
      
 167 
     | 
    
         
            +
                              config.endpoint = @config.endpoint
         
     | 
| 
      
 168 
     | 
    
         
            +
                              config.universe_domain = @config.universe_domain
         
     | 
| 
      
 169 
     | 
    
         
            +
                            end
         
     | 
| 
      
 170 
     | 
    
         
            +
             
     | 
| 
      
 171 
     | 
    
         
            +
                            @audit_stub = ::Google::Cloud::CloudSecurityCompliance::V1::Audit::Rest::ServiceStub.new(
         
     | 
| 
      
 172 
     | 
    
         
            +
                              endpoint: @config.endpoint,
         
     | 
| 
      
 173 
     | 
    
         
            +
                              endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
         
     | 
| 
      
 174 
     | 
    
         
            +
                              universe_domain: @config.universe_domain,
         
     | 
| 
      
 175 
     | 
    
         
            +
                              credentials: credentials,
         
     | 
| 
      
 176 
     | 
    
         
            +
                              logger: @config.logger
         
     | 
| 
      
 177 
     | 
    
         
            +
                            )
         
     | 
| 
      
 178 
     | 
    
         
            +
             
     | 
| 
      
 179 
     | 
    
         
            +
                            @audit_stub.logger(stub: true)&.info do |entry|
         
     | 
| 
      
 180 
     | 
    
         
            +
                              entry.set_system_name
         
     | 
| 
      
 181 
     | 
    
         
            +
                              entry.set_service
         
     | 
| 
      
 182 
     | 
    
         
            +
                              entry.message = "Created client for #{entry.service}"
         
     | 
| 
      
 183 
     | 
    
         
            +
                              entry.set_credentials_fields credentials
         
     | 
| 
      
 184 
     | 
    
         
            +
                              entry.set "customEndpoint", @config.endpoint if @config.endpoint
         
     | 
| 
      
 185 
     | 
    
         
            +
                              entry.set "defaultTimeout", @config.timeout if @config.timeout
         
     | 
| 
      
 186 
     | 
    
         
            +
                              entry.set "quotaProject", @quota_project_id if @quota_project_id
         
     | 
| 
      
 187 
     | 
    
         
            +
                            end
         
     | 
| 
      
 188 
     | 
    
         
            +
             
     | 
| 
      
 189 
     | 
    
         
            +
                            @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
         
     | 
| 
      
 190 
     | 
    
         
            +
                              config.credentials = credentials
         
     | 
| 
      
 191 
     | 
    
         
            +
                              config.quota_project = @quota_project_id
         
     | 
| 
      
 192 
     | 
    
         
            +
                              config.endpoint = @audit_stub.endpoint
         
     | 
| 
      
 193 
     | 
    
         
            +
                              config.universe_domain = @audit_stub.universe_domain
         
     | 
| 
      
 194 
     | 
    
         
            +
                              config.bindings_override = @config.bindings_override
         
     | 
| 
      
 195 
     | 
    
         
            +
                              config.logger = @audit_stub.logger if config.respond_to? :logger=
         
     | 
| 
      
 196 
     | 
    
         
            +
                            end
         
     | 
| 
      
 197 
     | 
    
         
            +
                          end
         
     | 
| 
      
 198 
     | 
    
         
            +
             
     | 
| 
      
 199 
     | 
    
         
            +
                          ##
         
     | 
| 
      
 200 
     | 
    
         
            +
                          # Get the associated client for long-running operations.
         
     | 
| 
      
 201 
     | 
    
         
            +
                          #
         
     | 
| 
      
 202 
     | 
    
         
            +
                          # @return [::Google::Cloud::CloudSecurityCompliance::V1::Audit::Rest::Operations]
         
     | 
| 
      
 203 
     | 
    
         
            +
                          #
         
     | 
| 
      
 204 
     | 
    
         
            +
                          attr_reader :operations_client
         
     | 
| 
      
 205 
     | 
    
         
            +
             
     | 
| 
      
 206 
     | 
    
         
            +
                          ##
         
     | 
| 
      
 207 
     | 
    
         
            +
                          # Get the associated client for mix-in of the Locations.
         
     | 
| 
      
 208 
     | 
    
         
            +
                          #
         
     | 
| 
      
 209 
     | 
    
         
            +
                          # @return [Google::Cloud::Location::Locations::Rest::Client]
         
     | 
| 
      
 210 
     | 
    
         
            +
                          #
         
     | 
| 
      
 211 
     | 
    
         
            +
                          attr_reader :location_client
         
     | 
| 
      
 212 
     | 
    
         
            +
             
     | 
| 
      
 213 
     | 
    
         
            +
                          ##
         
     | 
| 
      
 214 
     | 
    
         
            +
                          # The logger used for request/response debug logging.
         
     | 
| 
      
 215 
     | 
    
         
            +
                          #
         
     | 
| 
      
 216 
     | 
    
         
            +
                          # @return [Logger]
         
     | 
| 
      
 217 
     | 
    
         
            +
                          #
         
     | 
| 
      
 218 
     | 
    
         
            +
                          def logger
         
     | 
| 
      
 219 
     | 
    
         
            +
                            @audit_stub.logger
         
     | 
| 
      
 220 
     | 
    
         
            +
                          end
         
     | 
| 
      
 221 
     | 
    
         
            +
             
     | 
| 
      
 222 
     | 
    
         
            +
                          # Service calls
         
     | 
| 
      
 223 
     | 
    
         
            +
             
     | 
| 
      
 224 
     | 
    
         
            +
                          ##
         
     | 
| 
      
 225 
     | 
    
         
            +
                          # Generates an audit scope report for a framework.
         
     | 
| 
      
 226 
     | 
    
         
            +
                          #
         
     | 
| 
      
 227 
     | 
    
         
            +
                          # @overload generate_framework_audit_scope_report(request, options = nil)
         
     | 
| 
      
 228 
     | 
    
         
            +
                          #   Pass arguments to `generate_framework_audit_scope_report` via a request object, either of type
         
     | 
| 
      
 229 
     | 
    
         
            +
                          #   {::Google::Cloud::CloudSecurityCompliance::V1::GenerateFrameworkAuditScopeReportRequest} or an equivalent Hash.
         
     | 
| 
      
 230 
     | 
    
         
            +
                          #
         
     | 
| 
      
 231 
     | 
    
         
            +
                          #   @param request [::Google::Cloud::CloudSecurityCompliance::V1::GenerateFrameworkAuditScopeReportRequest, ::Hash]
         
     | 
| 
      
 232 
     | 
    
         
            +
                          #     A request object representing the call parameters. Required. To specify no
         
     | 
| 
      
 233 
     | 
    
         
            +
                          #     parameters, or to keep all the default parameter values, pass an empty Hash.
         
     | 
| 
      
 234 
     | 
    
         
            +
                          #   @param options [::Gapic::CallOptions, ::Hash]
         
     | 
| 
      
 235 
     | 
    
         
            +
                          #     Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
         
     | 
| 
      
 236 
     | 
    
         
            +
                          #
         
     | 
| 
      
 237 
     | 
    
         
            +
                          # @overload generate_framework_audit_scope_report(scope: nil, report_format: nil, compliance_framework: nil)
         
     | 
| 
      
 238 
     | 
    
         
            +
                          #   Pass arguments to `generate_framework_audit_scope_report` via keyword arguments. Note that at
         
     | 
| 
      
 239 
     | 
    
         
            +
                          #   least one keyword argument is required. To specify no parameters, or to keep all
         
     | 
| 
      
 240 
     | 
    
         
            +
                          #   the default parameter values, pass an empty Hash as a request object (see above).
         
     | 
| 
      
 241 
     | 
    
         
            +
                          #
         
     | 
| 
      
 242 
     | 
    
         
            +
                          #   @param scope [::String]
         
     | 
| 
      
 243 
     | 
    
         
            +
                          #     Required. The organization, folder or project for the audit report.
         
     | 
| 
      
 244 
     | 
    
         
            +
                          #
         
     | 
| 
      
 245 
     | 
    
         
            +
                          #     Supported formats are the following:
         
     | 
| 
      
 246 
     | 
    
         
            +
                          #
         
     | 
| 
      
 247 
     | 
    
         
            +
                          #     * `projects/{project_id}/locations/{location}`
         
     | 
| 
      
 248 
     | 
    
         
            +
                          #     * `folders/{folder_id}/locations/{location}`
         
     | 
| 
      
 249 
     | 
    
         
            +
                          #     * `organizations/{organization_id}/locations/{location}`
         
     | 
| 
      
 250 
     | 
    
         
            +
                          #   @param report_format [::Google::Cloud::CloudSecurityCompliance::V1::GenerateFrameworkAuditScopeReportRequest::Format]
         
     | 
| 
      
 251 
     | 
    
         
            +
                          #     Required. The format that the scope report bytes is returned in.
         
     | 
| 
      
 252 
     | 
    
         
            +
                          #   @param compliance_framework [::String]
         
     | 
| 
      
 253 
     | 
    
         
            +
                          #     Required. The compliance framework that the scope report is generated for.
         
     | 
| 
      
 254 
     | 
    
         
            +
                          # @yield [result, operation] Access the result along with the TransportOperation object
         
     | 
| 
      
 255 
     | 
    
         
            +
                          # @yieldparam result [::Google::Cloud::CloudSecurityCompliance::V1::GenerateFrameworkAuditScopeReportResponse]
         
     | 
| 
      
 256 
     | 
    
         
            +
                          # @yieldparam operation [::Gapic::Rest::TransportOperation]
         
     | 
| 
      
 257 
     | 
    
         
            +
                          #
         
     | 
| 
      
 258 
     | 
    
         
            +
                          # @return [::Google::Cloud::CloudSecurityCompliance::V1::GenerateFrameworkAuditScopeReportResponse]
         
     | 
| 
      
 259 
     | 
    
         
            +
                          #
         
     | 
| 
      
 260 
     | 
    
         
            +
                          # @raise [::Google::Cloud::Error] if the REST call is aborted.
         
     | 
| 
      
 261 
     | 
    
         
            +
                          #
         
     | 
| 
      
 262 
     | 
    
         
            +
                          # @example Basic example
         
     | 
| 
      
 263 
     | 
    
         
            +
                          #   require "google/cloud/cloud_security_compliance/v1"
         
     | 
| 
      
 264 
     | 
    
         
            +
                          #
         
     | 
| 
      
 265 
     | 
    
         
            +
                          #   # Create a client object. The client can be reused for multiple calls.
         
     | 
| 
      
 266 
     | 
    
         
            +
                          #   client = Google::Cloud::CloudSecurityCompliance::V1::Audit::Rest::Client.new
         
     | 
| 
      
 267 
     | 
    
         
            +
                          #
         
     | 
| 
      
 268 
     | 
    
         
            +
                          #   # Create a request. To set request fields, pass in keyword arguments.
         
     | 
| 
      
 269 
     | 
    
         
            +
                          #   request = Google::Cloud::CloudSecurityCompliance::V1::GenerateFrameworkAuditScopeReportRequest.new
         
     | 
| 
      
 270 
     | 
    
         
            +
                          #
         
     | 
| 
      
 271 
     | 
    
         
            +
                          #   # Call the generate_framework_audit_scope_report method.
         
     | 
| 
      
 272 
     | 
    
         
            +
                          #   result = client.generate_framework_audit_scope_report request
         
     | 
| 
      
 273 
     | 
    
         
            +
                          #
         
     | 
| 
      
 274 
     | 
    
         
            +
                          #   # The returned object is of type Google::Cloud::CloudSecurityCompliance::V1::GenerateFrameworkAuditScopeReportResponse.
         
     | 
| 
      
 275 
     | 
    
         
            +
                          #   p result
         
     | 
| 
      
 276 
     | 
    
         
            +
                          #
         
     | 
| 
      
 277 
     | 
    
         
            +
                          def generate_framework_audit_scope_report request, options = nil
         
     | 
| 
      
 278 
     | 
    
         
            +
                            raise ::ArgumentError, "request must be provided" if request.nil?
         
     | 
| 
      
 279 
     | 
    
         
            +
             
     | 
| 
      
 280 
     | 
    
         
            +
                            request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CloudSecurityCompliance::V1::GenerateFrameworkAuditScopeReportRequest
         
     | 
| 
      
 281 
     | 
    
         
            +
             
     | 
| 
      
 282 
     | 
    
         
            +
                            # Converts hash and nil to an options object
         
     | 
| 
      
 283 
     | 
    
         
            +
                            options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
         
     | 
| 
      
 284 
     | 
    
         
            +
             
     | 
| 
      
 285 
     | 
    
         
            +
                            # Customize the options with defaults
         
     | 
| 
      
 286 
     | 
    
         
            +
                            call_metadata = @config.rpcs.generate_framework_audit_scope_report.metadata.to_h
         
     | 
| 
      
 287 
     | 
    
         
            +
             
     | 
| 
      
 288 
     | 
    
         
            +
                            # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
         
     | 
| 
      
 289 
     | 
    
         
            +
                            call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         
     | 
| 
      
 290 
     | 
    
         
            +
                              lib_name: @config.lib_name, lib_version: @config.lib_version,
         
     | 
| 
      
 291 
     | 
    
         
            +
                              gapic_version: ::Google::Cloud::CloudSecurityCompliance::V1::VERSION,
         
     | 
| 
      
 292 
     | 
    
         
            +
                              transports_version_send: [:rest]
         
     | 
| 
      
 293 
     | 
    
         
            +
             
     | 
| 
      
 294 
     | 
    
         
            +
                            call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
         
     | 
| 
      
 295 
     | 
    
         
            +
                            call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
      
 296 
     | 
    
         
            +
             
     | 
| 
      
 297 
     | 
    
         
            +
                            options.apply_defaults timeout:      @config.rpcs.generate_framework_audit_scope_report.timeout,
         
     | 
| 
      
 298 
     | 
    
         
            +
                                                   metadata:     call_metadata,
         
     | 
| 
      
 299 
     | 
    
         
            +
                                                   retry_policy: @config.rpcs.generate_framework_audit_scope_report.retry_policy
         
     | 
| 
      
 300 
     | 
    
         
            +
             
     | 
| 
      
 301 
     | 
    
         
            +
                            options.apply_defaults timeout:      @config.timeout,
         
     | 
| 
      
 302 
     | 
    
         
            +
                                                   metadata:     @config.metadata,
         
     | 
| 
      
 303 
     | 
    
         
            +
                                                   retry_policy: @config.retry_policy
         
     | 
| 
      
 304 
     | 
    
         
            +
             
     | 
| 
      
 305 
     | 
    
         
            +
                            @audit_stub.generate_framework_audit_scope_report request, options do |result, operation|
         
     | 
| 
      
 306 
     | 
    
         
            +
                              yield result, operation if block_given?
         
     | 
| 
      
 307 
     | 
    
         
            +
                            end
         
     | 
| 
      
 308 
     | 
    
         
            +
                          rescue ::Gapic::Rest::Error => e
         
     | 
| 
      
 309 
     | 
    
         
            +
                            raise ::Google::Cloud::Error.from_error(e)
         
     | 
| 
      
 310 
     | 
    
         
            +
                          end
         
     | 
| 
      
 311 
     | 
    
         
            +
             
     | 
| 
      
 312 
     | 
    
         
            +
                          ##
         
     | 
| 
      
 313 
     | 
    
         
            +
                          # Creates an audit scope report for a framework.
         
     | 
| 
      
 314 
     | 
    
         
            +
                          #
         
     | 
| 
      
 315 
     | 
    
         
            +
                          # @overload create_framework_audit(request, options = nil)
         
     | 
| 
      
 316 
     | 
    
         
            +
                          #   Pass arguments to `create_framework_audit` via a request object, either of type
         
     | 
| 
      
 317 
     | 
    
         
            +
                          #   {::Google::Cloud::CloudSecurityCompliance::V1::CreateFrameworkAuditRequest} or an equivalent Hash.
         
     | 
| 
      
 318 
     | 
    
         
            +
                          #
         
     | 
| 
      
 319 
     | 
    
         
            +
                          #   @param request [::Google::Cloud::CloudSecurityCompliance::V1::CreateFrameworkAuditRequest, ::Hash]
         
     | 
| 
      
 320 
     | 
    
         
            +
                          #     A request object representing the call parameters. Required. To specify no
         
     | 
| 
      
 321 
     | 
    
         
            +
                          #     parameters, or to keep all the default parameter values, pass an empty Hash.
         
     | 
| 
      
 322 
     | 
    
         
            +
                          #   @param options [::Gapic::CallOptions, ::Hash]
         
     | 
| 
      
 323 
     | 
    
         
            +
                          #     Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
         
     | 
| 
      
 324 
     | 
    
         
            +
                          #
         
     | 
| 
      
 325 
     | 
    
         
            +
                          # @overload create_framework_audit(parent: nil, framework_audit_id: nil, framework_audit: nil)
         
     | 
| 
      
 326 
     | 
    
         
            +
                          #   Pass arguments to `create_framework_audit` via keyword arguments. Note that at
         
     | 
| 
      
 327 
     | 
    
         
            +
                          #   least one keyword argument is required. To specify no parameters, or to keep all
         
     | 
| 
      
 328 
     | 
    
         
            +
                          #   the default parameter values, pass an empty Hash as a request object (see above).
         
     | 
| 
      
 329 
     | 
    
         
            +
                          #
         
     | 
| 
      
 330 
     | 
    
         
            +
                          #   @param parent [::String]
         
     | 
| 
      
 331 
     | 
    
         
            +
                          #     Required. The parent resource where this framework audit is created.
         
     | 
| 
      
 332 
     | 
    
         
            +
                          #
         
     | 
| 
      
 333 
     | 
    
         
            +
                          #     Supported formats are the following:
         
     | 
| 
      
 334 
     | 
    
         
            +
                          #
         
     | 
| 
      
 335 
     | 
    
         
            +
                          #     * `organizations/{organization_id}/locations/{location}`
         
     | 
| 
      
 336 
     | 
    
         
            +
                          #     * `folders/{folder_id}/locations/{location}`
         
     | 
| 
      
 337 
     | 
    
         
            +
                          #     * `projects/{project_id}/locations/{location}`
         
     | 
| 
      
 338 
     | 
    
         
            +
                          #   @param framework_audit_id [::String]
         
     | 
| 
      
 339 
     | 
    
         
            +
                          #     Optional. The ID to use for the framework audit. The ID becomes the final
         
     | 
| 
      
 340 
     | 
    
         
            +
                          #     component of the framework audit's full resource name.
         
     | 
| 
      
 341 
     | 
    
         
            +
                          #
         
     | 
| 
      
 342 
     | 
    
         
            +
                          #     The ID must be between 4-63 characters, and valid characters
         
     | 
| 
      
 343 
     | 
    
         
            +
                          #     are `\[a-z][0-9]-\`.
         
     | 
| 
      
 344 
     | 
    
         
            +
                          #   @param framework_audit [::Google::Cloud::CloudSecurityCompliance::V1::FrameworkAudit, ::Hash]
         
     | 
| 
      
 345 
     | 
    
         
            +
                          #     Required. The framework audit to create.
         
     | 
| 
      
 346 
     | 
    
         
            +
                          # @yield [result, operation] Access the result along with the TransportOperation object
         
     | 
| 
      
 347 
     | 
    
         
            +
                          # @yieldparam result [::Gapic::Operation]
         
     | 
| 
      
 348 
     | 
    
         
            +
                          # @yieldparam operation [::Gapic::Rest::TransportOperation]
         
     | 
| 
      
 349 
     | 
    
         
            +
                          #
         
     | 
| 
      
 350 
     | 
    
         
            +
                          # @return [::Gapic::Operation]
         
     | 
| 
      
 351 
     | 
    
         
            +
                          #
         
     | 
| 
      
 352 
     | 
    
         
            +
                          # @raise [::Google::Cloud::Error] if the REST call is aborted.
         
     | 
| 
      
 353 
     | 
    
         
            +
                          #
         
     | 
| 
      
 354 
     | 
    
         
            +
                          # @example Basic example
         
     | 
| 
      
 355 
     | 
    
         
            +
                          #   require "google/cloud/cloud_security_compliance/v1"
         
     | 
| 
      
 356 
     | 
    
         
            +
                          #
         
     | 
| 
      
 357 
     | 
    
         
            +
                          #   # Create a client object. The client can be reused for multiple calls.
         
     | 
| 
      
 358 
     | 
    
         
            +
                          #   client = Google::Cloud::CloudSecurityCompliance::V1::Audit::Rest::Client.new
         
     | 
| 
      
 359 
     | 
    
         
            +
                          #
         
     | 
| 
      
 360 
     | 
    
         
            +
                          #   # Create a request. To set request fields, pass in keyword arguments.
         
     | 
| 
      
 361 
     | 
    
         
            +
                          #   request = Google::Cloud::CloudSecurityCompliance::V1::CreateFrameworkAuditRequest.new
         
     | 
| 
      
 362 
     | 
    
         
            +
                          #
         
     | 
| 
      
 363 
     | 
    
         
            +
                          #   # Call the create_framework_audit method.
         
     | 
| 
      
 364 
     | 
    
         
            +
                          #   result = client.create_framework_audit request
         
     | 
| 
      
 365 
     | 
    
         
            +
                          #
         
     | 
| 
      
 366 
     | 
    
         
            +
                          #   # The returned object is of type Gapic::Operation. You can use it to
         
     | 
| 
      
 367 
     | 
    
         
            +
                          #   # check the status of an operation, cancel it, or wait for results.
         
     | 
| 
      
 368 
     | 
    
         
            +
                          #   # Here is how to wait for a response.
         
     | 
| 
      
 369 
     | 
    
         
            +
                          #   result.wait_until_done! timeout: 60
         
     | 
| 
      
 370 
     | 
    
         
            +
                          #   if result.response?
         
     | 
| 
      
 371 
     | 
    
         
            +
                          #     p result.response
         
     | 
| 
      
 372 
     | 
    
         
            +
                          #   else
         
     | 
| 
      
 373 
     | 
    
         
            +
                          #     puts "No response received."
         
     | 
| 
      
 374 
     | 
    
         
            +
                          #   end
         
     | 
| 
      
 375 
     | 
    
         
            +
                          #
         
     | 
| 
      
 376 
     | 
    
         
            +
                          def create_framework_audit request, options = nil
         
     | 
| 
      
 377 
     | 
    
         
            +
                            raise ::ArgumentError, "request must be provided" if request.nil?
         
     | 
| 
      
 378 
     | 
    
         
            +
             
     | 
| 
      
 379 
     | 
    
         
            +
                            request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CloudSecurityCompliance::V1::CreateFrameworkAuditRequest
         
     | 
| 
      
 380 
     | 
    
         
            +
             
     | 
| 
      
 381 
     | 
    
         
            +
                            # Converts hash and nil to an options object
         
     | 
| 
      
 382 
     | 
    
         
            +
                            options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
         
     | 
| 
      
 383 
     | 
    
         
            +
             
     | 
| 
      
 384 
     | 
    
         
            +
                            # Customize the options with defaults
         
     | 
| 
      
 385 
     | 
    
         
            +
                            call_metadata = @config.rpcs.create_framework_audit.metadata.to_h
         
     | 
| 
      
 386 
     | 
    
         
            +
             
     | 
| 
      
 387 
     | 
    
         
            +
                            # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
         
     | 
| 
      
 388 
     | 
    
         
            +
                            call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         
     | 
| 
      
 389 
     | 
    
         
            +
                              lib_name: @config.lib_name, lib_version: @config.lib_version,
         
     | 
| 
      
 390 
     | 
    
         
            +
                              gapic_version: ::Google::Cloud::CloudSecurityCompliance::V1::VERSION,
         
     | 
| 
      
 391 
     | 
    
         
            +
                              transports_version_send: [:rest]
         
     | 
| 
      
 392 
     | 
    
         
            +
             
     | 
| 
      
 393 
     | 
    
         
            +
                            call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
         
     | 
| 
      
 394 
     | 
    
         
            +
                            call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
      
 395 
     | 
    
         
            +
             
     | 
| 
      
 396 
     | 
    
         
            +
                            options.apply_defaults timeout:      @config.rpcs.create_framework_audit.timeout,
         
     | 
| 
      
 397 
     | 
    
         
            +
                                                   metadata:     call_metadata,
         
     | 
| 
      
 398 
     | 
    
         
            +
                                                   retry_policy: @config.rpcs.create_framework_audit.retry_policy
         
     | 
| 
      
 399 
     | 
    
         
            +
             
     | 
| 
      
 400 
     | 
    
         
            +
                            options.apply_defaults timeout:      @config.timeout,
         
     | 
| 
      
 401 
     | 
    
         
            +
                                                   metadata:     @config.metadata,
         
     | 
| 
      
 402 
     | 
    
         
            +
                                                   retry_policy: @config.retry_policy
         
     | 
| 
      
 403 
     | 
    
         
            +
             
     | 
| 
      
 404 
     | 
    
         
            +
                            @audit_stub.create_framework_audit request, options do |result, operation|
         
     | 
| 
      
 405 
     | 
    
         
            +
                              result = ::Gapic::Operation.new result, @operations_client, options: options
         
     | 
| 
      
 406 
     | 
    
         
            +
                              yield result, operation if block_given?
         
     | 
| 
      
 407 
     | 
    
         
            +
                              throw :response, result
         
     | 
| 
      
 408 
     | 
    
         
            +
                            end
         
     | 
| 
      
 409 
     | 
    
         
            +
                          rescue ::Gapic::Rest::Error => e
         
     | 
| 
      
 410 
     | 
    
         
            +
                            raise ::Google::Cloud::Error.from_error(e)
         
     | 
| 
      
 411 
     | 
    
         
            +
                          end
         
     | 
| 
      
 412 
     | 
    
         
            +
             
     | 
| 
      
 413 
     | 
    
         
            +
                          ##
         
     | 
| 
      
 414 
     | 
    
         
            +
                          # Lists the framework audits for a given organization, folder, or project.
         
     | 
| 
      
 415 
     | 
    
         
            +
                          #
         
     | 
| 
      
 416 
     | 
    
         
            +
                          # @overload list_framework_audits(request, options = nil)
         
     | 
| 
      
 417 
     | 
    
         
            +
                          #   Pass arguments to `list_framework_audits` via a request object, either of type
         
     | 
| 
      
 418 
     | 
    
         
            +
                          #   {::Google::Cloud::CloudSecurityCompliance::V1::ListFrameworkAuditsRequest} or an equivalent Hash.
         
     | 
| 
      
 419 
     | 
    
         
            +
                          #
         
     | 
| 
      
 420 
     | 
    
         
            +
                          #   @param request [::Google::Cloud::CloudSecurityCompliance::V1::ListFrameworkAuditsRequest, ::Hash]
         
     | 
| 
      
 421 
     | 
    
         
            +
                          #     A request object representing the call parameters. Required. To specify no
         
     | 
| 
      
 422 
     | 
    
         
            +
                          #     parameters, or to keep all the default parameter values, pass an empty Hash.
         
     | 
| 
      
 423 
     | 
    
         
            +
                          #   @param options [::Gapic::CallOptions, ::Hash]
         
     | 
| 
      
 424 
     | 
    
         
            +
                          #     Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
         
     | 
| 
      
 425 
     | 
    
         
            +
                          #
         
     | 
| 
      
 426 
     | 
    
         
            +
                          # @overload list_framework_audits(parent: nil, page_size: nil, page_token: nil, filter: nil)
         
     | 
| 
      
 427 
     | 
    
         
            +
                          #   Pass arguments to `list_framework_audits` via keyword arguments. Note that at
         
     | 
| 
      
 428 
     | 
    
         
            +
                          #   least one keyword argument is required. To specify no parameters, or to keep all
         
     | 
| 
      
 429 
     | 
    
         
            +
                          #   the default parameter values, pass an empty Hash as a request object (see above).
         
     | 
| 
      
 430 
     | 
    
         
            +
                          #
         
     | 
| 
      
 431 
     | 
    
         
            +
                          #   @param parent [::String]
         
     | 
| 
      
 432 
     | 
    
         
            +
                          #     Required. The parent resource where the framework audits are listed.
         
     | 
| 
      
 433 
     | 
    
         
            +
                          #
         
     | 
| 
      
 434 
     | 
    
         
            +
                          #     Supported formats are the following:
         
     | 
| 
      
 435 
     | 
    
         
            +
                          #
         
     | 
| 
      
 436 
     | 
    
         
            +
                          #     * `organizations/{organization_id}/locations/{location}`
         
     | 
| 
      
 437 
     | 
    
         
            +
                          #     * `folders/{folder_id}/locations/{location}`
         
     | 
| 
      
 438 
     | 
    
         
            +
                          #     * `projects/{project_id}/locations/{location}`
         
     | 
| 
      
 439 
     | 
    
         
            +
                          #   @param page_size [::Integer]
         
     | 
| 
      
 440 
     | 
    
         
            +
                          #     Optional. The maximum number of framework audits to return. The service
         
     | 
| 
      
 441 
     | 
    
         
            +
                          #     might return fewer audits than this value. If unspecified, a maximum of 10
         
     | 
| 
      
 442 
     | 
    
         
            +
                          #     framework audits are returned. The maximum value is 50; values above 50 are
         
     | 
| 
      
 443 
     | 
    
         
            +
                          #     limited to 50.
         
     | 
| 
      
 444 
     | 
    
         
            +
                          #   @param page_token [::String]
         
     | 
| 
      
 445 
     | 
    
         
            +
                          #     Optional. The `next_page_token` value that's returned from a previous list
         
     | 
| 
      
 446 
     | 
    
         
            +
                          #     request, if any.
         
     | 
| 
      
 447 
     | 
    
         
            +
                          #   @param filter [::String]
         
     | 
| 
      
 448 
     | 
    
         
            +
                          #     Optional. The filters to apply to the framework audits.
         
     | 
| 
      
 449 
     | 
    
         
            +
                          #     Supported filters are `compliance_framework`, `compliance_state`,
         
     | 
| 
      
 450 
     | 
    
         
            +
                          #     `create_time,` and `framework_audit_name`. If the filter is invalid, an
         
     | 
| 
      
 451 
     | 
    
         
            +
                          #     invalid argument error is returned.
         
     | 
| 
      
 452 
     | 
    
         
            +
                          #     For syntax details, see [AIP-160][https://google.aip.dev/160].
         
     | 
| 
      
 453 
     | 
    
         
            +
                          # @yield [result, operation] Access the result along with the TransportOperation object
         
     | 
| 
      
 454 
     | 
    
         
            +
                          # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::CloudSecurityCompliance::V1::FrameworkAudit>]
         
     | 
| 
      
 455 
     | 
    
         
            +
                          # @yieldparam operation [::Gapic::Rest::TransportOperation]
         
     | 
| 
      
 456 
     | 
    
         
            +
                          #
         
     | 
| 
      
 457 
     | 
    
         
            +
                          # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::CloudSecurityCompliance::V1::FrameworkAudit>]
         
     | 
| 
      
 458 
     | 
    
         
            +
                          #
         
     | 
| 
      
 459 
     | 
    
         
            +
                          # @raise [::Google::Cloud::Error] if the REST call is aborted.
         
     | 
| 
      
 460 
     | 
    
         
            +
                          #
         
     | 
| 
      
 461 
     | 
    
         
            +
                          # @example Basic example
         
     | 
| 
      
 462 
     | 
    
         
            +
                          #   require "google/cloud/cloud_security_compliance/v1"
         
     | 
| 
      
 463 
     | 
    
         
            +
                          #
         
     | 
| 
      
 464 
     | 
    
         
            +
                          #   # Create a client object. The client can be reused for multiple calls.
         
     | 
| 
      
 465 
     | 
    
         
            +
                          #   client = Google::Cloud::CloudSecurityCompliance::V1::Audit::Rest::Client.new
         
     | 
| 
      
 466 
     | 
    
         
            +
                          #
         
     | 
| 
      
 467 
     | 
    
         
            +
                          #   # Create a request. To set request fields, pass in keyword arguments.
         
     | 
| 
      
 468 
     | 
    
         
            +
                          #   request = Google::Cloud::CloudSecurityCompliance::V1::ListFrameworkAuditsRequest.new
         
     | 
| 
      
 469 
     | 
    
         
            +
                          #
         
     | 
| 
      
 470 
     | 
    
         
            +
                          #   # Call the list_framework_audits method.
         
     | 
| 
      
 471 
     | 
    
         
            +
                          #   result = client.list_framework_audits request
         
     | 
| 
      
 472 
     | 
    
         
            +
                          #
         
     | 
| 
      
 473 
     | 
    
         
            +
                          #   # The returned object is of type Gapic::PagedEnumerable. You can iterate
         
     | 
| 
      
 474 
     | 
    
         
            +
                          #   # over elements, and API calls will be issued to fetch pages as needed.
         
     | 
| 
      
 475 
     | 
    
         
            +
                          #   result.each do |item|
         
     | 
| 
      
 476 
     | 
    
         
            +
                          #     # Each element is of type ::Google::Cloud::CloudSecurityCompliance::V1::FrameworkAudit.
         
     | 
| 
      
 477 
     | 
    
         
            +
                          #     p item
         
     | 
| 
      
 478 
     | 
    
         
            +
                          #   end
         
     | 
| 
      
 479 
     | 
    
         
            +
                          #
         
     | 
| 
      
 480 
     | 
    
         
            +
                          def list_framework_audits request, options = nil
         
     | 
| 
      
 481 
     | 
    
         
            +
                            raise ::ArgumentError, "request must be provided" if request.nil?
         
     | 
| 
      
 482 
     | 
    
         
            +
             
     | 
| 
      
 483 
     | 
    
         
            +
                            request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CloudSecurityCompliance::V1::ListFrameworkAuditsRequest
         
     | 
| 
      
 484 
     | 
    
         
            +
             
     | 
| 
      
 485 
     | 
    
         
            +
                            # Converts hash and nil to an options object
         
     | 
| 
      
 486 
     | 
    
         
            +
                            options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
         
     | 
| 
      
 487 
     | 
    
         
            +
             
     | 
| 
      
 488 
     | 
    
         
            +
                            # Customize the options with defaults
         
     | 
| 
      
 489 
     | 
    
         
            +
                            call_metadata = @config.rpcs.list_framework_audits.metadata.to_h
         
     | 
| 
      
 490 
     | 
    
         
            +
             
     | 
| 
      
 491 
     | 
    
         
            +
                            # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
         
     | 
| 
      
 492 
     | 
    
         
            +
                            call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         
     | 
| 
      
 493 
     | 
    
         
            +
                              lib_name: @config.lib_name, lib_version: @config.lib_version,
         
     | 
| 
      
 494 
     | 
    
         
            +
                              gapic_version: ::Google::Cloud::CloudSecurityCompliance::V1::VERSION,
         
     | 
| 
      
 495 
     | 
    
         
            +
                              transports_version_send: [:rest]
         
     | 
| 
      
 496 
     | 
    
         
            +
             
     | 
| 
      
 497 
     | 
    
         
            +
                            call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
         
     | 
| 
      
 498 
     | 
    
         
            +
                            call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
      
 499 
     | 
    
         
            +
             
     | 
| 
      
 500 
     | 
    
         
            +
                            options.apply_defaults timeout:      @config.rpcs.list_framework_audits.timeout,
         
     | 
| 
      
 501 
     | 
    
         
            +
                                                   metadata:     call_metadata,
         
     | 
| 
      
 502 
     | 
    
         
            +
                                                   retry_policy: @config.rpcs.list_framework_audits.retry_policy
         
     | 
| 
      
 503 
     | 
    
         
            +
             
     | 
| 
      
 504 
     | 
    
         
            +
                            options.apply_defaults timeout:      @config.timeout,
         
     | 
| 
      
 505 
     | 
    
         
            +
                                                   metadata:     @config.metadata,
         
     | 
| 
      
 506 
     | 
    
         
            +
                                                   retry_policy: @config.retry_policy
         
     | 
| 
      
 507 
     | 
    
         
            +
             
     | 
| 
      
 508 
     | 
    
         
            +
                            @audit_stub.list_framework_audits request, options do |result, operation|
         
     | 
| 
      
 509 
     | 
    
         
            +
                              result = ::Gapic::Rest::PagedEnumerable.new @audit_stub, :list_framework_audits, "framework_audits", request, result, options
         
     | 
| 
      
 510 
     | 
    
         
            +
                              yield result, operation if block_given?
         
     | 
| 
      
 511 
     | 
    
         
            +
                              throw :response, result
         
     | 
| 
      
 512 
     | 
    
         
            +
                            end
         
     | 
| 
      
 513 
     | 
    
         
            +
                          rescue ::Gapic::Rest::Error => e
         
     | 
| 
      
 514 
     | 
    
         
            +
                            raise ::Google::Cloud::Error.from_error(e)
         
     | 
| 
      
 515 
     | 
    
         
            +
                          end
         
     | 
| 
      
 516 
     | 
    
         
            +
             
     | 
| 
      
 517 
     | 
    
         
            +
                          ##
         
     | 
| 
      
 518 
     | 
    
         
            +
                          # Gets the details for a framework audit.
         
     | 
| 
      
 519 
     | 
    
         
            +
                          #
         
     | 
| 
      
 520 
     | 
    
         
            +
                          # @overload get_framework_audit(request, options = nil)
         
     | 
| 
      
 521 
     | 
    
         
            +
                          #   Pass arguments to `get_framework_audit` via a request object, either of type
         
     | 
| 
      
 522 
     | 
    
         
            +
                          #   {::Google::Cloud::CloudSecurityCompliance::V1::GetFrameworkAuditRequest} or an equivalent Hash.
         
     | 
| 
      
 523 
     | 
    
         
            +
                          #
         
     | 
| 
      
 524 
     | 
    
         
            +
                          #   @param request [::Google::Cloud::CloudSecurityCompliance::V1::GetFrameworkAuditRequest, ::Hash]
         
     | 
| 
      
 525 
     | 
    
         
            +
                          #     A request object representing the call parameters. Required. To specify no
         
     | 
| 
      
 526 
     | 
    
         
            +
                          #     parameters, or to keep all the default parameter values, pass an empty Hash.
         
     | 
| 
      
 527 
     | 
    
         
            +
                          #   @param options [::Gapic::CallOptions, ::Hash]
         
     | 
| 
      
 528 
     | 
    
         
            +
                          #     Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
         
     | 
| 
      
 529 
     | 
    
         
            +
                          #
         
     | 
| 
      
 530 
     | 
    
         
            +
                          # @overload get_framework_audit(name: nil)
         
     | 
| 
      
 531 
     | 
    
         
            +
                          #   Pass arguments to `get_framework_audit` via keyword arguments. Note that at
         
     | 
| 
      
 532 
     | 
    
         
            +
                          #   least one keyword argument is required. To specify no parameters, or to keep all
         
     | 
| 
      
 533 
     | 
    
         
            +
                          #   the default parameter values, pass an empty Hash as a request object (see above).
         
     | 
| 
      
 534 
     | 
    
         
            +
                          #
         
     | 
| 
      
 535 
     | 
    
         
            +
                          #   @param name [::String]
         
     | 
| 
      
 536 
     | 
    
         
            +
                          #     Required. The name of the framework audit to retrieve.
         
     | 
| 
      
 537 
     | 
    
         
            +
                          #
         
     | 
| 
      
 538 
     | 
    
         
            +
                          #     Supported formats are the following:
         
     | 
| 
      
 539 
     | 
    
         
            +
                          #
         
     | 
| 
      
 540 
     | 
    
         
            +
                          #     * `organizations/{organization_id}/locations/{location}/frameworkAudits/{frameworkAuditName}`
         
     | 
| 
      
 541 
     | 
    
         
            +
                          #     * `folders/{folder_id}/locations/{location}/frameworkAudits/{frameworkAuditName}`
         
     | 
| 
      
 542 
     | 
    
         
            +
                          #     * `projects/{project_id}/locations/{location}/frameworkAudits/{frameworkAuditName}`
         
     | 
| 
      
 543 
     | 
    
         
            +
                          # @yield [result, operation] Access the result along with the TransportOperation object
         
     | 
| 
      
 544 
     | 
    
         
            +
                          # @yieldparam result [::Google::Cloud::CloudSecurityCompliance::V1::FrameworkAudit]
         
     | 
| 
      
 545 
     | 
    
         
            +
                          # @yieldparam operation [::Gapic::Rest::TransportOperation]
         
     | 
| 
      
 546 
     | 
    
         
            +
                          #
         
     | 
| 
      
 547 
     | 
    
         
            +
                          # @return [::Google::Cloud::CloudSecurityCompliance::V1::FrameworkAudit]
         
     | 
| 
      
 548 
     | 
    
         
            +
                          #
         
     | 
| 
      
 549 
     | 
    
         
            +
                          # @raise [::Google::Cloud::Error] if the REST call is aborted.
         
     | 
| 
      
 550 
     | 
    
         
            +
                          #
         
     | 
| 
      
 551 
     | 
    
         
            +
                          # @example Basic example
         
     | 
| 
      
 552 
     | 
    
         
            +
                          #   require "google/cloud/cloud_security_compliance/v1"
         
     | 
| 
      
 553 
     | 
    
         
            +
                          #
         
     | 
| 
      
 554 
     | 
    
         
            +
                          #   # Create a client object. The client can be reused for multiple calls.
         
     | 
| 
      
 555 
     | 
    
         
            +
                          #   client = Google::Cloud::CloudSecurityCompliance::V1::Audit::Rest::Client.new
         
     | 
| 
      
 556 
     | 
    
         
            +
                          #
         
     | 
| 
      
 557 
     | 
    
         
            +
                          #   # Create a request. To set request fields, pass in keyword arguments.
         
     | 
| 
      
 558 
     | 
    
         
            +
                          #   request = Google::Cloud::CloudSecurityCompliance::V1::GetFrameworkAuditRequest.new
         
     | 
| 
      
 559 
     | 
    
         
            +
                          #
         
     | 
| 
      
 560 
     | 
    
         
            +
                          #   # Call the get_framework_audit method.
         
     | 
| 
      
 561 
     | 
    
         
            +
                          #   result = client.get_framework_audit request
         
     | 
| 
      
 562 
     | 
    
         
            +
                          #
         
     | 
| 
      
 563 
     | 
    
         
            +
                          #   # The returned object is of type Google::Cloud::CloudSecurityCompliance::V1::FrameworkAudit.
         
     | 
| 
      
 564 
     | 
    
         
            +
                          #   p result
         
     | 
| 
      
 565 
     | 
    
         
            +
                          #
         
     | 
| 
      
 566 
     | 
    
         
            +
                          def get_framework_audit request, options = nil
         
     | 
| 
      
 567 
     | 
    
         
            +
                            raise ::ArgumentError, "request must be provided" if request.nil?
         
     | 
| 
      
 568 
     | 
    
         
            +
             
     | 
| 
      
 569 
     | 
    
         
            +
                            request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::CloudSecurityCompliance::V1::GetFrameworkAuditRequest
         
     | 
| 
      
 570 
     | 
    
         
            +
             
     | 
| 
      
 571 
     | 
    
         
            +
                            # Converts hash and nil to an options object
         
     | 
| 
      
 572 
     | 
    
         
            +
                            options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
         
     | 
| 
      
 573 
     | 
    
         
            +
             
     | 
| 
      
 574 
     | 
    
         
            +
                            # Customize the options with defaults
         
     | 
| 
      
 575 
     | 
    
         
            +
                            call_metadata = @config.rpcs.get_framework_audit.metadata.to_h
         
     | 
| 
      
 576 
     | 
    
         
            +
             
     | 
| 
      
 577 
     | 
    
         
            +
                            # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
         
     | 
| 
      
 578 
     | 
    
         
            +
                            call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
         
     | 
| 
      
 579 
     | 
    
         
            +
                              lib_name: @config.lib_name, lib_version: @config.lib_version,
         
     | 
| 
      
 580 
     | 
    
         
            +
                              gapic_version: ::Google::Cloud::CloudSecurityCompliance::V1::VERSION,
         
     | 
| 
      
 581 
     | 
    
         
            +
                              transports_version_send: [:rest]
         
     | 
| 
      
 582 
     | 
    
         
            +
             
     | 
| 
      
 583 
     | 
    
         
            +
                            call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
         
     | 
| 
      
 584 
     | 
    
         
            +
                            call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
         
     | 
| 
      
 585 
     | 
    
         
            +
             
     | 
| 
      
 586 
     | 
    
         
            +
                            options.apply_defaults timeout:      @config.rpcs.get_framework_audit.timeout,
         
     | 
| 
      
 587 
     | 
    
         
            +
                                                   metadata:     call_metadata,
         
     | 
| 
      
 588 
     | 
    
         
            +
                                                   retry_policy: @config.rpcs.get_framework_audit.retry_policy
         
     | 
| 
      
 589 
     | 
    
         
            +
             
     | 
| 
      
 590 
     | 
    
         
            +
                            options.apply_defaults timeout:      @config.timeout,
         
     | 
| 
      
 591 
     | 
    
         
            +
                                                   metadata:     @config.metadata,
         
     | 
| 
      
 592 
     | 
    
         
            +
                                                   retry_policy: @config.retry_policy
         
     | 
| 
      
 593 
     | 
    
         
            +
             
     | 
| 
      
 594 
     | 
    
         
            +
                            @audit_stub.get_framework_audit request, options do |result, operation|
         
     | 
| 
      
 595 
     | 
    
         
            +
                              yield result, operation if block_given?
         
     | 
| 
      
 596 
     | 
    
         
            +
                            end
         
     | 
| 
      
 597 
     | 
    
         
            +
                          rescue ::Gapic::Rest::Error => e
         
     | 
| 
      
 598 
     | 
    
         
            +
                            raise ::Google::Cloud::Error.from_error(e)
         
     | 
| 
      
 599 
     | 
    
         
            +
                          end
         
     | 
| 
      
 600 
     | 
    
         
            +
             
     | 
| 
      
 601 
     | 
    
         
            +
                          ##
         
     | 
| 
      
 602 
     | 
    
         
            +
                          # Configuration class for the Audit REST API.
         
     | 
| 
      
 603 
     | 
    
         
            +
                          #
         
     | 
| 
      
 604 
     | 
    
         
            +
                          # This class represents the configuration for Audit REST,
         
     | 
| 
      
 605 
     | 
    
         
            +
                          # providing control over timeouts, retry behavior, logging, transport
         
     | 
| 
      
 606 
     | 
    
         
            +
                          # parameters, and other low-level controls. Certain parameters can also be
         
     | 
| 
      
 607 
     | 
    
         
            +
                          # applied individually to specific RPCs. See
         
     | 
| 
      
 608 
     | 
    
         
            +
                          # {::Google::Cloud::CloudSecurityCompliance::V1::Audit::Rest::Client::Configuration::Rpcs}
         
     | 
| 
      
 609 
     | 
    
         
            +
                          # for a list of RPCs that can be configured independently.
         
     | 
| 
      
 610 
     | 
    
         
            +
                          #
         
     | 
| 
      
 611 
     | 
    
         
            +
                          # Configuration can be applied globally to all clients, or to a single client
         
     | 
| 
      
 612 
     | 
    
         
            +
                          # on construction.
         
     | 
| 
      
 613 
     | 
    
         
            +
                          #
         
     | 
| 
      
 614 
     | 
    
         
            +
                          # @example
         
     | 
| 
      
 615 
     | 
    
         
            +
                          #
         
     | 
| 
      
 616 
     | 
    
         
            +
                          #   # Modify the global config, setting the timeout for
         
     | 
| 
      
 617 
     | 
    
         
            +
                          #   # generate_framework_audit_scope_report to 20 seconds,
         
     | 
| 
      
 618 
     | 
    
         
            +
                          #   # and all remaining timeouts to 10 seconds.
         
     | 
| 
      
 619 
     | 
    
         
            +
                          #   ::Google::Cloud::CloudSecurityCompliance::V1::Audit::Rest::Client.configure do |config|
         
     | 
| 
      
 620 
     | 
    
         
            +
                          #     config.timeout = 10.0
         
     | 
| 
      
 621 
     | 
    
         
            +
                          #     config.rpcs.generate_framework_audit_scope_report.timeout = 20.0
         
     | 
| 
      
 622 
     | 
    
         
            +
                          #   end
         
     | 
| 
      
 623 
     | 
    
         
            +
                          #
         
     | 
| 
      
 624 
     | 
    
         
            +
                          #   # Apply the above configuration only to a new client.
         
     | 
| 
      
 625 
     | 
    
         
            +
                          #   client = ::Google::Cloud::CloudSecurityCompliance::V1::Audit::Rest::Client.new do |config|
         
     | 
| 
      
 626 
     | 
    
         
            +
                          #     config.timeout = 10.0
         
     | 
| 
      
 627 
     | 
    
         
            +
                          #     config.rpcs.generate_framework_audit_scope_report.timeout = 20.0
         
     | 
| 
      
 628 
     | 
    
         
            +
                          #   end
         
     | 
| 
      
 629 
     | 
    
         
            +
                          #
         
     | 
| 
      
 630 
     | 
    
         
            +
                          # @!attribute [rw] endpoint
         
     | 
| 
      
 631 
     | 
    
         
            +
                          #   A custom service endpoint, as a hostname or hostname:port. The default is
         
     | 
| 
      
 632 
     | 
    
         
            +
                          #   nil, indicating to use the default endpoint in the current universe domain.
         
     | 
| 
      
 633 
     | 
    
         
            +
                          #   @return [::String,nil]
         
     | 
| 
      
 634 
     | 
    
         
            +
                          # @!attribute [rw] credentials
         
     | 
| 
      
 635 
     | 
    
         
            +
                          #   Credentials to send with calls. You may provide any of the following types:
         
     | 
| 
      
 636 
     | 
    
         
            +
                          #    *  (`String`) The path to a service account key file in JSON format
         
     | 
| 
      
 637 
     | 
    
         
            +
                          #    *  (`Hash`) A service account key as a Hash
         
     | 
| 
      
 638 
     | 
    
         
            +
                          #    *  (`Google::Auth::Credentials`) A googleauth credentials object
         
     | 
| 
      
 639 
     | 
    
         
            +
                          #       (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
         
     | 
| 
      
 640 
     | 
    
         
            +
                          #    *  (`Signet::OAuth2::Client`) A signet oauth2 client object
         
     | 
| 
      
 641 
     | 
    
         
            +
                          #       (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
         
     | 
| 
      
 642 
     | 
    
         
            +
                          #    *  (`nil`) indicating no credentials
         
     | 
| 
      
 643 
     | 
    
         
            +
                          #
         
     | 
| 
      
 644 
     | 
    
         
            +
                          #   Warning: If you accept a credential configuration (JSON file or Hash) from an
         
     | 
| 
      
 645 
     | 
    
         
            +
                          #   external source for authentication to Google Cloud, you must validate it before
         
     | 
| 
      
 646 
     | 
    
         
            +
                          #   providing it to a Google API client library. Providing an unvalidated credential
         
     | 
| 
      
 647 
     | 
    
         
            +
                          #   configuration to Google APIs can compromise the security of your systems and data.
         
     | 
| 
      
 648 
     | 
    
         
            +
                          #   For more information, refer to [Validate credential configurations from external
         
     | 
| 
      
 649 
     | 
    
         
            +
                          #   sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
         
     | 
| 
      
 650 
     | 
    
         
            +
                          #   @return [::Object]
         
     | 
| 
      
 651 
     | 
    
         
            +
                          # @!attribute [rw] scope
         
     | 
| 
      
 652 
     | 
    
         
            +
                          #   The OAuth scopes
         
     | 
| 
      
 653 
     | 
    
         
            +
                          #   @return [::Array<::String>]
         
     | 
| 
      
 654 
     | 
    
         
            +
                          # @!attribute [rw] lib_name
         
     | 
| 
      
 655 
     | 
    
         
            +
                          #   The library name as recorded in instrumentation and logging
         
     | 
| 
      
 656 
     | 
    
         
            +
                          #   @return [::String]
         
     | 
| 
      
 657 
     | 
    
         
            +
                          # @!attribute [rw] lib_version
         
     | 
| 
      
 658 
     | 
    
         
            +
                          #   The library version as recorded in instrumentation and logging
         
     | 
| 
      
 659 
     | 
    
         
            +
                          #   @return [::String]
         
     | 
| 
      
 660 
     | 
    
         
            +
                          # @!attribute [rw] timeout
         
     | 
| 
      
 661 
     | 
    
         
            +
                          #   The call timeout in seconds.
         
     | 
| 
      
 662 
     | 
    
         
            +
                          #   @return [::Numeric]
         
     | 
| 
      
 663 
     | 
    
         
            +
                          # @!attribute [rw] metadata
         
     | 
| 
      
 664 
     | 
    
         
            +
                          #   Additional headers to be sent with the call.
         
     | 
| 
      
 665 
     | 
    
         
            +
                          #   @return [::Hash{::Symbol=>::String}]
         
     | 
| 
      
 666 
     | 
    
         
            +
                          # @!attribute [rw] retry_policy
         
     | 
| 
      
 667 
     | 
    
         
            +
                          #   The retry policy. The value is a hash with the following keys:
         
     | 
| 
      
 668 
     | 
    
         
            +
                          #    *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
         
     | 
| 
      
 669 
     | 
    
         
            +
                          #    *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
         
     | 
| 
      
 670 
     | 
    
         
            +
                          #    *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
         
     | 
| 
      
 671 
     | 
    
         
            +
                          #    *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
         
     | 
| 
      
 672 
     | 
    
         
            +
                          #       trigger a retry.
         
     | 
| 
      
 673 
     | 
    
         
            +
                          #   @return [::Hash]
         
     | 
| 
      
 674 
     | 
    
         
            +
                          # @!attribute [rw] quota_project
         
     | 
| 
      
 675 
     | 
    
         
            +
                          #   A separate project against which to charge quota.
         
     | 
| 
      
 676 
     | 
    
         
            +
                          #   @return [::String]
         
     | 
| 
      
 677 
     | 
    
         
            +
                          # @!attribute [rw] universe_domain
         
     | 
| 
      
 678 
     | 
    
         
            +
                          #   The universe domain within which to make requests. This determines the
         
     | 
| 
      
 679 
     | 
    
         
            +
                          #   default endpoint URL. The default value of nil uses the environment
         
     | 
| 
      
 680 
     | 
    
         
            +
                          #   universe (usually the default "googleapis.com" universe).
         
     | 
| 
      
 681 
     | 
    
         
            +
                          #   @return [::String,nil]
         
     | 
| 
      
 682 
     | 
    
         
            +
                          # @!attribute [rw] logger
         
     | 
| 
      
 683 
     | 
    
         
            +
                          #   A custom logger to use for request/response debug logging, or the value
         
     | 
| 
      
 684 
     | 
    
         
            +
                          #   `:default` (the default) to construct a default logger, or `nil` to
         
     | 
| 
      
 685 
     | 
    
         
            +
                          #   explicitly disable logging.
         
     | 
| 
      
 686 
     | 
    
         
            +
                          #   @return [::Logger,:default,nil]
         
     | 
| 
      
 687 
     | 
    
         
            +
                          #
         
     | 
| 
      
 688 
     | 
    
         
            +
                          class Configuration
         
     | 
| 
      
 689 
     | 
    
         
            +
                            extend ::Gapic::Config
         
     | 
| 
      
 690 
     | 
    
         
            +
             
     | 
| 
      
 691 
     | 
    
         
            +
                            # @private
         
     | 
| 
      
 692 
     | 
    
         
            +
                            # The endpoint specific to the default "googleapis.com" universe. Deprecated.
         
     | 
| 
      
 693 
     | 
    
         
            +
                            DEFAULT_ENDPOINT = "cloudsecuritycompliance.googleapis.com"
         
     | 
| 
      
 694 
     | 
    
         
            +
             
     | 
| 
      
 695 
     | 
    
         
            +
                            config_attr :endpoint,      nil, ::String, nil
         
     | 
| 
      
 696 
     | 
    
         
            +
                            config_attr :credentials,   nil do |value|
         
     | 
| 
      
 697 
     | 
    
         
            +
                              allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
         
     | 
| 
      
 698 
     | 
    
         
            +
                              allowed.any? { |klass| klass === value }
         
     | 
| 
      
 699 
     | 
    
         
            +
                            end
         
     | 
| 
      
 700 
     | 
    
         
            +
                            config_attr :scope,         nil, ::String, ::Array, nil
         
     | 
| 
      
 701 
     | 
    
         
            +
                            config_attr :lib_name,      nil, ::String, nil
         
     | 
| 
      
 702 
     | 
    
         
            +
                            config_attr :lib_version,   nil, ::String, nil
         
     | 
| 
      
 703 
     | 
    
         
            +
                            config_attr :timeout,       nil, ::Numeric, nil
         
     | 
| 
      
 704 
     | 
    
         
            +
                            config_attr :metadata,      nil, ::Hash, nil
         
     | 
| 
      
 705 
     | 
    
         
            +
                            config_attr :retry_policy,  nil, ::Hash, ::Proc, nil
         
     | 
| 
      
 706 
     | 
    
         
            +
                            config_attr :quota_project, nil, ::String, nil
         
     | 
| 
      
 707 
     | 
    
         
            +
                            config_attr :universe_domain, nil, ::String, nil
         
     | 
| 
      
 708 
     | 
    
         
            +
             
     | 
| 
      
 709 
     | 
    
         
            +
                            # @private
         
     | 
| 
      
 710 
     | 
    
         
            +
                            # Overrides for http bindings for the RPCs of this service
         
     | 
| 
      
 711 
     | 
    
         
            +
                            # are only used when this service is used as mixin, and only
         
     | 
| 
      
 712 
     | 
    
         
            +
                            # by the host service.
         
     | 
| 
      
 713 
     | 
    
         
            +
                            # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
         
     | 
| 
      
 714 
     | 
    
         
            +
                            config_attr :bindings_override, {}, ::Hash, nil
         
     | 
| 
      
 715 
     | 
    
         
            +
                            config_attr :logger, :default, ::Logger, nil, :default
         
     | 
| 
      
 716 
     | 
    
         
            +
             
     | 
| 
      
 717 
     | 
    
         
            +
                            # @private
         
     | 
| 
      
 718 
     | 
    
         
            +
                            def initialize parent_config = nil
         
     | 
| 
      
 719 
     | 
    
         
            +
                              @parent_config = parent_config unless parent_config.nil?
         
     | 
| 
      
 720 
     | 
    
         
            +
             
     | 
| 
      
 721 
     | 
    
         
            +
                              yield self if block_given?
         
     | 
| 
      
 722 
     | 
    
         
            +
                            end
         
     | 
| 
      
 723 
     | 
    
         
            +
             
     | 
| 
      
 724 
     | 
    
         
            +
                            ##
         
     | 
| 
      
 725 
     | 
    
         
            +
                            # Configurations for individual RPCs
         
     | 
| 
      
 726 
     | 
    
         
            +
                            # @return [Rpcs]
         
     | 
| 
      
 727 
     | 
    
         
            +
                            #
         
     | 
| 
      
 728 
     | 
    
         
            +
                            def rpcs
         
     | 
| 
      
 729 
     | 
    
         
            +
                              @rpcs ||= begin
         
     | 
| 
      
 730 
     | 
    
         
            +
                                parent_rpcs = nil
         
     | 
| 
      
 731 
     | 
    
         
            +
                                parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
         
     | 
| 
      
 732 
     | 
    
         
            +
                                Rpcs.new parent_rpcs
         
     | 
| 
      
 733 
     | 
    
         
            +
                              end
         
     | 
| 
      
 734 
     | 
    
         
            +
                            end
         
     | 
| 
      
 735 
     | 
    
         
            +
             
     | 
| 
      
 736 
     | 
    
         
            +
                            ##
         
     | 
| 
      
 737 
     | 
    
         
            +
                            # Configuration RPC class for the Audit API.
         
     | 
| 
      
 738 
     | 
    
         
            +
                            #
         
     | 
| 
      
 739 
     | 
    
         
            +
                            # Includes fields providing the configuration for each RPC in this service.
         
     | 
| 
      
 740 
     | 
    
         
            +
                            # Each configuration object is of type `Gapic::Config::Method` and includes
         
     | 
| 
      
 741 
     | 
    
         
            +
                            # the following configuration fields:
         
     | 
| 
      
 742 
     | 
    
         
            +
                            #
         
     | 
| 
      
 743 
     | 
    
         
            +
                            #  *  `timeout` (*type:* `Numeric`) - The call timeout in seconds
         
     | 
| 
      
 744 
     | 
    
         
            +
                            #  *  `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
         
     | 
| 
      
 745 
     | 
    
         
            +
                            #  *  `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
         
     | 
| 
      
 746 
     | 
    
         
            +
                            #     include the following keys:
         
     | 
| 
      
 747 
     | 
    
         
            +
                            #      *  `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
         
     | 
| 
      
 748 
     | 
    
         
            +
                            #      *  `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
         
     | 
| 
      
 749 
     | 
    
         
            +
                            #      *  `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
         
     | 
| 
      
 750 
     | 
    
         
            +
                            #      *  `:retry_codes` (*type:* `Array<String>`) - The error codes that should
         
     | 
| 
      
 751 
     | 
    
         
            +
                            #         trigger a retry.
         
     | 
| 
      
 752 
     | 
    
         
            +
                            #
         
     | 
| 
      
 753 
     | 
    
         
            +
                            class Rpcs
         
     | 
| 
      
 754 
     | 
    
         
            +
                              ##
         
     | 
| 
      
 755 
     | 
    
         
            +
                              # RPC-specific configuration for `generate_framework_audit_scope_report`
         
     | 
| 
      
 756 
     | 
    
         
            +
                              # @return [::Gapic::Config::Method]
         
     | 
| 
      
 757 
     | 
    
         
            +
                              #
         
     | 
| 
      
 758 
     | 
    
         
            +
                              attr_reader :generate_framework_audit_scope_report
         
     | 
| 
      
 759 
     | 
    
         
            +
                              ##
         
     | 
| 
      
 760 
     | 
    
         
            +
                              # RPC-specific configuration for `create_framework_audit`
         
     | 
| 
      
 761 
     | 
    
         
            +
                              # @return [::Gapic::Config::Method]
         
     | 
| 
      
 762 
     | 
    
         
            +
                              #
         
     | 
| 
      
 763 
     | 
    
         
            +
                              attr_reader :create_framework_audit
         
     | 
| 
      
 764 
     | 
    
         
            +
                              ##
         
     | 
| 
      
 765 
     | 
    
         
            +
                              # RPC-specific configuration for `list_framework_audits`
         
     | 
| 
      
 766 
     | 
    
         
            +
                              # @return [::Gapic::Config::Method]
         
     | 
| 
      
 767 
     | 
    
         
            +
                              #
         
     | 
| 
      
 768 
     | 
    
         
            +
                              attr_reader :list_framework_audits
         
     | 
| 
      
 769 
     | 
    
         
            +
                              ##
         
     | 
| 
      
 770 
     | 
    
         
            +
                              # RPC-specific configuration for `get_framework_audit`
         
     | 
| 
      
 771 
     | 
    
         
            +
                              # @return [::Gapic::Config::Method]
         
     | 
| 
      
 772 
     | 
    
         
            +
                              #
         
     | 
| 
      
 773 
     | 
    
         
            +
                              attr_reader :get_framework_audit
         
     | 
| 
      
 774 
     | 
    
         
            +
             
     | 
| 
      
 775 
     | 
    
         
            +
                              # @private
         
     | 
| 
      
 776 
     | 
    
         
            +
                              def initialize parent_rpcs = nil
         
     | 
| 
      
 777 
     | 
    
         
            +
                                generate_framework_audit_scope_report_config = parent_rpcs.generate_framework_audit_scope_report if parent_rpcs.respond_to? :generate_framework_audit_scope_report
         
     | 
| 
      
 778 
     | 
    
         
            +
                                @generate_framework_audit_scope_report = ::Gapic::Config::Method.new generate_framework_audit_scope_report_config
         
     | 
| 
      
 779 
     | 
    
         
            +
                                create_framework_audit_config = parent_rpcs.create_framework_audit if parent_rpcs.respond_to? :create_framework_audit
         
     | 
| 
      
 780 
     | 
    
         
            +
                                @create_framework_audit = ::Gapic::Config::Method.new create_framework_audit_config
         
     | 
| 
      
 781 
     | 
    
         
            +
                                list_framework_audits_config = parent_rpcs.list_framework_audits if parent_rpcs.respond_to? :list_framework_audits
         
     | 
| 
      
 782 
     | 
    
         
            +
                                @list_framework_audits = ::Gapic::Config::Method.new list_framework_audits_config
         
     | 
| 
      
 783 
     | 
    
         
            +
                                get_framework_audit_config = parent_rpcs.get_framework_audit if parent_rpcs.respond_to? :get_framework_audit
         
     | 
| 
      
 784 
     | 
    
         
            +
                                @get_framework_audit = ::Gapic::Config::Method.new get_framework_audit_config
         
     | 
| 
      
 785 
     | 
    
         
            +
             
     | 
| 
      
 786 
     | 
    
         
            +
                                yield self if block_given?
         
     | 
| 
      
 787 
     | 
    
         
            +
                              end
         
     | 
| 
      
 788 
     | 
    
         
            +
                            end
         
     | 
| 
      
 789 
     | 
    
         
            +
                          end
         
     | 
| 
      
 790 
     | 
    
         
            +
                        end
         
     | 
| 
      
 791 
     | 
    
         
            +
                      end
         
     | 
| 
      
 792 
     | 
    
         
            +
                    end
         
     | 
| 
      
 793 
     | 
    
         
            +
                  end
         
     | 
| 
      
 794 
     | 
    
         
            +
                end
         
     | 
| 
      
 795 
     | 
    
         
            +
              end
         
     | 
| 
      
 796 
     | 
    
         
            +
            end
         
     |