aws-sdk-iam 1.0.0.rc1 → 1.0.0.rc2

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
  SHA1:
3
- metadata.gz: 711f2481a1d492ed7fab806a633115360ec79049
4
- data.tar.gz: ed1dd9b7de5cf542e58f7989c0581ccae0f16b16
3
+ metadata.gz: 37d63f61645ebc8ac3dff2cd7b64bfaa24a61b5c
4
+ data.tar.gz: b7b32cf50737bcaa622e7041a550d4260e47d715
5
5
  SHA512:
6
- metadata.gz: 02b78a0f51c3ce2e90947b1b0d4c08902debc7611acf5bb06a7432db617a7102d35cb243cb2808356dbad3c4f93797be09856d6497f17989c8954bcee02266f1
7
- data.tar.gz: af26e2326edeb2068e7b56bc6dc57bbd7d49ef3cd8c7e094183ca06cb4ed76a4fc7009aab9f02ebd9af557b6a3266cfeedbbaa480f92528f415d10c15ed8017f
6
+ metadata.gz: f105f833a06659c490131c3c5bb450f9f6380167f51c5d27c5e0588e75f842aa83d4eb419988c0fa6ccca0f2eb67859630827e8f5f20f971a97335027b3532ec
7
+ data.tar.gz: fe7c0f2c7664cf24eb48049f9308e83609f202c4d9935b0f3909d97e9c7f1c7c9717d93d004d0c200243c1716b5423e7c1514d8697c0551011df6ede9e66504d
data/lib/aws-sdk-iam.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # WARNING ABOUT GENERATED CODE
2
2
  #
3
- # This file is generated. See the contributing for info on making contributions:
3
+ # This file is generated. See the contributing guide for more information:
4
4
  # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
5
  #
6
6
  # WARNING ABOUT GENERATED CODE
@@ -1,179 +1,177 @@
1
1
  # WARNING ABOUT GENERATED CODE
2
2
  #
3
- # This file is generated. See the contributing for info on making contributions:
3
+ # This file is generated. See the contributing guide for more information:
4
4
  # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
5
  #
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
- module Aws
9
- module IAM
10
- class AccessKey
11
-
12
- extend Aws::Deprecations
13
-
14
- # @overload def initialize(user_name, id, options = {})
15
- # @param [String] user_name
16
- # @param [String] id
17
- # @option options [Client] :client
18
- # @overload def initialize(options = {})
19
- # @option options [required, String] :user_name
20
- # @option options [required, String] :id
21
- # @option options [Client] :client
22
- def initialize(*args)
23
- options = Hash === args.last ? args.pop.dup : {}
24
- @user_name = extract_user_name(args, options)
25
- @id = extract_id(args, options)
26
- @data = options.delete(:data)
27
- @client = options.delete(:client) || Client.new(options)
28
- end
8
+ module Aws::IAM
9
+ class AccessKey
10
+
11
+ extend Aws::Deprecations
12
+
13
+ # @overload def initialize(user_name, id, options = {})
14
+ # @param [String] user_name
15
+ # @param [String] id
16
+ # @option options [Client] :client
17
+ # @overload def initialize(options = {})
18
+ # @option options [required, String] :user_name
19
+ # @option options [required, String] :id
20
+ # @option options [Client] :client
21
+ def initialize(*args)
22
+ options = Hash === args.last ? args.pop.dup : {}
23
+ @user_name = extract_user_name(args, options)
24
+ @id = extract_id(args, options)
25
+ @data = options.delete(:data)
26
+ @client = options.delete(:client) || Client.new(options)
27
+ end
29
28
 
30
- # @!group Read-Only Attributes
29
+ # @!group Read-Only Attributes
31
30
 
32
- # @return [String]
33
- def user_name
34
- @user_name
35
- end
31
+ # @return [String]
32
+ def user_name
33
+ @user_name
34
+ end
36
35
 
37
- # @return [String]
38
- def id
39
- @id
40
- end
41
- alias :access_key_id :id
36
+ # @return [String]
37
+ def id
38
+ @id
39
+ end
40
+ alias :access_key_id :id
42
41
 
43
- # The status of the access key. `Active` means the key is valid for API
44
- # calls; `Inactive` means it is not.
45
- # @return [String]
46
- def status
47
- data.status
48
- end
42
+ # The status of the access key. `Active` means the key is valid for API
43
+ # calls; `Inactive` means it is not.
44
+ # @return [String]
45
+ def status
46
+ data.status
47
+ end
49
48
 
