google-apis-binaryauthorization_v1beta1 0.1.0 → 0.2.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: f75f9741cd6ab5896a6159ca971bb33a71f95e54ab722c5724240cdfcdaf938e
4
- data.tar.gz: 5f2484b7d210c84a423bb08df455ac40da066f54dc8d9e25bb6a9d172dd370a5
3
+ metadata.gz: f0e894ad268284c1a4bcdfe399672313637a977cbfe65a59855c4de0b041c36d
4
+ data.tar.gz: b5934b593fe0bd882587c1c96b5a9ada0c9034ae78c208ce40b57c71ed725abc
5
5
  SHA512:
6
- metadata.gz: 004c52d5172f647bdcfcdcc9faa8d3c852558ecb7f237e1bc4ea306479536aed76af713394b76675ba499507d1dd1e2cba89007265661243453b00c83d24f76a
7
- data.tar.gz: ad487e8c5f9e72e2e004860bda96cb2cad262b31c426d0cdeeee108142238834200356f3773a4d4495dfadeb8f1092ac47ce2ee269c096a87141ba4d05c2b596
6
+ metadata.gz: c4b75dbd9c0f9ecb7a049ed0b11d69260a7a6a87ab49986cae8bed9d9aca19b4ce7447e418f248a37e22e5570eb7b4b369dcc96395ab8e42d22fee7d4bf362c3
7
+ data.tar.gz: 70f461c7332a4ede7c95a2a46a43f1c229db8076457c6322306916f249ae1200b78e87ff614205fb24998206f9e53165225ca82875458db041ac9f3f8aefc8d9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-binaryauthorization_v1beta1
2
2
 
3
+ ### v0.2.0 (2021-02-06)
4
+
5
+ * Regenerated from discovery document revision 20210129
6
+ * Regenerated using generator version 0.1.2
7
+
3
8
  ### v0.1.0 (2021-01-07)
4
9
 
5
10
  * Regenerated using generator version 0.1.1
@@ -568,6 +568,25 @@ module Google
568
568
  # @return [String]
569
569
  attr_accessor :global_policy_evaluation_mode
570
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::BinaryauthorizationV1beta1::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::BinaryauthorizationV1beta1::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::BinaryauthorizationV1beta1::AdmissionRule>]
588
+ attr_accessor :kubernetes_service_account_admission_rules
589
+
571
590
  # Output only. The resource name, in the format `projects/*/policy`. There is at
572
591
  # most one policy per project.
573
592
  # Corresponds to the JSON property `name`
@@ -590,6 +609,9 @@ module Google
590
609
  @default_admission_rule = args[:default_admission_rule] if args.key?(:default_admission_rule)
591
610
  @description = args[:description] if args.key?(:description)
592
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)
593
615
  @name = args[:name] if args.key?(:name)
594
616
  @update_time = args[:update_time] if args.key?(:update_time)
595
617
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module BinaryauthorizationV1beta1
18
18
  # Version of the google-apis-binaryauthorization_v1beta1 gem
19
- GEM_VERSION = "0.1.0"
19
+ GEM_VERSION = "0.2.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.1.2"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20201113"
25
+ REVISION = "20210129"
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::BinaryauthorizationV1beta1::AdmissionRule, decorator: Google::Apis::BinaryauthorizationV1beta1::AdmissionRule::Representation
266
+
267
+ hash :kubernetes_namespace_admission_rules, as: 'kubernetesNamespaceAdmissionRules', class: Google::Apis::BinaryauthorizationV1beta1::AdmissionRule, decorator: Google::Apis::BinaryauthorizationV1beta1::AdmissionRule::Representation
268
+
269
+ hash :kubernetes_service_account_admission_rules, as: 'kubernetesServiceAccountAdmissionRules', class: Google::Apis::BinaryauthorizationV1beta1::AdmissionRule, decorator: Google::Apis::BinaryauthorizationV1beta1::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::BinaryauthorizationV1beta1::Policy] parsed result object
578
+ # @yieldparam err [StandardError] error object if request failed
579
+ #
580
+ # @return [Google::Apis::BinaryauthorizationV1beta1::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, 'v1beta1/{+name}', options)
587
+ command.response_representation = Google::Apis::BinaryauthorizationV1beta1::Policy::Representation
588
+ command.response_class = Google::Apis::BinaryauthorizationV1beta1::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_v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.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-02-08 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_v1beta1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-binaryauthorization_v1beta1/v0.1.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-binaryauthorization_v1beta1/v0.2.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-binaryauthorization_v1beta1
57
57
  post_install_message:
58
58
  rdoc_options: []
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.1.4
72
+ rubygems_version: 3.2.6
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for Binary Authorization API V1beta1