google-cloud-kms 0.2.5 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b44fee1b9c539151217a0a092ee3ab78205b3b324472a1bfe5fb23ee07369625
4
- data.tar.gz: eff7027cd730b4fb664ca39e14a0a3a4b2de672f7a5da22b3d2019e9bf158844
3
+ metadata.gz: ec163d046bca9e1cd304f37b5b1d412017ebafbc777cf35b9b51b1b66219a223
4
+ data.tar.gz: 5c309df7134b5d315326087c4dc4b9587b2d2583f4f4b4a1b83169d41787b926
5
5
  SHA512:
6
- metadata.gz: 5a2f8c62c4e92325d9d950f77a2eef70151a2cb8ebef66c4d5b7182aaf5eab0da9419f38eb3988435eee5094ac752a94ecf945ac5c46ba08ea8e0d3b8fca4a77
7
- data.tar.gz: fdd0fc6d28f5982e1586d99bcf835cd6a64060380aef281238be5db7a14d6b30563b3bf43dc4f429bd0818293f766ca03e46c98caf8e7d3e7aed593914839f9b
6
+ metadata.gz: feb4407b2af7d2d1a5f68059668414122ddaf1555163cda0687f11b0298c3a96351e7bee266893d0ff66bc17ed5f6384c957d3d2a2172c7319450582ee3490dd
7
+ data.tar.gz: be09802523463180a1c69b1beeb9ebc1c4c8ffa2c934af957ae0e803b1e6da2b422ee7c7216cd62d5a9d5ebe787938c117eb116cc9216a7f656bb43f2fc822d2
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Ruby Client for Cloud Key Management Service (KMS) API ([Alpha](https://github.com/googleapis/google-cloud-ruby#versioning))
1
+ # Ruby Client for Cloud Key Management Service (KMS) API ([Beta](https://github.com/googleapis/google-cloud-ruby#versioning))
2
2
 
3
3
  [Cloud Key Management Service (KMS) API][Product Documentation]:
4
4
  Manages keys and performs cryptographic operations in a central cloud
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -21,7 +21,7 @@ module Google
21
21
  # rubocop:disable LineLength
22
22
 
23
23
  ##
24
- # # Ruby Client for Cloud Key Management Service (KMS) API ([Alpha](https://github.com/googleapis/google-cloud-ruby#versioning))
24
+ # # Ruby Client for Cloud Key Management Service (KMS) API ([Beta](https://github.com/googleapis/google-cloud-ruby#versioning))
25
25
  #
26
26
  # [Cloud Key Management Service (KMS) API][Product Documentation]:
27
27
  # Manages keys and performs cryptographic operations in a central cloud
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -23,7 +23,7 @@ module Google
23
23
  # rubocop:disable LineLength
24
24
 
25
25
  ##
26
- # # Ruby Client for Cloud Key Management Service (KMS) API ([Alpha](https://github.com/googleapis/google-cloud-ruby#versioning))
26
+ # # Ruby Client for Cloud Key Management Service (KMS) API ([Beta](https://github.com/googleapis/google-cloud-ruby#versioning))
27
27
  #
28
28
  # [Cloud Key Management Service (KMS) API][Product Documentation]:
29
29
  # Manages keys and performs cryptographic operations in a central cloud
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -16,48 +16,6 @@
16
16
  module Google
17
17
  module Iam
18
18
  module V1
19
- # Request message for `SetIamPolicy` method.
20
- # @!attribute [rw] resource
21
- # @return [String]
22
- # REQUIRED: The resource for which the policy is being specified.
23
- # `resource` is usually specified as a path. For example, a Project
24
- # resource is specified as `projects/{project}`.
25
- # @!attribute [rw] policy
26
- # @return [Google::Iam::V1::Policy]
27
- # REQUIRED: The complete policy to be applied to the `resource`. The size of
28
- # the policy is limited to a few 10s of KB. An empty policy is a
29
- # valid policy but certain Cloud Platform services (such as Projects)
30
- # might reject them.
31
- class SetIamPolicyRequest; end
32
-
33
- # Request message for `GetIamPolicy` method.
34
- # @!attribute [rw] resource
35
- # @return [String]
36
- # REQUIRED: The resource for which the policy is being requested.
37
- # `resource` is usually specified as a path. For example, a Project
38
- # resource is specified as `projects/{project}`.
39
- class GetIamPolicyRequest; end
40
-
41
- # Request message for `TestIamPermissions` method.
42
- # @!attribute [rw] resource
43
- # @return [String]
44
- # REQUIRED: The resource for which the policy detail is being requested.
45
- # `resource` is usually specified as a path. For example, a Project
46
- # resource is specified as `projects/{project}`.
47
- # @!attribute [rw] permissions
48
- # @return [Array<String>]
49
- # The set of permissions to check for the `resource`. Permissions with
50
- # wildcards (such as '*' or 'storage.*') are not allowed. For more
51
- # information see
52
- # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
53
- class TestIamPermissionsRequest; end
54
-
55
- # Response message for `TestIamPermissions` method.
56
- # @!attribute [rw] permissions
57
- # @return [Array<String>]
58
- # A subset of `TestPermissionsRequest.permissions` that the caller is
59
- # allowed.
60
- class TestIamPermissionsResponse; end
61
19
  end
62
20
  end
63
21
  end
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -16,113 +16,6 @@
16
16
  module Google
17
17
  module Iam
18
18
  module V1
19
- # Defines an Identity and Access Management (IAM) policy. It is used to
20
- # specify access control policies for Cloud Platform resources.
21
- #
22
- #
23
- # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
24
- # `members` to a `role`, where the members can be user accounts, Google groups,
25
- # Google domains, and service accounts. A `role` is a named list of permissions
26
- # defined by IAM.
27
- #
28
- # **Example**
29
- #
30
- # {
31
- # "bindings": [
32
- # {
33
- # "role": "roles/owner",
34
- # "members": [
35
- # "user:mike@example.com",
36
- # "group:admins@example.com",
37
- # "domain:google.com",
38
- # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
39
- # ]
40
- # },
41
- # {
42
- # "role": "roles/viewer",
43
- # "members": ["user:sean@example.com"]
44
- # }
45
- # ]
46
- # }
47
- #
48
- # For a description of IAM and its features, see the
49
- # [IAM developer's guide](https://cloud.google.com/iam).
50
- # @!attribute [rw] version
51
- # @return [Integer]
52
- # Version of the `Policy`. The default version is 0.
53
- # @!attribute [rw] bindings
54
- # @return [Array<Google::Iam::V1::Binding>]
55
- # Associates a list of `members` to a `role`.
56
- # Multiple `bindings` must not be specified for the same `role`.
57
- # `bindings` with no members will result in an error.
58
- # @!attribute [rw] etag
59
- # @return [String]
60
- # `etag` is used for optimistic concurrency control as a way to help
61
- # prevent simultaneous updates of a policy from overwriting each other.
62
- # It is strongly suggested that systems make use of the `etag` in the
63
- # read-modify-write cycle to perform policy updates in order to avoid race
64
- # conditions: An `etag` is returned in the response to `getIamPolicy`, and
65
- # systems are expected to put that etag in the request to `setIamPolicy` to
66
- # ensure that their change will be applied to the same version of the policy.
67
- #
68
- # If no `etag` is provided in the call to `setIamPolicy`, then the existing
69
- # policy is overwritten blindly.
70
- class Policy; end
71
-
72
- # Associates `members` with a `role`.
73
- # @!attribute [rw] role
74
- # @return [String]
75
- # Role that is assigned to `members`.
76
- # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
77
- # Required
78
- # @!attribute [rw] members
79
- # @return [Array<String>]
80
- # Specifies the identities requesting access for a Cloud Platform resource.
81
- # `members` can have the following values:
82
- #
83
- # * `allUsers`: A special identifier that represents anyone who is
84
- # on the internet; with or without a Google account.
85
- #
86
- # * `allAuthenticatedUsers`: A special identifier that represents anyone
87
- # who is authenticated with a Google account or a service account.
88
- #
89
- # * `user:{emailid}`: An email address that represents a specific Google
90
- # account. For example, `alice@gmail.com` or `joe@example.com`.
91
- #
92
- #
93
- # * `serviceAccount:{emailid}`: An email address that represents a service
94
- # account. For example, `my-other-app@appspot.gserviceaccount.com`.
95
- #
96
- # * `group:{emailid}`: An email address that represents a Google group.
97
- # For example, `admins@example.com`.
98
- #
99
- # * `domain:{domain}`: A Google Apps domain name that represents all the
100
- # users of that domain. For example, `google.com` or `example.com`.
101
- class Binding; end
102
-
103
- # The difference delta between two policies.
104
- # @!attribute [rw] binding_deltas
105
- # @return [Array<Google::Iam::V1::BindingDelta>]
106
- # The delta for Bindings between two policies.
107
- class PolicyDelta; end
108
-
109
- # One delta entry for Binding. Each individual change (only one member in each
110
- # entry) to a binding will be a separate entry.
111
- # @!attribute [rw] action
112
- # @return [Google::Iam::V1::BindingDelta::Action]
113
- # The action that was performed on a Binding.
114
- # Required
115
- # @!attribute [rw] role
116
- # @return [String]
117
- # Role that is assigned to `members`.
118
- # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
119
- # Required
120
- # @!attribute [rw] member
121
- # @return [String]
122
- # A single identity requesting access for a Cloud Platform resource.
123
- # Follows the same format of Binding.members.
124
- # Required
125
- class BindingDelta; end
126
19
  end
127
20
  end
128
21
  end
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -16,44 +16,44 @@
16
16
  module Kms
17
17
  module V1
18
18
  class KeyManagementServiceClient
19
- # Alias for Google::Cloud::Kms::V1::KeyManagementServiceClient.crypto_key_version_path.
19
+ # Alias for Google::Cloud::Kms::V1::KeyManagementServiceClient.crypto_key_path.
20
20
  # @param project [String]
21
21
  # @param location [String]
22
22
  # @param key_ring [String]
23
23
  # @param crypto_key [String]
24
- # @param crypto_key_version [String]
25
24
  # @return [String]
26
- def crypto_key_version_path project, location, key_ring, crypto_key, crypto_key_version
27
- self.class.crypto_key_version_path project, location, key_ring, crypto_key, crypto_key_version
25
+ def crypto_key_path project, location, key_ring, crypto_key
26
+ self.class.crypto_key_path project, location, key_ring, crypto_key
28
27
  end
29
28
 
30
- # Alias for Google::Cloud::Kms::V1::KeyManagementServiceClient.key_ring_path.
29
+ # Alias for Google::Cloud::Kms::V1::KeyManagementServiceClient.crypto_key_path_path.
31
30
  # @param project [String]
32
31
  # @param location [String]
33
32
  # @param key_ring [String]
33
+ # @param crypto_key_path [String]
34
34
  # @return [String]
35
- def key_ring_path project, location, key_ring
36
- self.class.key_ring_path project, location, key_ring
35
+ def crypto_key_path_path project, location, key_ring, crypto_key_path
36
+ self.class.crypto_key_path_path project, location, key_ring, crypto_key_path
37
37
  end
38
38
 
39
- # Alias for Google::Cloud::Kms::V1::KeyManagementServiceClient.crypto_key_path_path.
39
+ # Alias for Google::Cloud::Kms::V1::KeyManagementServiceClient.crypto_key_version_path.
40
40
  # @param project [String]
41
41
  # @param location [String]
42
42
  # @param key_ring [String]
43
- # @param crypto_key_path [String]
43
+ # @param crypto_key [String]
44
+ # @param crypto_key_version [String]
44
45
  # @return [String]
45
- def crypto_key_path_path project, location, key_ring, crypto_key_path
46
- self.class.crypto_key_path_path project, location, key_ring, crypto_key_path
46
+ def crypto_key_version_path project, location, key_ring, crypto_key, crypto_key_version
47
+ self.class.crypto_key_version_path project, location, key_ring, crypto_key, crypto_key_version
47
48
  end
48
49
 
49
- # Alias for Google::Cloud::Kms::V1::KeyManagementServiceClient.crypto_key_path.
50
+ # Alias for Google::Cloud::Kms::V1::KeyManagementServiceClient.key_ring_path.
50
51
  # @param project [String]
51
52
  # @param location [String]
52
53
  # @param key_ring [String]
53
- # @param crypto_key [String]
54
54
  # @return [String]
55
- def crypto_key_path project, location, key_ring, crypto_key
56
- self.class.crypto_key_path project, location, key_ring, crypto_key
55
+ def key_ring_path project, location, key_ring
56
+ self.class.key_ring_path project, location, key_ring
57
57
  end
58
58
 
59
59
  # Alias for Google::Cloud::Kms::V1::KeyManagementServiceClient.location_path.
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-kms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
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: 2018-12-13 00:00:00.000000000 Z
11
+ date: 2019-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-gax
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.59.2
75
+ version: 0.61.0
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.59.2
82
+ version: 0.61.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: simplecov
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -154,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
154
154
  version: '0'
155
155
  requirements: []
156
156
  rubyforge_project:
157
- rubygems_version: 2.7.7
157
+ rubygems_version: 2.7.6
158
158
  signing_key:
159
159
  specification_version: 4
160
160
  summary: API Client library for Cloud Key Management Service (KMS) API