50
- # The date when the access key was created.
51
- # @return [Time]
52
- def create_date
53
- data.create_date
54
- end
49
+ # The date when the access key was created.
50
+ # @return [Time]
51
+ def create_date
52
+ data.create_date
53
+ end
55
54
 
56
- # @!endgroup
55
+ # @!endgroup
57
56
 
58
- # @return [Client]
59
- def client
60
- @client
61
- end
57
+ # @return [Client]
58
+ def client
59
+ @client
60
+ end
62
61
 
63
- # @raise [Errors::ResourceNotLoadable]
64
- # @api private
65
- def load
66
- msg = "#load is not implemented, data only available via enumeration"
67
- raise Errors::ResourceNotLoadable, msg
68
- end
69
- alias :reload :load
70
-
71
- # @raise [Errors::ResourceNotLoadableError] Raises when {#data_loaded?} is `false`.
72
- # @return [Types::AccessKeyMetadata]
73
- # Returns the data for this {AccessKey}.
74
- def data
75
- load unless @data
76
- @data
77
- end
62
+ # @raise [NotImplementedError]
63
+ # @api private
64
+ def load
65
+ msg = "#load is not implemented, data only available via enumeration"
66
+ raise NotImplementedError, msg
67
+ end
68
+ alias :reload :load
69
+
70
+ # @raise [NotImplementedError] Raises when {#data_loaded?} is `false`.
71
+ # @return [Types::AccessKeyMetadata]
72
+ # Returns the data for this {AccessKey}.
73
+ def data
74
+ load unless @data
75
+ @data
76
+ end
78
77
 
79
- # @return [Boolean]
80
- # Returns `true` if this resource is loaded. Accessing attributes or
81
- # {#data} on an unloaded resource will trigger a call to {#load}.
82
- def data_loaded?
83
- !!@data
84
- end
78
+ # @return [Boolean]
79
+ # Returns `true` if this resource is loaded. Accessing attributes or
80
+ # {#data} on an unloaded resource will trigger a call to {#load}.
81
+ def data_loaded?
82
+ !!@data
83
+ end
85
84
 
86
- # @!group Actions
87
-
88
- # @example Request syntax with placeholder values
89
- #
90
- # access_key.activate()
91
- # @param [Hash] options ({})
92
- # @return [EmptyStructure]
93
- def activate(options = {})
94
- options = options.merge(
95
- user_name: @user_name,
96
- access_key_id: @id,
97
- status: "Active"
98
- )
99
- resp = @client.update_access_key(options)
100
- resp.data
101
- end
85
+ # @!group Actions
86
+
87
+ # @example Request syntax with placeholder values
88
+ #
89
+ # access_key.activate()
90
+ # @param [Hash] options ({})
91
+ # @return [EmptyStructure]
92
+ def activate(options = {})
93
+ options = options.merge(
94
+ user_name: @user_name,
95
+ access_key_id: @id,
96
+ status: "Active"
97
+ )
98
+ resp = @client.update_access_key(options)
99
+ resp.data
100
+ end
102
101
 
103
- # @example Request syntax with placeholder values
104
- #
105
- # access_key.deactivate()
106
- # @param [Hash] options ({})
107
- # @return [EmptyStructure]
108
- def deactivate(options = {})
109
- options = options.merge(
110
- user_name: @user_name,
111
- access_key_id: @id,
112
- status: "Inactive"
113
- )
114
- resp = @client.update_access_key(options)
115
- resp.data
116
- end
102
+ # @example Request syntax with placeholder values
103
+ #
104
+ # access_key.deactivate()
105
+ # @param [Hash] options ({})
106
+ # @return [EmptyStructure]
107
+ def deactivate(options = {})
108
+ options = options.merge(
109
+ user_name: @user_name,
110
+ access_key_id: @id,
111
+ status: "Inactive"
112
+ )
113
+ resp = @client.update_access_key(options)
114
+ resp.data
115
+ end
117
116
 
118
- # @example Request syntax with placeholder values
119
- #
120
- # access_key.delete()
121
- # @param [Hash] options ({})
122
- # @return [EmptyStructure]
123
- def delete(options = {})
124
- options = options.merge(
125
- user_name: @user_name,
126
- access_key_id: @id
127
- )
128
- resp = @client.delete_access_key(options)
129
- resp.data
130
- end
117
+ # @example Request syntax with placeholder values
118
+ #
119
+ # access_key.delete()
120
+ # @param [Hash] options ({})
121
+ # @return [EmptyStructure]
122
+ def delete(options = {})
123
+ options = options.merge(
124
+ user_name: @user_name,
125
+ access_key_id: @id
126
+ )
127
+ resp = @client.delete_access_key(options)
128
+ resp.data
129
+ end
131
130
 
