google-apis-binaryauthorization_v1 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: a20b0fd5d53fadda8a61c7ee79491bb316e22f28991ae974f61f55d3fe2508a3
4
- data.tar.gz: ce31aed5834429439e060be87c8a2c0b6bdec2891701cdbda75e7ed4be0eb5ef
3
+ metadata.gz: e564043f859212d3eb5eaaaac6f1b8d0fd3081d9760c550472fc3911202042b6
4
+ data.tar.gz: ad2e2ee9afdd00f052fb13bb3b9c063810eea3c63852d279b3f99f4098b2edc5
5
5
  SHA512:
6
- metadata.gz: a758f8b34661656f0c5195a6153cd0cb4715ab55fe16eb0e6cf013a6fa593cefde4e865b4d1e4db24a42bb38325342e19ea0ffb6928f8f8f9eba74b1d1504be4
7
- data.tar.gz: 536d28939fac7762f56e20e6e0e4c5af47c657a0b2e2a0023cfcbfb75ae46785d7caa315feee28bbbc012284e4115b16fec9c60e43f9fdc99b9d5e5cc8b52eb5
6
+ metadata.gz: ba626b63324ef870b421d9eccfd0a18aae83bb2af8aaa22829cf04f2414964cac79479be237a97a9b8fb31975c94d484b2570da2c8af566c26b33da9fc51dcda
7
+ data.tar.gz: 1e5ae85d18527044e40d00845bb67279ceafc599e40dd3d93a4d915a589f02aff993de8f84bc3ba23a0272eab02e8e7205bc43112a6fab8b3e3ccaf2ae4cd59e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-binaryauthorization_v1
2
2
 
3
+ ### v0.2.0 (2021-02-04)
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
@@ -567,6 +567,25 @@ module Google
567
567
  # @return [String]
568
568
  attr_accessor :global_policy_evaluation_mode
569
569
 
570
+ # Optional. Per-istio-service-identity admission rules. Istio service identity
571
+ # spec format: spiffe:///ns//sa/ or /ns//sa/ e.g. spiffe://example.com/ns/test-
572
+ # ns/sa/default
573
+ # Corresponds to the JSON property `istioServiceIdentityAdmissionRules`
574
+ # @return [Hash<String,Google::Apis::BinaryauthorizationV1::AdmissionRule>]
575
+ attr_accessor :istio_service_identity_admission_rules
576
+
577
+ # Optional. Per-kubernetes-namespace admission rules. K8s namespace spec format:
578
+ # [a-z.-]+, e.g. 'some-namespace'
579
+ # Corresponds to the JSON property `kubernetesNamespaceAdmissionRules`
580
+ # @return [Hash<String,Google::Apis::BinaryauthorizationV1::AdmissionRule>]
581
+ attr_accessor :kubernetes_namespace_admission_rules
582
+
583
+ # Optional. Per-kubernetes-service-account admission rules. Service account spec
584
+ # format: `namespace:serviceaccount`. e.g. 'test-ns:default'
585
+ # Corresponds to the JSON property `kubernetesServiceAccountAdmissionRules`
586
+ # @return [Hash<String,Google::Apis::BinaryauthorizationV1::AdmissionRule>]
587
+ attr_accessor :kubernetes_service_account_admission_rules
588
+
570
589
  # Output only. The resource name, in the format `projects/*/policy`. There is at
571
590
  # most one policy per project.
572
591
  # Corresponds to the JSON property `name`
@@ -589,6 +608,9 @@ module Google
589
608
  @default_admission_rule = args[:default_admission_rule] if args.key?(:default_admission_rule)
590
609
  @description = args[:description] if args.key?(:description)
591
610
  @global_policy_evaluation_mode = args[:global_policy_evaluation_mode] if args.key?(:global_policy_evaluation_mode)
611
+ @istio_service_identity_admission_rules = args[:istio_service_identity_admission_rules] if args.key?(:istio_service_identity_admission_rules)
612
+ @kubernetes_namespace_admission_rules = args[:kubernetes_namespace_admission_rules] if args.key?(:kubernetes_namespace_admission_rules)
613
+ @kubernetes_service_account_admission_rules = args[:kubernetes_service_account_admission_rules] if args.key?(:kubernetes_service_account_admission_rules)
592
614
  @name = args[:name] if args.key?(:name)
593
615
  @update_time = args[:update_time] if args.key?(:update_time)
594
616
  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.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::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.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_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.2.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: []
@@ -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 V1