google-apis-binaryauthorization_v1 0.1.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a20b0fd5d53fadda8a61c7ee79491bb316e22f28991ae974f61f55d3fe2508a3
4
- data.tar.gz: ce31aed5834429439e060be87c8a2c0b6bdec2891701cdbda75e7ed4be0eb5ef
3
+ metadata.gz: 944fb229d826a230668f83d5d97b9fd1b50a109abed47353e069909f4ff4e15b
4
+ data.tar.gz: 14e6a29dad5ca5985311e7c44c55b45fb8ef16326206aff99d0420113ba38fcb
5
5
  SHA512:
6
- metadata.gz: a758f8b34661656f0c5195a6153cd0cb4715ab55fe16eb0e6cf013a6fa593cefde4e865b4d1e4db24a42bb38325342e19ea0ffb6928f8f8f9eba74b1d1504be4
7
- data.tar.gz: 536d28939fac7762f56e20e6e0e4c5af47c657a0b2e2a0023cfcbfb75ae46785d7caa315feee28bbbc012284e4115b16fec9c60e43f9fdc99b9d5e5cc8b52eb5
6
+ metadata.gz: 95e7e7d697f588a5965f9032b51b11a424cbccc721880375caddbabc2cec521aa67d290d69c1042c29c054fdd3d8ece71cd14c2d59a47f4e3134c8f33ac01629
7
+ data.tar.gz: a98132113ce8463cc399a68f878bc1ca6b91e3298d1b5a46d40910a9efc6660e2af838429326e517513f7d995829731f7be5289c0e43c5a8ca219b38d5d2c116
data/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # Release history for google-apis-binaryauthorization_v1
2
2
 
3
+ ### v0.6.0 (2021-05-19)
4
+
5
+ * Unspecified changes
6
+
7
+ ### v0.5.0 (2021-05-01)
8
+
9
+ * Regenerated from discovery document revision 20210422
10
+ * Regenerated using generator version 0.2.0
11
+
12
+ ### v0.4.0 (2021-03-04)
13
+
14
+ * Unspecified changes
15
+
16
+ ### v0.3.0 (2021-02-20)
17
+
18
+ * Regenerated from discovery document revision 20210212
19
+
20
+ ### v0.2.0 (2021-02-04)
21
+
22
+ * Regenerated from discovery document revision 20210129
23
+ * Regenerated using generator version 0.1.2
24
+
3
25
  ### v0.1.0 (2021-01-07)
4
26
 
5
27
  * Regenerated using generator version 0.1.1
@@ -30,7 +30,7 @@ module Google
30
30
  # This is NOT the gem version.
31
31
  VERSION = 'V1'
32
32
 
33
- # View and manage your data across Google Cloud Platform services
33
+ # See, edit, configure, and delete your Google Cloud Platform data
34
34
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
35
35
  end
36
36
  end
@@ -25,7 +25,7 @@ module Google
25
25
  # An admission rule specifies either that all container images used in a pod
26
26
  # creation request must be attested to by one or more attestors, that all pod
27
27
  # creations will be allowed, or that all pod creations will be denied. Images
28
- # matching an admission whitelist pattern are exempted from admission rules and
28
+ # matching an admission allowlist pattern are exempted from admission rules and
29
29
  # will never block a pod creation.
30
30
  class AdmissionRule
31
31
  include Google::Apis::Core::Hashable
@@ -62,13 +62,14 @@ module Google
62
62
  end
63
63
  end
64
64
 
65
- # An admission whitelist pattern exempts images from checks by admission rules.
65
+ # An admission allowlist pattern exempts images from checks by admission rules.
66
66
  class AdmissionWhitelistPattern
67
67
  include Google::Apis::Core::Hashable
68
68
 
69
69
  # An image name pattern to allowlist, in the form `registry/path/to/image`. This
70
- # supports a trailing `*` as a wildcard, but this is allowed only in text after
71
- # the `registry/` part.
70
+ # supports a trailing `*` wildcard, but this is allowed only in text after the `
71
+ # registry/` part. This also supports a trailing `**` wildcard which matches
72
+ # subdirectories of a given entry.
72
73
  # Corresponds to the JSON property `namePattern`
73
74
  # @return [String]
74
75
  attr_accessor :name_pattern
@@ -548,7 +549,7 @@ module Google
548
549
  # An admission rule specifies either that all container images used in a pod
549
550
  # creation request must be attested to by one or more attestors, that all pod
550
551
  # creations will be allowed, or that all pod creations will be denied. Images
551
- # matching an admission whitelist pattern are exempted from admission rules and
552
+ # matching an admission allowlist pattern are exempted from admission rules and
552
553
  # will never block a pod creation.
553
554
  # Corresponds to the JSON property `defaultAdmissionRule`
554
555
  # @return [Google::Apis::BinaryauthorizationV1::AdmissionRule]
@@ -567,6 +568,25 @@ module Google
567
568
  # @return [String]
568
569
  attr_accessor :global_policy_evaluation_mode
569
570
 
