How to use build method of ClassMethods Package

Best Site_prism code snippet using ClassMethods.build

provenance.rb

Source:provenance.rb Github

copy

Full Screen

...14# limitations under the License.15# Auto-generated by gapic-generator-ruby. DO NOT EDIT!16module Grafeas17 module V118 # Provenance of a build. Contains all information needed to verify the full19 # details about the build from source to completion.20 # @!attribute [rw] id21 # @return [::String]22 # Required. Unique identifier of the build.23 # @!attribute [rw] project_id24 # @return [::String]25 # ID of the project.26 # @!attribute [rw] commands27 # @return [::Array<::Grafeas::V1::Command>]28 # Commands requested by the build.29 # @!attribute [rw] built_artifacts30 # @return [::Array<::Grafeas::V1::Artifact>]31 # Output of the build.32 # @!attribute [rw] create_time33 # @return [::Google::Protobuf::Timestamp]34 # Time at which the build was created.35 # @!attribute [rw] start_time36 # @return [::Google::Protobuf::Timestamp]37 # Time at which execution of the build was started.38 # @!attribute [rw] end_time39 # @return [::Google::Protobuf::Timestamp]40 # Time at which execution of the build was finished.41 # @!attribute [rw] creator42 # @return [::String]43 # E-mail address of the user who initiated this build. Note that this was the44 # user's e-mail address at the time the build was initiated; this address may45 # not represent the same end-user for all time.46 # @!attribute [rw] logs_uri47 # @return [::String]48 # URI where any logs for this provenance were written.49 # @!attribute [rw] source_provenance50 # @return [::Grafeas::V1::Source]51 # Details of the Source input to the build.52 # @!attribute [rw] trigger_id53 # @return [::String]54 # Trigger identifier if the build was triggered automatically; empty if not.55 # @!attribute [rw] build_options56 # @return [::Google::Protobuf::Map{::String => ::String}]57 # Special options applied to this build. This is a catch-all field where58 # build providers can enter any desired additional details.59 # @!attribute [rw] builder_version60 # @return [::String]61 # Version string of the builder at the time this build was executed.62 class BuildProvenance63 include ::Google::Protobuf::MessageExts64 extend ::Google::Protobuf::MessageExts::ClassMethods65 # @!attribute [rw] key66 # @return [::String]67 # @!attribute [rw] value68 # @return [::String]69 class BuildOptionsEntry70 include ::Google::Protobuf::MessageExts71 extend ::Google::Protobuf::MessageExts::ClassMethods72 end73 end74 # Source describes the location of the source used for the build.75 # @!attribute [rw] artifact_storage_source_uri76 # @return [::String]77 # If provided, the input binary artifacts for the build came from this78 # location.79 # @!attribute [rw] file_hashes80 # @return [::Google::Protobuf::Map{::String => ::Grafeas::V1::FileHashes}]81 # Hash(es) of the build source, which can be used to verify that the original82 # source integrity was maintained in the build.83 #84 # The keys to this map are file paths used as build source and the values85 # contain the hash values for those files.86 #87 # If the build source came in a single package such as a gzipped tarfile88 # (.tar.gz), the FileHash will be for the single path to that file.89 # @!attribute [rw] context90 # @return [::Grafeas::V1::SourceContext]91 # If provided, the source code used for the build came from this location.92 # @!attribute [rw] additional_contexts93 # @return [::Array<::Grafeas::V1::SourceContext>]94 # If provided, some of the source code used for the build may be found in95 # these locations, in the case where the source repository had multiple96 # remotes or submodules. This list will not include the context specified in97 # the context field.98 class Source99 include ::Google::Protobuf::MessageExts100 extend ::Google::Protobuf::MessageExts::ClassMethods101 # @!attribute [rw] key102 # @return [::String]103 # @!attribute [rw] value104 # @return [::Grafeas::V1::FileHashes]105 class FileHashesEntry106 include ::Google::Protobuf::MessageExts107 extend ::Google::Protobuf::MessageExts::ClassMethods108 end109 end110 # Container message for hashes of byte content of files, used in source111 # messages to verify integrity of source input to the build.112 # @!attribute [rw] file_hash113 # @return [::Array<::Grafeas::V1::Hash>]114 # Required. Collection of file hashes.115 class FileHashes116 include ::Google::Protobuf::MessageExts117 extend ::Google::Protobuf::MessageExts::ClassMethods118 end119 # Container message for hash values.120 # @!attribute [rw] type121 # @return [::String]122 # Required. The type of hash that was performed, e.g. "SHA-256".123 # @!attribute [rw] value124 # @return [::String]125 # Required. The hash value.126 class Hash127 include ::Google::Protobuf::MessageExts128 extend ::Google::Protobuf::MessageExts::ClassMethods129 end130 # Command describes a step performed as part of the build pipeline.131 # @!attribute [rw] name132 # @return [::String]133 # Required. Name of the command, as presented on the command line, or if the134 # command is packaged as a Docker container, as presented to `docker pull`.135 # @!attribute [rw] env136 # @return [::Array<::String>]137 # Environment variables set before running this command.138 # @!attribute [rw] args139 # @return [::Array<::String>]140 # Command-line arguments used when executing this command.141 # @!attribute [rw] dir142 # @return [::String]143 # Working directory (relative to project source root) used when running this144 # command.145 # @!attribute [rw] id146 # @return [::String]147 # Optional unique identifier for this command, used in wait_for to reference148 # this command as a dependency.149 # @!attribute [rw] wait_for150 # @return [::Array<::String>]151 # The ID(s) of the command(s) that this command depends on.152 class Command153 include ::Google::Protobuf::MessageExts154 extend ::Google::Protobuf::MessageExts::ClassMethods155 end156 # Artifact describes a build product.157 # @!attribute [rw] checksum158 # @return [::String]159 # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a160 # container.161 # @!attribute [rw] id162 # @return [::String]163 # Artifact ID, if any; for container images, this will be a URL by digest164 # like `gcr.io/projectID/imagename@sha256:123456`.165 # @!attribute [rw] names166 # @return [::Array<::String>]167 # Related artifact names. This may be the path to a binary or jar file, or in168 # the case of a container build, the name used to push the container image to169 # Google Container Registry, as presented to `docker push`. Note that a170 # single Artifact ID can have multiple names, for example if two tags are171 # applied to one image.172 class Artifact173 include ::Google::Protobuf::MessageExts174 extend ::Google::Protobuf::MessageExts::ClassMethods175 end176 # A SourceContext is a reference to a tree of files. A SourceContext together177 # with a path point to a unique revision of a single file or directory.178 # @!attribute [rw] cloud_repo179 # @return [::Grafeas::V1::CloudRepoSourceContext]180 # A SourceContext referring to a revision in a Google Cloud Source Repo.181 # @!attribute [rw] gerrit182 # @return [::Grafeas::V1::GerritSourceContext]...