132
- # @!group Associations
131
+ # @!group Associations
133
132
 
134
- # @return [User]
135
- def user
136
- User.new(
137
- name: @user_name,
138
- client: @client
139
- )
140
- end
133
+ # @return [User]
134
+ def user
135
+ User.new(
136
+ name: @user_name,
137
+ client: @client
138
+ )
139
+ end
141
140
 
142
- # @deprecated
143
- # @api private
144
- def identifiers
145
- {
146
- user_name: @user_name,
147
- id: @id
148
- }
149
- end
150
- deprecated(:identifiers)
151
-
152
- private
153
-
154
- def extract_user_name(args, options)
155
- value = args[0] || options.delete(:user_name)
156
- case value
157
- when String then value
158
- when nil then raise ArgumentError, "missing required option :user_name"
159
- else
160
- msg = "expected :user_name to be a String, got #{value.class}"
161
- raise ArgumentError, msg
162
- end
163
- end
141
+ # @deprecated
142
+ # @api private
143
+ def identifiers
144
+ {
145
+ user_name: @user_name,
146
+ id: @id
147
+ }
148
+ end
149
+ deprecated(:identifiers)
164
150
 
165
- def extract_id(args, options)
166
- value = args[1] || options.delete(:id)
167
- case value
168
- when String then value
169
- when nil then raise ArgumentError, "missing required option :id"
170
- else
171
- msg = "expected :id to be a String, got #{value.class}"
172
- raise ArgumentError, msg
173
- end
151
+ private
152
+
153
+ def extract_user_name(args, options)
154
+ value = args[0] || options.delete(:user_name)
155
+ case value
156
+ when String then value
157
+ when nil then raise ArgumentError, "missing required option :user_name"
158
+ else
159
+ msg = "expected :user_name to be a String, got #{value.class}"
160
+ raise ArgumentError, msg
174
161
  end
162
+ end
175
163
 
176
- class Collection < Aws::Resources::Collection; end
164
+ def extract_id(args, options)
165
+ value = args[1] || options.delete(:id)
166
+ case value
167
+ when String then value
168
+ when nil then raise ArgumentError, "missing required option :id"
169
+ else
170
+ msg = "expected :id to be a String, got #{value.class}"
171
+ raise ArgumentError, msg
172
+ end
177
173
  end
174
+
175
+ class Collection < Aws::Resources::Collection; end
178
176
  end
179
177
  end
@@ -1,190 +1,188 @@
1
1
  # WARNING ABOUT GENERATED CODE
2
2
  #
3
- # This file is generated. See the contributing for info on making contributions:
3
+ # This file is generated. See the contributing guide for more information:
4
4
  # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
5
  #
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
- module Aws
9
- module IAM
10
- class AccessKeyPair
11
-
12
- extend Aws::Deprecations
13
-
14
- # @overload def initialize(user_name, id, secret, options = {})
15
- # @param [String] user_name
16
- # @param [String] id
17
- # @param [String] secret
18
- # @option options [Client] :client
19
- # @overload def initialize(options = {})
20
- # @option options [required, String] :user_name
21
- # @option options [required, String] :id
22
- # @option options [required, String] :secret
23
- # @option options [Client] :client
24
- def initialize(*args)
25
- options = Hash === args.last ? args.pop.dup : {}
26
- @user_name = extract_user_name(args, options)
27
- @id = extract_id(args, options)
28
- @secret = extract_secret(args, options)
29
- @data = options.delete(:data)
30
- @client = options.delete(:client) || Client.new(options)
31
- end
8
+ module Aws::IAM
9
+ class AccessKeyPair
10
+
11
+ extend Aws::Deprecations
12
+
13
+ # @overload def initialize(user_name, id, secret, options = {})
14
+ # @param [String] user_name
15
+ # @param [String] id
16
+ # @param [String] secret
17
+ # @option options [Client] :client
18
+ # @overload def initialize(options = {})
19
+ # @option options [required, String] :user_name
20
+ # @option options [required, String] :id
21
+ # @option options [required, String] :secret
22
+ # @option options [Client] :client
23
+ def initialize(*args)
24
+ options = Hash === args.last ? args.pop.dup : {}
25
+ @user_name = extract_user_name(args, options)
26
+ @id = extract_id(args, options)
27
+ @secret = extract_secret(args, options)
28
+ @data = options.delete(:data)
29
+ @client = options.delete(:client) || Client.new(options)
30
+ end
32
31
 