571
+ # Optional. Per-istio-service-identity admission rules. Istio service identity
572
+ # spec format: spiffe:///ns//sa/ or /ns//sa/ e.g. spiffe://example.com/ns/test-
573
+ # ns/sa/default
574
+ # Corresponds to the JSON property `istioServiceIdentityAdmissionRules`
575
+ # @return [Hash<String,Google::Apis::BinaryauthorizationV1::AdmissionRule>]
576
+ attr_accessor :istio_service_identity_admission_rules
577
+
578
+ # Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
579
+ # [a-z.-]+, e.g. 'some-namespace'
580
+ # Corresponds to the JSON property `kubernetesNamespaceAdmissionRules`
581
+ # @return [Hash<String,Google::Apis::BinaryauthorizationV1::AdmissionRule>]
582
+ attr_accessor :kubernetes_namespace_admission_rules
583
+
584
+ # Optional. Per-kubernetes-service-account admission rules. Service account spec
585
+ # format: `namespace:serviceaccount`. e.g. 'test-ns:default'
586
+ # Corresponds to the JSON property `kubernetesServiceAccountAdmissionRules`
587
+ # @return [Hash<String,Google::Apis::BinaryauthorizationV1::AdmissionRule>]
588
+ attr_accessor :kubernetes_service_account_admission_rules
589
+
570
590
  # Output only. The resource name, in the format `projects/*/policy`. There is at
571
591
  # most one policy per project.
572
592
  # Corresponds to the JSON property `name`
@@ -589,6 +609,9 @@ module Google
589
609
  @default_admission_rule = args[:default_admission_rule] if args.key?(:default_admission_rule)
590
610
  @description = args[:description] if args.key?(:description)
591
611
  @global_policy_evaluation_mode = args[:global_policy_evaluation_mode] if args.key?(:global_policy_evaluation_mode)
612
+ @istio_service_identity_admission_rules = args[:istio_service_identity_admission_rules] if args.key?(:istio_service_identity_admission_rules)
613
+ @kubernetes_namespace_admission_rules = args[:kubernetes_namespace_admission_rules] if args.key?(:kubernetes_namespace_admission_rules)
614
+ @kubernetes_service_account_admission_rules = args[:kubernetes_service_account_admission_rules] if args.key?(:kubernetes_service_account_admission_rules)
592
615
  @name = args[:name] if args.key?(:name)
593
616
  @update_time = args[:update_time] if args.key?(:update_time)
594
617
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module BinaryauthorizationV1
18
18
  # Version of the google-apis-binaryauthorization_v1 gem
19
- GEM_VERSION = "0.1.0"
19
+ GEM_VERSION = "0.6.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.1"
22
+ GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20201113"
25
+ REVISION = "20210422"
26
26
  end
27
27
  end
28
28
  end
@@ -262,6 +262,12 @@ module Google
262
262
 
263
263
  property :description, as: 'description'
264
264
  property :global_policy_evaluation_mode, as: 'globalPolicyEvaluationMode'
265
+ hash :istio_service_identity_admission_rules, as: 'istioServiceIdentityAdmissionRules', class: Google::Apis::BinaryauthorizationV1::AdmissionRule, decorator: Google::Apis::BinaryauthorizationV1::AdmissionRule::Representation
266
+
267
+ hash :kubernetes_namespace_admission_rules, as: 'kubernetesNamespaceAdmissionRules', class: Google::Apis::BinaryauthorizationV1::AdmissionRule, decorator: Google::Apis::BinaryauthorizationV1::AdmissionRule::Representation
268
+
269
+ hash :kubernetes_service_account_admission_rules, as: 'kubernetesServiceAccountAdmissionRules', class: Google::Apis::BinaryauthorizationV1::AdmissionRule, decorator: Google::Apis::BinaryauthorizationV1::AdmissionRule::Representation
270
+
265
271
  property :name, as: 'name'
266
272
  property :update_time, as: 'updateTime'
267
273
  end
@@ -560,6 +560,37 @@ module Google
560
560
  command.query['quotaUser'] = quota_user unless quota_user.nil?
561
561
  execute_or_queue_command(command, &block)
562
562
  end
563
+
564
+ # Gets the current system policy in the specified location.
565
+ # @param [String] name
566
+ # Required. The resource name, in the format `locations/*/policy`. Note that the
567
+ # system policy is not associated with a project.
568
+ # @param [String] fields
569
+ # Selector specifying which fields to include in a partial response.
570
+ # @param [String] quota_user
571
+ # Available to use for quota purposes for server-side applications. Can be any
572
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
573
+ # @param [Google::Apis::RequestOptions] options
574
+ # Request-specific options
575
+ #
576
+ # @yield [result, err] Result & error if block supplied
577
+ # @yieldparam result [Google::Apis::BinaryauthorizationV1::Policy] parsed result object
578
+ # @yieldparam err [StandardError] error object if request failed
579
+ #
580
+ # @return [Google::Apis::BinaryauthorizationV1::Policy]
581
+ #
582
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
583
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
584
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
585
+ def get_systempolicy_policy(name, fields: nil, quota_user: nil, options: nil, &block)
586
+ command = make_simple_command(:get, 'v1/{+name}', options)
587
+ command.response_representation = Google::Apis::BinaryauthorizationV1::Policy::Representation
588
+ command.response_class = Google::Apis::BinaryauthorizationV1::Policy
589
+ command.params['name'] = name unless name.nil?
590
+ command.query['fields'] = fields unless fields.nil?
591
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
592
+ execute_or_queue_command(command, &block)
593
+ end
563
594
 
564
595
  protected
565
596
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-binaryauthorization_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.6.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-01-08 00:00:00.000000000 Z
11
+ date: 2021-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-binaryauthorization_v1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-binaryauthorization_v1/v0.1.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-binaryauthorization_v1/v0.6.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-binaryauthorization_v1
57
57
  post_install_message:
58
58
  rdoc_options: []
@@ -62,14 +62,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
62
62
  requirements:
63
63
  - - ">="
64
64
  - !ruby/object:Gem::Version
65
- version: '2.4'
65
+ version: '2.5'
66
66
  required_rubygems_version: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - ">="
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.1.4
72
+ rubygems_version: 3.2.17
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for Binary Authorization API V1