Full Screen

Full Screen

slsa_provenance_zero_two.rb

Source:slsa_provenance_zero_two.rb Github

copy

Full Screen

...14# limitations under the License.15# Auto-generated by gapic-generator-ruby. DO NOT EDIT!16module Grafeas17 module V118 # @!attribute [rw] builder19 # @return [::Grafeas::V1::SlsaProvenanceZeroTwo::SlsaBuilder]20 # @!attribute [rw] build_type21 # @return [::String]22 # @!attribute [rw] invocation23 # @return [::Grafeas::V1::SlsaProvenanceZeroTwo::SlsaInvocation]24 # @!attribute [rw] build_config25 # @return [::Google::Protobuf::Struct]26 # @!attribute [rw] metadata27 # @return [::Grafeas::V1::SlsaProvenanceZeroTwo::SlsaMetadata]28 # @!attribute [rw] materials29 # @return [::Array<::Grafeas::V1::SlsaProvenanceZeroTwo::SlsaMaterial>]30 class SlsaProvenanceZeroTwo31 include ::Google::Protobuf::MessageExts32 extend ::Google::Protobuf::MessageExts::ClassMethods33 # Identifies the entity that executed the recipe, which is trusted to have34 # correctly performed the operation and populated this provenance.35 # @!attribute [rw] id36 # @return [::String]37 class SlsaBuilder38 include ::Google::Protobuf::MessageExts39 extend ::Google::Protobuf::MessageExts::ClassMethods40 end41 # The collection of artifacts that influenced the build including sources,42 # dependencies, build tools, base images, and so on.43 # @!attribute [rw] uri44 # @return [::String]45 # @!attribute [rw] digest46 # @return [::Google::Protobuf::Map{::String => ::String}]47 class SlsaMaterial48 include ::Google::Protobuf::MessageExts49 extend ::Google::Protobuf::MessageExts::ClassMethods50 # @!attribute [rw] key51 # @return [::String]52 # @!attribute [rw] value53 # @return [::String]54 class DigestEntry55 include ::Google::Protobuf::MessageExts56 extend ::Google::Protobuf::MessageExts::ClassMethods57 end58 end59 # Identifies the event that kicked off the build.60 # @!attribute [rw] config_source61 # @return [::Grafeas::V1::SlsaProvenanceZeroTwo::SlsaConfigSource]62 # @!attribute [rw] parameters63 # @return [::Google::Protobuf::Struct]64 # @!attribute [rw] environment65 # @return [::Google::Protobuf::Struct]66 class SlsaInvocation67 include ::Google::Protobuf::MessageExts68 extend ::Google::Protobuf::MessageExts::ClassMethods69 end70 # Describes where the config file that kicked off the build came from.71 # This is effectively a pointer to the source where buildConfig came from.72 # @!attribute [rw] uri73 # @return [::String]74 # @!attribute [rw] digest75 # @return [::Google::Protobuf::Map{::String => ::String}]76 # @!attribute [rw] entry_point77 # @return [::String]78 class SlsaConfigSource79 include ::Google::Protobuf::MessageExts80 extend ::Google::Protobuf::MessageExts::ClassMethods81 # @!attribute [rw] key82 # @return [::String]83 # @!attribute [rw] value84 # @return [::String]85 class DigestEntry86 include ::Google::Protobuf::MessageExts87 extend ::Google::Protobuf::MessageExts::ClassMethods88 end89 end90 # Other properties of the build.91 # @!attribute [rw] build_invocation_id92 # @return [::String]93 # @!attribute [rw] build_started_on94 # @return [::Google::Protobuf::Timestamp]95 # @!attribute [rw] build_finished_on96 # @return [::Google::Protobuf::Timestamp]97 # @!attribute [rw] completeness98 # @return [::Grafeas::V1::SlsaProvenanceZeroTwo::SlsaCompleteness]99 # @!attribute [rw] reproducible100 # @return [::Boolean]101 class SlsaMetadata102 include ::Google::Protobuf::MessageExts103 extend ::Google::Protobuf::MessageExts::ClassMethods104 end105 # Indicates that the builder claims certain fields in this message to be106 # complete.107 # @!attribute [rw] parameters108 # @return [::Boolean]109 # @!attribute [rw] environment110 # @return [::Boolean]111 # @!attribute [rw] materials112 # @return [::Boolean]113 class SlsaCompleteness114 include ::Google::Protobuf::MessageExts115 extend ::Google::Protobuf::MessageExts::ClassMethods116 end117 end118 end119end...