33
- # @!group Read-Only Attributes
32
+ # @!group Read-Only Attributes
34
33
 
35
- # @return [String]
36
- def user_name
37
- @user_name
38
- end
34
+ # @return [String]
35
+ def user_name
36
+ @user_name
37
+ end
39
38
 
40
- # @return [String]
41
- def id
42
- @id
43
- end
44
- alias :access_key_id :id
39
+ # @return [String]
40
+ def id
41
+ @id
42
+ end
43
+ alias :access_key_id :id
45
44
 
46
- # @return [String]
47
- def secret
48
- @secret
49
- end
50
- alias :secret_access_key :secret
45
+ # @return [String]
46
+ def secret
47
+ @secret
48
+ end
49
+ alias :secret_access_key :secret
51
50
 
52
- # The status of the access key. `Active` means the key is valid for API
53
- # calls, while `Inactive` means it is not.
54
- # @return [String]
55
- def status
56
- data.status
57
- end
51
+ # The status of the access key. `Active` means the key is valid for API
52
+ # calls, while `Inactive` means it is not.
53
+ # @return [String]
54
+ def status
55
+ data.status
56
+ end
58
57
 
59
- # The date when the access key was created.
60
- # @return [Time]
61
- def create_date
62
- data.create_date
63
- end
58
+ # The date when the access key was created.
59
+ # @return [Time]
60
+ def create_date
61
+ data.create_date
62
+ end
64
63
 
65
- # @!endgroup
64
+ # @!endgroup
66
65
 
67
- # @return [Client]
68
- def client
69
- @client
70
- end
66
+ # @return [Client]
67
+ def client
68
+ @client
69
+ end
71
70
 
72
- # @raise [Errors::ResourceNotLoadable]
73
- # @api private
74
- def load
75
- msg = "#load is not implemented, data only available via enumeration"
76
- raise Errors::ResourceNotLoadable, msg
77
- end
78
- alias :reload :load
79
-
80
- # @raise [Errors::ResourceNotLoadableError] Raises when {#data_loaded?} is `false`.
81
- # @return [Types::AccessKey]
82
- # Returns the data for this {AccessKeyPair}.
83
- def data
84
- load unless @data
85
- @data
86
- end
71
+ # @raise [NotImplementedError]
72
+ # @api private
73
+ def load
74
+ msg = "#load is not implemented, data only available via enumeration"
75
+ raise NotImplementedError, msg
76
+ end
77
+ alias :reload :load
78
+
79
+ # @raise [NotImplementedError] Raises when {#data_loaded?} is `false`.
80
+ # @return [Types::AccessKey]
81
+ # Returns the data for this {AccessKeyPair}.
82
+ def data
83
+ load unless @data
84
+ @data
85
+ end
87
86
 
88
- # @return [Boolean]
89
- # Returns `true` if this resource is loaded. Accessing attributes or
90
- # {#data} on an unloaded resource will trigger a call to {#load}.
91
- def data_loaded?
92
- !!@data
93
- end
87
+ # @return [Boolean]
88
+ # Returns `true` if this resource is loaded. Accessing attributes or
89
+ # {#data} on an unloaded resource will trigger a call to {#load}.
90
+ def data_loaded?
91
+ !!@data
92
+ end
94
93
 
95
- # @!group Actions
96
-
97
- # @example Request syntax with placeholder values
98
- #
99
- # access_key_pair.activate()
100
- # @param [Hash] options ({})
101
- # @return [EmptyStructure]
102
- def activate(options = {})
103
- options = options.merge(
104
- user_name: @user_name,
105
- access_key_id: @id,
106
- status: "Active"
107
- )
108
- resp = @client.update_access_key(options)
109
- resp.data
110
- end
94
+ # @!group Actions
95
+
96
+ # @example Request syntax with placeholder values
97
+ #
98
+ # access_key_pair.activate()
99
+ # @param [Hash] options ({})
100
+ # @return [EmptyStructure]
101
+ def activate(options = {})
102
+ options = options.merge(
103
+ user_name: @user_name,
104
+ access_key_id: @id,
105
+ status: "Active"
106
+ )
107
+ resp = @client.update_access_key(options)
108
+ resp.data
109
+ end
111
110
 
112
- # @example Request syntax with placeholder values
113
- #
114
- # access_key_pair.deactivate()
115
- # @param [Hash] options ({})
116
- # @return [EmptyStructure]
117
- def deactivate(options = {})
118
- options = options.merge(
119
- user_name: @user_name,
120
- access_key_id: @id,
121
- status: "Inactive"
122
- )
123
- resp = @client.update_access_key(options)
124
- resp.data
125
- end
111
+ # @example Request syntax with placeholder values
112
+ #
113
+ # access_key_pair.deactivate()
114
+ # @param [Hash] options ({})
115
+ # @return [EmptyStructure]
116
+ def deactivate(options = {})
117
+ options = options.merge(
118
+ user_name: @user_name,
119
+ access_key_id: @id,
120
+ status: "Inactive"
121
+ )
122
+ resp = @client.update_access_key(options)
123
+ resp.data
124
+ end
126
125
 
127
- # @example Request syntax with placeholder values
128
- #
129
- # access_key_pair.delete()
130
- # @param [Hash] options ({})
131
- # @return [EmptyStructure]
132
- def delete(options = {})
133
- options = options.merge(
134
- user_name: @user_name,
135
- access_key_id: @id
136
- )
137
- resp = @client.delete_access_key(options)
138
- resp.data
139
- end
126
+ # @example Request syntax with placeholder values
127
+ #
128
+ # access_key_pair.delete()
129
+ # @param [Hash] options ({})
130
+ # @return [EmptyStructure]
131
+ def delete(options = {})
132
+ options = options.merge(
133
+ user_name: @user_name,
134
+ access_key_id: @id
135
+ )
136
+ resp = @client.delete_access_key(options)
137
+ resp.data
138
+ end
140
139
 
141
- # @deprecated
142
- # @api private
143
- def identifiers
144
- {
145
- user_name: @user_name,
146
- id: @id,
147
- secret: @secret
148
- }
149
- end
150
- deprecated(:identifiers)
151
-
152
- private
153
-
154
- def extract_user_name(args, options)
155
- value = args[0] || options.delete(:user_name)
156
- case value
157
- when String then value
158
- when nil then raise ArgumentError, "missing required option :user_name"
159
- else
160
- msg = "expected :user_name to be a String, got #{value.class}"
161
- raise ArgumentError, msg
162
- end
163
- end
140
+ # @deprecated
141
+ # @api private
142
+ def identifiers
143
+ {
144
+ user_name: @user_name,
145
+ id: @id,
146
+ secret: @secret
147
+ }
148
+ end
149
+ deprecated(:identifiers)
150
+
151
+ private
164
152
 
165
- def extract_id(args, options)
166
- value = args[1] || options.delete(:id)
167
- case value
168
- when String then value
169
- when nil then raise ArgumentError, "missing required option :id"
170
- else
171
- msg = "expected :id to be a String, got #{value.class}"
172
- raise ArgumentError, msg
173
- end
153
+ def extract_user_name(args, options)
154
+ value = args[0] || options.delete(:user_name)
155
+ case value
156
+ when String then value
157
+ when nil then raise ArgumentError, "missing required option :user_name"
158
+ else
159
+ msg = "expected :user_name to be a String, got #{value.class}"
160
+ raise ArgumentError, msg
174
161
  end
162
+ end
175
163
 
176
- def extract_secret(args, options)
177
- value = args[2] || options.delete(:secret)
178
- case value
179
- when String then value
180
- when nil then raise ArgumentError, "missing required option :secret"
181
- else
182
- msg = "expected :secret to be a String, got #{value.class}"
183
- raise ArgumentError, msg
184
- end
164
+ def extract_id(args, options)
165
+ value = args[1] || options.delete(:id)
166
+ case value
167
+ when String then value
168
+ when nil then raise ArgumentError, "missing required option :id"
169
+ else
170
+ msg = "expected :id to be a String, got #{value.class}"
171
+ raise ArgumentError, msg
185
172
  end
173
+ end
186
174
 
187
- class Collection < Aws::Resources::Collection; end
175
+ def extract_secret(args, options)
176
+ value = args[2] || options.delete(:secret)
177
+ case value
178
+ when String then value
179
+ when nil then raise ArgumentError, "missing required option :secret"
180
+ else
181
+ msg = "expected :secret to be a String, got #{value.class}"
182
+ raise ArgumentError, msg
183
+ end
188
184
  end
185
+
186
+ class Collection < Aws::Resources::Collection; end
189
187
  end
190
188
  end