google-apis-containeranalysis_v1 0.2.0 → 0.3.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/CHANGELOG.md +4 -0
- data/lib/google/apis/containeranalysis_v1/classes.rb +92 -92
- data/lib/google/apis/containeranalysis_v1/gem_version.rb +2 -2
- data/lib/google/apis/containeranalysis_v1/representations.rb +18 -37
- data/lib/google/apis/containeranalysis_v1/service.rb +0 -150
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff2fcfaf7c023fd885ce02b81c90ca4782b5c0ed11534445004cdda481c75f65
|
4
|
+
data.tar.gz: 7a49e350994947a0f2f0d91446be70c81304a92cec62aa1f28d8b5f7550e1a15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 962a5987987fe6c752e145ad8758186845e6ce847d1155ee3f4947fafe46e371fec6bd253aa717584197c778054e6f5df8addbc9f17d1553e70f81e5585c55ad
|
7
|
+
data.tar.gz: 3ea702d774eb8b42881e778e280f76bc8f5b7e7a66257c48aa562d02d722c4d822be4e8a31f00b4a2cd6e56fd659d52a0d72f601d9b6cb018d4cb6c445346515
|
data/CHANGELOG.md
CHANGED
@@ -491,9 +491,12 @@ module Google
|
|
491
491
|
end
|
492
492
|
end
|
493
493
|
|
494
|
-
# Common Vulnerability Scoring System
|
495
|
-
#
|
496
|
-
|
494
|
+
# Common Vulnerability Scoring System. For details, see https://www.first.org/
|
495
|
+
# cvss/specification-document This is a message we will try to use for storing
|
496
|
+
# multiple versions of CVSS. The intention is that as new versions of CVSS
|
497
|
+
# scores get added, we will be able to modify this message rather than adding
|
498
|
+
# new protos for each new version of the score.
|
499
|
+
class Cvss
|
497
500
|
include Google::Apis::Core::Hashable
|
498
501
|
|
499
502
|
#
|
@@ -507,6 +510,11 @@ module Google
|
|
507
510
|
# @return [String]
|
508
511
|
attr_accessor :attack_vector
|
509
512
|
|
513
|
+
#
|
514
|
+
# Corresponds to the JSON property `authentication`
|
515
|
+
# @return [String]
|
516
|
+
attr_accessor :authentication
|
517
|
+
|
510
518
|
#
|
511
519
|
# Corresponds to the JSON property `availabilityImpact`
|
512
520
|
# @return [String]
|
@@ -560,6 +568,7 @@ module Google
|
|
560
568
|
def update!(**args)
|
561
569
|
@attack_complexity = args[:attack_complexity] if args.key?(:attack_complexity)
|
562
570
|
@attack_vector = args[:attack_vector] if args.key?(:attack_vector)
|
571
|
+
@authentication = args[:authentication] if args.key?(:authentication)
|
563
572
|
@availability_impact = args[:availability_impact] if args.key?(:availability_impact)
|
564
573
|
@base_score = args[:base_score] if args.key?(:base_score)
|
565
574
|
@confidentiality_impact = args[:confidentiality_impact] if args.key?(:confidentiality_impact)
|
@@ -572,16 +581,84 @@ module Google
|
|
572
581
|
end
|
573
582
|
end
|
574
583
|
|
575
|
-
#
|
576
|
-
|
584
|
+
# Common Vulnerability Scoring System version 3. For details, see https://www.
|
585
|
+
# first.org/cvss/specification-document
|
586
|
+
class CvsSv3
|
577
587
|
include Google::Apis::Core::Hashable
|
578
588
|
|
589
|
+
#
|
590
|
+
# Corresponds to the JSON property `attackComplexity`
|
591
|
+
# @return [String]
|
592
|
+
attr_accessor :attack_complexity
|
593
|
+
|
594
|
+
# Base Metrics Represents the intrinsic characteristics of a vulnerability that
|
595
|
+
# are constant over time and across user environments.
|
596
|
+
# Corresponds to the JSON property `attackVector`
|
597
|
+
# @return [String]
|
598
|
+
attr_accessor :attack_vector
|
599
|
+
|
600
|
+
#
|
601
|
+
# Corresponds to the JSON property `availabilityImpact`
|
602
|
+
# @return [String]
|
603
|
+
attr_accessor :availability_impact
|
604
|
+
|
605
|
+
# The base score is a function of the base metric scores.
|
606
|
+
# Corresponds to the JSON property `baseScore`
|
607
|
+
# @return [Float]
|
608
|
+
attr_accessor :base_score
|
609
|
+
|
610
|
+
#
|
611
|
+
# Corresponds to the JSON property `confidentialityImpact`
|
612
|
+
# @return [String]
|
613
|
+
attr_accessor :confidentiality_impact
|
614
|
+
|
615
|
+
#
|
616
|
+
# Corresponds to the JSON property `exploitabilityScore`
|
617
|
+
# @return [Float]
|
618
|
+
attr_accessor :exploitability_score
|
619
|
+
|
620
|
+
#
|
621
|
+
# Corresponds to the JSON property `impactScore`
|
622
|
+
# @return [Float]
|
623
|
+
attr_accessor :impact_score
|
624
|
+
|
625
|
+
#
|
626
|
+
# Corresponds to the JSON property `integrityImpact`
|
627
|
+
# @return [String]
|
628
|
+
attr_accessor :integrity_impact
|
629
|
+
|
630
|
+
#
|
631
|
+
# Corresponds to the JSON property `privilegesRequired`
|
632
|
+
# @return [String]
|
633
|
+
attr_accessor :privileges_required
|
634
|
+
|
635
|
+
#
|
636
|
+
# Corresponds to the JSON property `scope`
|
637
|
+
# @return [String]
|
638
|
+
attr_accessor :scope
|
639
|
+
|
640
|
+
#
|
641
|
+
# Corresponds to the JSON property `userInteraction`
|
642
|
+
# @return [String]
|
643
|
+
attr_accessor :user_interaction
|
644
|
+
|
579
645
|
def initialize(**args)
|
580
646
|
update!(**args)
|
581
647
|
end
|
582
648
|
|
583
649
|
# Update properties of this object
|
584
650
|
def update!(**args)
|
651
|
+
@attack_complexity = args[:attack_complexity] if args.key?(:attack_complexity)
|
652
|
+
@attack_vector = args[:attack_vector] if args.key?(:attack_vector)
|
653
|
+
@availability_impact = args[:availability_impact] if args.key?(:availability_impact)
|
654
|
+
@base_score = args[:base_score] if args.key?(:base_score)
|
655
|
+
@confidentiality_impact = args[:confidentiality_impact] if args.key?(:confidentiality_impact)
|
656
|
+
@exploitability_score = args[:exploitability_score] if args.key?(:exploitability_score)
|
657
|
+
@impact_score = args[:impact_score] if args.key?(:impact_score)
|
658
|
+
@integrity_impact = args[:integrity_impact] if args.key?(:integrity_impact)
|
659
|
+
@privileges_required = args[:privileges_required] if args.key?(:privileges_required)
|
660
|
+
@scope = args[:scope] if args.key?(:scope)
|
661
|
+
@user_interaction = args[:user_interaction] if args.key?(:user_interaction)
|
585
662
|
end
|
586
663
|
end
|
587
664
|
|
@@ -3223,31 +3300,6 @@ module Google
|
|
3223
3300
|
end
|
3224
3301
|
end
|
3225
3302
|
|
3226
|
-
# The response message for Operations.ListOperations.
|
3227
|
-
class ListOperationsResponse
|
3228
|
-
include Google::Apis::Core::Hashable
|
3229
|
-
|
3230
|
-
# The standard List next-page token.
|
3231
|
-
# Corresponds to the JSON property `nextPageToken`
|
3232
|
-
# @return [String]
|
3233
|
-
attr_accessor :next_page_token
|
3234
|
-
|
3235
|
-
# A list of operations that matches the specified filter in the request.
|
3236
|
-
# Corresponds to the JSON property `operations`
|
3237
|
-
# @return [Array<Google::Apis::ContaineranalysisV1::Operation>]
|
3238
|
-
attr_accessor :operations
|
3239
|
-
|
3240
|
-
def initialize(**args)
|
3241
|
-
update!(**args)
|
3242
|
-
end
|
3243
|
-
|
3244
|
-
# Update properties of this object
|
3245
|
-
def update!(**args)
|
3246
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
3247
|
-
@operations = args[:operations] if args.key?(:operations)
|
3248
|
-
end
|
3249
|
-
end
|
3250
|
-
|
3251
3303
|
# An occurrence of a particular package installation found within a system's
|
3252
3304
|
# filesystem. E.g., glibc was found in `/var/lib/dpkg/status`.
|
3253
3305
|
class Location
|
@@ -3675,68 +3727,6 @@ module Google
|
|
3675
3727
|
end
|
3676
3728
|
end
|
3677
3729
|
|
3678
|
-
# This resource represents a long-running operation that is the result of a
|
3679
|
-
# network API call.
|
3680
|
-
class Operation
|
3681
|
-
include Google::Apis::Core::Hashable
|
3682
|
-
|
3683
|
-
# If the value is `false`, it means the operation is still in progress. If `true`
|
3684
|
-
# , the operation is completed, and either `error` or `response` is available.
|
3685
|
-
# Corresponds to the JSON property `done`
|
3686
|
-
# @return [Boolean]
|
3687
|
-
attr_accessor :done
|
3688
|
-
alias_method :done?, :done
|
3689
|
-
|
3690
|
-
# The `Status` type defines a logical error model that is suitable for different
|
3691
|
-
# programming environments, including REST APIs and RPC APIs. It is used by [
|
3692
|
-
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
3693
|
-
# data: error code, error message, and error details. You can find out more
|
3694
|
-
# about this error model and how to work with it in the [API Design Guide](https:
|
3695
|
-
# //cloud.google.com/apis/design/errors).
|
3696
|
-
# Corresponds to the JSON property `error`
|
3697
|
-
# @return [Google::Apis::ContaineranalysisV1::Status]
|
3698
|
-
attr_accessor :error
|
3699
|
-
|
3700
|
-
# Service-specific metadata associated with the operation. It typically contains
|
3701
|
-
# progress information and common metadata such as create time. Some services
|
3702
|
-
# might not provide such metadata. Any method that returns a long-running
|
3703
|
-
# operation should document the metadata type, if any.
|
3704
|
-
# Corresponds to the JSON property `metadata`
|
3705
|
-
# @return [Hash<String,Object>]
|
3706
|
-
attr_accessor :metadata
|
3707
|
-
|
3708
|
-
# The server-assigned name, which is only unique within the same service that
|
3709
|
-
# originally returns it. If you use the default HTTP mapping, the `name` should
|
3710
|
-
# be a resource name ending with `operations/`unique_id``.
|
3711
|
-
# Corresponds to the JSON property `name`
|
3712
|
-
# @return [String]
|
3713
|
-
attr_accessor :name
|
3714
|
-
|
3715
|
-
# The normal response of the operation in case of success. If the original
|
3716
|
-
# method returns no data on success, such as `Delete`, the response is `google.
|
3717
|
-
# protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
|
3718
|
-
# the response should be the resource. For other methods, the response should
|
3719
|
-
# have the type `XxxResponse`, where `Xxx` is the original method name. For
|
3720
|
-
# example, if the original method name is `TakeSnapshot()`, the inferred
|
3721
|
-
# response type is `TakeSnapshotResponse`.
|
3722
|
-
# Corresponds to the JSON property `response`
|
3723
|
-
# @return [Hash<String,Object>]
|
3724
|
-
attr_accessor :response
|
3725
|
-
|
3726
|
-
def initialize(**args)
|
3727
|
-
update!(**args)
|
3728
|
-
end
|
3729
|
-
|
3730
|
-
# Update properties of this object
|
3731
|
-
def update!(**args)
|
3732
|
-
@done = args[:done] if args.key?(:done)
|
3733
|
-
@error = args[:error] if args.key?(:error)
|
3734
|
-
@metadata = args[:metadata] if args.key?(:metadata)
|
3735
|
-
@name = args[:name] if args.key?(:name)
|
3736
|
-
@response = args[:response] if args.key?(:response)
|
3737
|
-
end
|
3738
|
-
end
|
3739
|
-
|
3740
3730
|
# A detail for a distro and package this vulnerability occurrence was found in
|
3741
3731
|
# and its associated fix (if one is available).
|
3742
3732
|
class PackageIssue
|
@@ -4838,6 +4828,15 @@ module Google
|
|
4838
4828
|
# @return [Float]
|
4839
4829
|
attr_accessor :cvss_score
|
4840
4830
|
|
4831
|
+
# Common Vulnerability Scoring System. For details, see https://www.first.org/
|
4832
|
+
# cvss/specification-document This is a message we will try to use for storing
|
4833
|
+
# multiple versions of CVSS. The intention is that as new versions of CVSS
|
4834
|
+
# scores get added, we will be able to modify this message rather than adding
|
4835
|
+
# new protos for each new version of the score.
|
4836
|
+
# Corresponds to the JSON property `cvssv3`
|
4837
|
+
# @return [Google::Apis::ContaineranalysisV1::Cvss]
|
4838
|
+
attr_accessor :cvssv3
|
4839
|
+
|
4841
4840
|
# The distro assigned severity for this vulnerability when it is available,
|
4842
4841
|
# otherwise this is the note provider assigned severity. When there are multiple
|
4843
4842
|
# PackageIssues for this vulnerability, they can have different effective
|
@@ -4895,6 +4894,7 @@ module Google
|
|
4895
4894
|
# Update properties of this object
|
4896
4895
|
def update!(**args)
|
4897
4896
|
@cvss_score = args[:cvss_score] if args.key?(:cvss_score)
|
4897
|
+
@cvssv3 = args[:cvssv3] if args.key?(:cvssv3)
|
4898
4898
|
@effective_severity = args[:effective_severity] if args.key?(:effective_severity)
|
4899
4899
|
@fix_available = args[:fix_available] if args.key?(:fix_available)
|
4900
4900
|
@long_description = args[:long_description] if args.key?(:long_description)
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module ContaineranalysisV1
|
18
18
|
# Version of the google-apis-containeranalysis_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.3.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20211203"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -100,13 +100,13 @@ module Google
|
|
100
100
|
include Google::Apis::Core::JsonObjectSupport
|
101
101
|
end
|
102
102
|
|
103
|
-
class
|
103
|
+
class Cvss
|
104
104
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
105
|
|
106
106
|
include Google::Apis::Core::JsonObjectSupport
|
107
107
|
end
|
108
108
|
|
109
|
-
class
|
109
|
+
class CvsSv3
|
110
110
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
111
|
|
112
112
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -520,12 +520,6 @@ module Google
|
|
520
520
|
include Google::Apis::Core::JsonObjectSupport
|
521
521
|
end
|
522
522
|
|
523
|
-
class ListOperationsResponse
|
524
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
525
|
-
|
526
|
-
include Google::Apis::Core::JsonObjectSupport
|
527
|
-
end
|
528
|
-
|
529
523
|
class Location
|
530
524
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
531
525
|
|
@@ -562,12 +556,6 @@ module Google
|
|
562
556
|
include Google::Apis::Core::JsonObjectSupport
|
563
557
|
end
|
564
558
|
|
565
|
-
class Operation
|
566
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
567
|
-
|
568
|
-
include Google::Apis::Core::JsonObjectSupport
|
569
|
-
end
|
570
|
-
|
571
559
|
class PackageIssue
|
572
560
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
573
561
|
|
@@ -875,11 +863,12 @@ module Google
|
|
875
863
|
end
|
876
864
|
end
|
877
865
|
|
878
|
-
class
|
866
|
+
class Cvss
|
879
867
|
# @private
|
880
868
|
class Representation < Google::Apis::Core::JsonRepresentation
|
881
869
|
property :attack_complexity, as: 'attackComplexity'
|
882
870
|
property :attack_vector, as: 'attackVector'
|
871
|
+
property :authentication, as: 'authentication'
|
883
872
|
property :availability_impact, as: 'availabilityImpact'
|
884
873
|
property :base_score, as: 'baseScore'
|
885
874
|
property :confidentiality_impact, as: 'confidentialityImpact'
|
@@ -892,9 +881,20 @@ module Google
|
|
892
881
|
end
|
893
882
|
end
|
894
883
|
|
895
|
-
class
|
884
|
+
class CvsSv3
|
896
885
|
# @private
|
897
886
|
class Representation < Google::Apis::Core::JsonRepresentation
|
887
|
+
property :attack_complexity, as: 'attackComplexity'
|
888
|
+
property :attack_vector, as: 'attackVector'
|
889
|
+
property :availability_impact, as: 'availabilityImpact'
|
890
|
+
property :base_score, as: 'baseScore'
|
891
|
+
property :confidentiality_impact, as: 'confidentialityImpact'
|
892
|
+
property :exploitability_score, as: 'exploitabilityScore'
|
893
|
+
property :impact_score, as: 'impactScore'
|
894
|
+
property :integrity_impact, as: 'integrityImpact'
|
895
|
+
property :privileges_required, as: 'privilegesRequired'
|
896
|
+
property :scope, as: 'scope'
|
897
|
+
property :user_interaction, as: 'userInteraction'
|
898
898
|
end
|
899
899
|
end
|
900
900
|
|
@@ -1612,15 +1612,6 @@ module Google
|
|
1612
1612
|
end
|
1613
1613
|
end
|
1614
1614
|
|
1615
|
-
class ListOperationsResponse
|
1616
|
-
# @private
|
1617
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
1618
|
-
property :next_page_token, as: 'nextPageToken'
|
1619
|
-
collection :operations, as: 'operations', class: Google::Apis::ContaineranalysisV1::Operation, decorator: Google::Apis::ContaineranalysisV1::Operation::Representation
|
1620
|
-
|
1621
|
-
end
|
1622
|
-
end
|
1623
|
-
|
1624
1615
|
class Location
|
1625
1616
|
# @private
|
1626
1617
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1731,18 +1722,6 @@ module Google
|
|
1731
1722
|
end
|
1732
1723
|
end
|
1733
1724
|
|
1734
|
-
class Operation
|
1735
|
-
# @private
|
1736
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
1737
|
-
property :done, as: 'done'
|
1738
|
-
property :error, as: 'error', class: Google::Apis::ContaineranalysisV1::Status, decorator: Google::Apis::ContaineranalysisV1::Status::Representation
|
1739
|
-
|
1740
|
-
hash :metadata, as: 'metadata'
|
1741
|
-
property :name, as: 'name'
|
1742
|
-
hash :response, as: 'response'
|
1743
|
-
end
|
1744
|
-
end
|
1745
|
-
|
1746
1725
|
class PackageIssue
|
1747
1726
|
# @private
|
1748
1727
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2017,6 +1996,8 @@ module Google
|
|
2017
1996
|
# @private
|
2018
1997
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2019
1998
|
property :cvss_score, as: 'cvssScore'
|
1999
|
+
property :cvssv3, as: 'cvssv3', class: Google::Apis::ContaineranalysisV1::Cvss, decorator: Google::Apis::ContaineranalysisV1::Cvss::Representation
|
2000
|
+
|
2020
2001
|
property :effective_severity, as: 'effectiveSeverity'
|
2021
2002
|
property :fix_available, as: 'fixAvailable'
|
2022
2003
|
property :long_description, as: 'longDescription'
|
@@ -50,156 +50,6 @@ module Google
|
|
50
50
|
@batch_path = 'batch'
|
51
51
|
end
|
52
52
|
|
53
|
-
# Starts asynchronous cancellation on a long-running operation. The server makes
|
54
|
-
# a best effort to cancel the operation, but success is not guaranteed. If the
|
55
|
-
# server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
56
|
-
# Clients can use Operations.GetOperation or other methods to check whether the
|
57
|
-
# cancellation succeeded or whether the operation completed despite cancellation.
|
58
|
-
# On successful cancellation, the operation is not deleted; instead, it becomes
|
59
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
|
60
|
-
# corresponding to `Code.CANCELLED`.
|
61
|
-
# @param [String] name
|
62
|
-
# The name of the operation resource to be cancelled.
|
63
|
-
# @param [Google::Apis::ContaineranalysisV1::CancelOperationRequest] cancel_operation_request_object
|
64
|
-
# @param [String] fields
|
65
|
-
# Selector specifying which fields to include in a partial response.
|
66
|
-
# @param [String] quota_user
|
67
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
68
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
69
|
-
# @param [Google::Apis::RequestOptions] options
|
70
|
-
# Request-specific options
|
71
|
-
#
|
72
|
-
# @yield [result, err] Result & error if block supplied
|
73
|
-
# @yieldparam result [Google::Apis::ContaineranalysisV1::Empty] parsed result object
|
74
|
-
# @yieldparam err [StandardError] error object if request failed
|
75
|
-
#
|
76
|
-
# @return [Google::Apis::ContaineranalysisV1::Empty]
|
77
|
-
#
|
78
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
79
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
80
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
81
|
-
def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
82
|
-
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
83
|
-
command.request_representation = Google::Apis::ContaineranalysisV1::CancelOperationRequest::Representation
|
84
|
-
command.request_object = cancel_operation_request_object
|
85
|
-
command.response_representation = Google::Apis::ContaineranalysisV1::Empty::Representation
|
86
|
-
command.response_class = Google::Apis::ContaineranalysisV1::Empty
|
87
|
-
command.params['name'] = name unless name.nil?
|
88
|
-
command.query['fields'] = fields unless fields.nil?
|
89
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
90
|
-
execute_or_queue_command(command, &block)
|
91
|
-
end
|
92
|
-
|
93
|
-
# Deletes a long-running operation. This method indicates that the client is no
|
94
|
-
# longer interested in the operation result. It does not cancel the operation.
|
95
|
-
# If the server doesn't support this method, it returns `google.rpc.Code.
|
96
|
-
# UNIMPLEMENTED`.
|
97
|
-
# @param [String] name
|
98
|
-
# The name of the operation resource to be deleted.
|
99
|
-
# @param [String] fields
|
100
|
-
# Selector specifying which fields to include in a partial response.
|
101
|
-
# @param [String] quota_user
|
102
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
103
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
104
|
-
# @param [Google::Apis::RequestOptions] options
|
105
|
-
# Request-specific options
|
106
|
-
#
|
107
|
-
# @yield [result, err] Result & error if block supplied
|
108
|
-
# @yieldparam result [Google::Apis::ContaineranalysisV1::Empty] parsed result object
|
109
|
-
# @yieldparam err [StandardError] error object if request failed
|
110
|
-
#
|
111
|
-
# @return [Google::Apis::ContaineranalysisV1::Empty]
|
112
|
-
#
|
113
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
114
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
115
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
116
|
-
def delete_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
117
|
-
command = make_simple_command(:delete, 'v1/{+name}', options)
|
118
|
-
command.response_representation = Google::Apis::ContaineranalysisV1::Empty::Representation
|
119
|
-
command.response_class = Google::Apis::ContaineranalysisV1::Empty
|
120
|
-
command.params['name'] = name unless name.nil?
|
121
|
-
command.query['fields'] = fields unless fields.nil?
|
122
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
123
|
-
execute_or_queue_command(command, &block)
|
124
|
-
end
|
125
|
-
|
126
|
-
# Gets the latest state of a long-running operation. Clients can use this method
|
127
|
-
# to poll the operation result at intervals as recommended by the API service.
|
128
|
-
# @param [String] name
|
129
|
-
# The name of the operation resource.
|
130
|
-
# @param [String] fields
|
131
|
-
# Selector specifying which fields to include in a partial response.
|
132
|
-
# @param [String] quota_user
|
133
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
134
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
135
|
-
# @param [Google::Apis::RequestOptions] options
|
136
|
-
# Request-specific options
|
137
|
-
#
|
138
|
-
# @yield [result, err] Result & error if block supplied
|
139
|
-
# @yieldparam result [Google::Apis::ContaineranalysisV1::Operation] parsed result object
|
140
|
-
# @yieldparam err [StandardError] error object if request failed
|
141
|
-
#
|
142
|
-
# @return [Google::Apis::ContaineranalysisV1::Operation]
|
143
|
-
#
|
144
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
145
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
146
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
147
|
-
def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
148
|
-
command = make_simple_command(:get, 'v1/{+name}', options)
|
149
|
-
command.response_representation = Google::Apis::ContaineranalysisV1::Operation::Representation
|
150
|
-
command.response_class = Google::Apis::ContaineranalysisV1::Operation
|
151
|
-
command.params['name'] = name unless name.nil?
|
152
|
-
command.query['fields'] = fields unless fields.nil?
|
153
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
154
|
-
execute_or_queue_command(command, &block)
|
155
|
-
end
|
156
|
-
|
157
|
-
# Lists operations that match the specified filter in the request. If the server
|
158
|
-
# doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
|
159
|
-
# binding allows API services to override the binding to use different resource
|
160
|
-
# name schemes, such as `users/*/operations`. To override the binding, API
|
161
|
-
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
162
|
-
# service configuration. For backwards compatibility, the default name includes
|
163
|
-
# the operations collection id, however overriding users must ensure the name
|
164
|
-
# binding is the parent resource, without the operations collection id.
|
165
|
-
# @param [String] name
|
166
|
-
# The name of the operation's parent resource.
|
167
|
-
# @param [String] filter
|
168
|
-
# The standard list filter.
|
169
|
-
# @param [Fixnum] page_size
|
170
|
-
# The standard list page size.
|
171
|
-
# @param [String] page_token
|
172
|
-
# The standard list page token.
|
173
|
-
# @param [String] fields
|
174
|
-
# Selector specifying which fields to include in a partial response.
|
175
|
-
# @param [String] quota_user
|
176
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
177
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
178
|
-
# @param [Google::Apis::RequestOptions] options
|
179
|
-
# Request-specific options
|
180
|
-
#
|
181
|
-
# @yield [result, err] Result & error if block supplied
|
182
|
-
# @yieldparam result [Google::Apis::ContaineranalysisV1::ListOperationsResponse] parsed result object
|
183
|
-
# @yieldparam err [StandardError] error object if request failed
|
184
|
-
#
|
185
|
-
# @return [Google::Apis::ContaineranalysisV1::ListOperationsResponse]
|
186
|
-
#
|
187
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
188
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
189
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
190
|
-
def list_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
191
|
-
command = make_simple_command(:get, 'v1/{+name}', options)
|
192
|
-
command.response_representation = Google::Apis::ContaineranalysisV1::ListOperationsResponse::Representation
|
193
|
-
command.response_class = Google::Apis::ContaineranalysisV1::ListOperationsResponse
|
194
|
-
command.params['name'] = name unless name.nil?
|
195
|
-
command.query['filter'] = filter unless filter.nil?
|
196
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
197
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
198
|
-
command.query['fields'] = fields unless fields.nil?
|
199
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
200
|
-
execute_or_queue_command(command, &block)
|
201
|
-
end
|
202
|
-
|
203
53
|
# Creates new notes in batch.
|
204
54
|
# @param [String] parent
|
205
55
|
# Required. The name of the project in the form of `projects/[PROJECT_ID]`,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-containeranalysis_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-containeranalysis_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-containeranalysis_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-containeranalysis_v1/v0.3.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-containeranalysis_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|