Full Screen

Full Screen

resource_actions.rb

Source:resource_actions.rb Github

copy

Full Screen

...17 methods.each { |name| base.send(:remove_method, name) }18 end19 module ClassMethods20 def all(params = {})21 get path.build, params22 end23 def find(resource_id, params = {})24 raise ArgumentError if resource_id.nil?25 get path.build(resource_id), params26 end27 def create(params = {})28 post path.build, params29 end30 def update(resource_id, params = {})31 raise ArgumentError if resource_id.nil?32 put path.build(resource_id), params33 end34 def destroy(resource_id, params = {})35 raise ArgumentError if resource_id.nil?36 delete path.build(resource_id), params37 end38 end39 end40end...

Full Screen

Full Screen

build

Using AI Code Generation

copy

Full Screen

1 def self.included(base)2 base.extend(ClassMethods)3 def self.included(base)4 base.extend(ClassMethods)5 def self.included(base)6 base.extend(ClassMethods)7 def self.included(base)8 base.extend(ClassMethods)9 def self.included(base)10 base.extend(ClassMethods)11 def self.included(base)12 base.extend(ClassMethods)13 def self.included(base)14 base.extend(ClassMethods)

Full Screen

Full Screen

build

Using AI Code Generation

copy

Full Screen

1 def self.included(base)2 base.extend(ClassMethods)3 def self.included(base)4 base.extend(ClassMethods)5 def self.included(base)6 base.extend(ClassMethods)7 def self.included(base)8 base.extend(ClassMethods)9 def self.included(base)10 base.extend(ClassMethods)11 def self.included(base)12 base.extend(ClassMethods)13 def self.included(base)14 base.extend(ClassMethods)

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful