katello_api 0.0.1

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.
Files changed (53) hide show
  1. data/Gemfile +8 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +53 -0
  4. data/Rakefile +2 -0
  5. data/katello_api.gemspec +25 -0
  6. data/lib/katello_api/base.rb +134 -0
  7. data/lib/katello_api/config.yml +6 -0
  8. data/lib/katello_api/resources/activation_key.rb +104 -0
  9. data/lib/katello_api/resources/architecture.rb +64 -0
  10. data/lib/katello_api/resources/changeset.rb +83 -0
  11. data/lib/katello_api/resources/changesets_content.rb +149 -0
  12. data/lib/katello_api/resources/compute_resource.rb +82 -0
  13. data/lib/katello_api/resources/config_template.rb +92 -0
  14. data/lib/katello_api/resources/content_view.rb +55 -0
  15. data/lib/katello_api/resources/content_view_definition.rb +107 -0
  16. data/lib/katello_api/resources/crl.rb +19 -0
  17. data/lib/katello_api/resources/distribution.rb +29 -0
  18. data/lib/katello_api/resources/distributor.rb +112 -0
  19. data/lib/katello_api/resources/domain.rb +71 -0
  20. data/lib/katello_api/resources/environment.rb +106 -0
  21. data/lib/katello_api/resources/erratum.rb +33 -0
  22. data/lib/katello_api/resources/gpg_key.rb +78 -0
  23. data/lib/katello_api/resources/hardware_model.rb +70 -0
  24. data/lib/katello_api/resources/organization.rb +64 -0
  25. data/lib/katello_api/resources/package.rb +42 -0
  26. data/lib/katello_api/resources/permission.rb +57 -0
  27. data/lib/katello_api/resources/ping.rb +37 -0
  28. data/lib/katello_api/resources/product.rb +119 -0
  29. data/lib/katello_api/resources/provider.rb +151 -0
  30. data/lib/katello_api/resources/repository.rb +128 -0
  31. data/lib/katello_api/resources/repository_set.rb +45 -0
  32. data/lib/katello_api/resources/role.rb +74 -0
  33. data/lib/katello_api/resources/role_ldap_group.rb +41 -0
  34. data/lib/katello_api/resources/smart_proxy.rb +67 -0
  35. data/lib/katello_api/resources/statu.rb +19 -0
  36. data/lib/katello_api/resources/subnet.rb +64 -0
  37. data/lib/katello_api/resources/subscription.rb +64 -0
  38. data/lib/katello_api/resources/sync.rb +49 -0
  39. data/lib/katello_api/resources/sync_plan.rb +78 -0
  40. data/lib/katello_api/resources/system.rb +226 -0
  41. data/lib/katello_api/resources/system_group.rb +136 -0
  42. data/lib/katello_api/resources/system_group_erratum.rb +34 -0
  43. data/lib/katello_api/resources/system_group_package.rb +49 -0
  44. data/lib/katello_api/resources/system_package.rb +45 -0
  45. data/lib/katello_api/resources/task.rb +30 -0
  46. data/lib/katello_api/resources/template.rb +107 -0
  47. data/lib/katello_api/resources/templates_content.rb +143 -0
  48. data/lib/katello_api/resources/uebercert.rb +20 -0
  49. data/lib/katello_api/resources/user.rb +113 -0
  50. data/lib/katello_api/rest_client_oauth.rb +19 -0
  51. data/lib/katello_api/version.rb +3 -0
  52. data/lib/katello_api.rb +23 -0
  53. metadata +160 -0
@@ -0,0 +1,106 @@
1
+ module KatelloApi
2
+ module Resources
3
+ class Environment < KatelloApi::Base
4
+ def self.doc
5
+ @doc ||= KatelloApi.doc['resources']["environments"]
6
+ end
7
+
8
+ # @param [Hash] params a hash of params to be passed to the service
9
+ # @option params [String] library set true if you want to see only library environment
10
+ # @option params [String] name filter only environments with this identifier
11
+ # @option params [String] organization_id organization identifier
12
+ #
13
+ # @param [Hash] headers additional http headers
14
+ def index(params = { }, headers = { })
15
+ check_params params, :allowed => true, :method => __method__
16
+ url, params = fill_params_in_url "/api/organizations/:organization_id/environments", params
17
+ call(:"get", url, params, headers)
18
+ end
19
+
20
+ # @param [Hash] params a hash of params to be passed to the service
21
+ # @option params [String] library set true if you want to see only library environment
22
+ # @option params [String] name filter only environments with this identifier
23
+ # @option params [String] organization_id organization identifier
24
+ #
25
+ # @param [Hash] headers additional http headers
26
+ def rhsm_index(params = { }, headers = { })
27
+ check_params params, :allowed => true, :method => __method__
28
+ url, params = fill_params_in_url "/api/owners/:organization_id/environments", params
29
+ call(:"get", url, params, headers)
30
+ end
31
+
32
+ # @param [Hash] params a hash of params to be passed to the service
33
+ # @option params [String] id environment identifier
34
+ # @option params [String] organization_id organization identifier
35
+ #
36
+ # @param [Hash] headers additional http headers
37
+ def show(params = { }, headers = { })
38
+ check_params params, :allowed => true, :method => __method__
39
+ url, params = fill_params_in_url "/api/environments/:id", params
40
+ call(:"get", url, params, headers)
41
+ end
42
+
43
+ # @param [Hash] params a hash of params to be passed to the service
44
+ # @option params [Hash] environment
45
+ # allowed keys are:
46
+ # * description [String, nil],
47
+ # * name [String] name of the environment (identifier) ,
48
+ # * prior [String] identifier of an environment that is prior the new environment in the chain, it has to be either library or an environment at the end of the chain ,
49
+ # @option params [String] organization_id organization identifier
50
+ #
51
+ # @param [Hash] headers additional http headers
52
+ def create(params = { }, headers = { })
53
+ check_params params, :allowed => true, :method => __method__
54
+ url, params = fill_params_in_url "/api/organizations/:organization_id/environments", params
55
+ call(:"post", url, params, headers)
56
+ end
57
+
58
+ # @param [Hash] params a hash of params to be passed to the service
59
+ # @option params [Hash] environment
60
+ # allowed keys are:
61
+ # * description [String, nil],
62
+ # * name [String] name of the environment (identifier) ,
63
+ #
64
+ # @param [Hash] headers additional http headers
65
+ def update(params = { }, headers = { })
66
+ check_params params, :allowed => true, :method => __method__
67
+ url, params = fill_params_in_url "/api/environments/:id", params
68
+ call(:"put", url, params, headers)
69
+ end
70
+
71
+ # @param [Hash] params a hash of params to be passed to the service
72
+ # @option params [String] id environment identifier
73
+ # @option params [String] organization_id organization identifier
74
+ #
75
+ # @param [Hash] headers additional http headers
76
+ def destroy(params = { }, headers = { })
77
+ check_params params, :allowed => true, :method => __method__
78
+ url, params = fill_params_in_url "/api/environments/:id", params
79
+ call(:"delete", url, params, headers)
80
+ end
81
+
82
+ # @param [Hash] params a hash of params to be passed to the service
83
+ # @option params [String] id environment identifier
84
+ # @option params [String] include_disabled set to true if you want to see also disabled repositories
85
+ # @option params [String] organization_id organization identifier
86
+ #
87
+ # @param [Hash] headers additional http headers
88
+ def repositories(params = { }, headers = { })
89
+ check_params params, :allowed => true, :method => __method__
90
+ url, params = fill_params_in_url "/api/organizations/:organization_id/environments/:id/repositories", params
91
+ call(:"get", url, params, headers)
92
+ end
93
+
94
+ # @param [Hash] params a hash of params to be passed to the service
95
+ # @option params [String] id environment identifier
96
+ #
97
+ # @param [Hash] headers additional http headers
98
+ def releases(params = { }, headers = { })
99
+ check_params params, :allowed => true, :method => __method__
100
+ url, params = fill_params_in_url "/api/environments/:id/releases", params
101
+ call(:"get", url, params, headers)
102
+ end
103
+
104
+ end
105
+ end
106
+ end
@@ -0,0 +1,33 @@
1
+ module KatelloApi
2
+ module Resources
3
+ class Erratum < KatelloApi::Base
4
+ def self.doc
5
+ @doc ||= KatelloApi.doc['resources']["errata"]
6
+ end
7
+
8
+ # @param [Hash] params a hash of params to be passed to the service
9
+ # @option params [String] environment_id id of environment containing the errata.
10
+ # @option params [String] product_id the product which contains the errata.
11
+ # @option params [String] repoid id of repository containing the errata.
12
+ # @option params [String] severity severity of errata. usually one of: critical, important, moderate, low. case insensitive.
13
+ # @option params [String] type type of errata. usually one of: security, bugfix, enhancement. case insensitive.
14
+ #
15
+ # @param [Hash] headers additional http headers
16
+ def index(params = { }, headers = { })
17
+ check_params params, :allowed => true, :method => __method__
18
+ url, params = fill_params_in_url "/api/errata", params
19
+ call(:"get", url, params, headers)
20
+ end
21
+
22
+ # @param [Hash] params a hash of params to be passed to the service
23
+ #
24
+ # @param [Hash] headers additional http headers
25
+ def show(params = { }, headers = { })
26
+ check_params params, :allowed => false, :method => __method__
27
+ url, params = fill_params_in_url "/api/repositories/:repository_id/errata/:id", params
28
+ call(:"get", url, params, headers)
29
+ end
30
+
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,78 @@
1
+ module KatelloApi
2
+ module Resources
3
+ class GpgKey < KatelloApi::Base
4
+ def self.doc
5
+ @doc ||= KatelloApi.doc['resources']["gpg_keys"]
6
+ end
7
+
8
+ # @param [Hash] params a hash of params to be passed to the service
9
+ # @option params [String] name identifier of the gpg key
10
+ # @option params [String] organization_id organization identifier
11
+ #
12
+ # @param [Hash] headers additional http headers
13
+ def index(params = { }, headers = { })
14
+ check_params params, :allowed => true, :method => __method__
15
+ url, params = fill_params_in_url "/api/organizations/:organization_id/gpg_keys", params
16
+ call(:"get", url, params, headers)
17
+ end
18
+
19
+ # @param [Hash] params a hash of params to be passed to the service
20
+ # @option params [String] id gpg key numeric identifier
21
+ #
22
+ # @param [Hash] headers additional http headers
23
+ def show(params = { }, headers = { })
24
+ check_params params, :allowed => true, :method => __method__
25
+ url, params = fill_params_in_url "/api/gpg_keys/:id", params
26
+ call(:"get", url, params, headers)
27
+ end
28
+
29
+ # @param [Hash] params a hash of params to be passed to the service
30
+ # @option params [Hash] gpg_key
31
+ # allowed keys are:
32
+ # * content [String] public key block in der encoding ,
33
+ # * name [String] identifier of the gpg key ,
34
+ # @option params [String] organization_id organization identifier
35
+ #
36
+ # @param [Hash] headers additional http headers
37
+ def create(params = { }, headers = { })
38
+ check_params params, :allowed => true, :method => __method__
39
+ url, params = fill_params_in_url "/api/organizations/:organization_id/gpg_keys", params
40
+ call(:"post", url, params, headers)
41
+ end
42
+
43
+ # @param [Hash] params a hash of params to be passed to the service
44
+ # @option params [Hash] gpg_key
45
+ # allowed keys are:
46
+ # * content [String] public key block in der encoding ,
47
+ # * name [String] identifier of the gpg key ,
48
+ #
49
+ # @param [Hash] headers additional http headers
50
+ def update(params = { }, headers = { })
51
+ check_params params, :allowed => true, :method => __method__
52
+ url, params = fill_params_in_url "/api/gpg_keys/:id", params
53
+ call(:"put", url, params, headers)
54
+ end
55
+
56
+ # @param [Hash] params a hash of params to be passed to the service
57
+ # @option params [String] id gpg key numeric identifier
58
+ #
59
+ # @param [Hash] headers additional http headers
60
+ def destroy(params = { }, headers = { })
61
+ check_params params, :allowed => true, :method => __method__
62
+ url, params = fill_params_in_url "/api/gpg_keys/:id", params
63
+ call(:"delete", url, params, headers)
64
+ end
65
+
66
+ # @param [Hash] params a hash of params to be passed to the service
67
+ # @option params [String] id gpg key numeric identifier
68
+ #
69
+ # @param [Hash] headers additional http headers
70
+ def content(params = { }, headers = { })
71
+ check_params params, :allowed => true, :method => __method__
72
+ url, params = fill_params_in_url "/api/gpg_keys/:id/content", params
73
+ call(:"get", url, params, headers)
74
+ end
75
+
76
+ end
77
+ end
78
+ end
@@ -0,0 +1,70 @@
1
+ module KatelloApi
2
+ module Resources
3
+ class HardwareModel < KatelloApi::Base
4
+ def self.doc
5
+ @doc ||= KatelloApi.doc['resources']["hardware_models"]
6
+ end
7
+
8
+ # @param [Hash] params a hash of params to be passed to the service
9
+ #
10
+ # @param [Hash] headers additional http headers
11
+ def index(params = { }, headers = { })
12
+ check_params params, :allowed => false, :method => __method__
13
+ url, params = fill_params_in_url "/api/hardware_models", params
14
+ call(:"get", url, params, headers)
15
+ end
16
+
17
+ # @param [Hash] params a hash of params to be passed to the service
18
+ # @option params [String] id hardware model name
19
+ #
20
+ # @param [Hash] headers additional http headers
21
+ def show(params = { }, headers = { })
22
+ check_params params, :allowed => true, :method => __method__
23
+ url, params = fill_params_in_url "/api/hardware_models/:id", params
24
+ call(:"get", url, params, headers)
25
+ end
26
+
27
+ # @param [Hash] params a hash of params to be passed to the service
28
+ # @option params [Hash] hardware_model hardware model info
29
+ # allowed keys are:
30
+ # * hardware_model [String, nil],
31
+ # * info [String, nil],
32
+ # * name [String],
33
+ # * vendor_class [String, nil],
34
+ #
35
+ # @param [Hash] headers additional http headers
36
+ def create(params = { }, headers = { })
37
+ check_params params, :allowed => true, :method => __method__
38
+ url, params = fill_params_in_url "/api/hardware_models", params
39
+ call(:"post", url, params, headers)
40
+ end
41
+
42
+ # @param [Hash] params a hash of params to be passed to the service
43
+ # @option params [String] id hardware model name
44
+ # @option params [Hash] hardware_model hardware model info
45
+ # allowed keys are:
46
+ # * hardware_model [String, nil],
47
+ # * info [String, nil],
48
+ # * name [String],
49
+ # * vendor_class [String, nil],
50
+ #
51
+ # @param [Hash] headers additional http headers
52
+ def update(params = { }, headers = { })
53
+ check_params params, :allowed => true, :method => __method__
54
+ url, params = fill_params_in_url "/api/hardware_models/:id", params
55
+ call(:"put", url, params, headers)
56
+ end
57
+
58
+ # @param [Hash] params a hash of params to be passed to the service
59
+ # @option params [String] id hardware model name
60
+ #
61
+ # @param [Hash] headers additional http headers
62
+ def destroy(params = { }, headers = { })
63
+ check_params params, :allowed => true, :method => __method__
64
+ url, params = fill_params_in_url "/api/hardware_models/:id", params
65
+ call(:"delete", url, params, headers)
66
+ end
67
+
68
+ end
69
+ end
70
+ end
@@ -0,0 +1,64 @@
1
+ module KatelloApi
2
+ module Resources
3
+ class Organization < KatelloApi::Base
4
+ def self.doc
5
+ @doc ||= KatelloApi.doc['resources']["organizations"]
6
+ end
7
+
8
+ # @param [Hash] params a hash of params to be passed to the service
9
+ # @option params [String] description
10
+ # @option params [String] label label for filtering
11
+ # @option params [String] name name for the organization
12
+ #
13
+ # @param [Hash] headers additional http headers
14
+ def index(params = { }, headers = { })
15
+ check_params params, :allowed => true, :method => __method__
16
+ url, params = fill_params_in_url "/api/organizations", params
17
+ call(:"get", url, params, headers)
18
+ end
19
+
20
+ # @param [Hash] params a hash of params to be passed to the service
21
+ #
22
+ # @param [Hash] headers additional http headers
23
+ def show(params = { }, headers = { })
24
+ check_params params, :allowed => false, :method => __method__
25
+ url, params = fill_params_in_url "/api/organizations/:id", params
26
+ call(:"get", url, params, headers)
27
+ end
28
+
29
+ # @param [Hash] params a hash of params to be passed to the service
30
+ # @option params [String] description
31
+ # @option params [String] name name for the organization
32
+ #
33
+ # @param [Hash] headers additional http headers
34
+ def create(params = { }, headers = { })
35
+ check_params params, :allowed => true, :method => __method__
36
+ url, params = fill_params_in_url "/api/organizations", params
37
+ call(:"post", url, params, headers)
38
+ end
39
+
40
+ # @param [Hash] params a hash of params to be passed to the service
41
+ # @option params [Hash] organization
42
+ # allowed keys are:
43
+ # * description [String],
44
+ # * name [String] name for the organization ,
45
+ #
46
+ # @param [Hash] headers additional http headers
47
+ def update(params = { }, headers = { })
48
+ check_params params, :allowed => true, :method => __method__
49
+ url, params = fill_params_in_url "/api/organizations/:id", params
50
+ call(:"put", url, params, headers)
51
+ end
52
+
53
+ # @param [Hash] params a hash of params to be passed to the service
54
+ #
55
+ # @param [Hash] headers additional http headers
56
+ def destroy(params = { }, headers = { })
57
+ check_params params, :allowed => false, :method => __method__
58
+ url, params = fill_params_in_url "/api/organizations/:id", params
59
+ call(:"delete", url, params, headers)
60
+ end
61
+
62
+ end
63
+ end
64
+ end
@@ -0,0 +1,42 @@
1
+ module KatelloApi
2
+ module Resources
3
+ class Package < KatelloApi::Base
4
+ def self.doc
5
+ @doc ||= KatelloApi.doc['resources']["packages"]
6
+ end
7
+
8
+ # @param [Hash] params a hash of params to be passed to the service
9
+ # @option params [String] repository_id environment numeric identifier
10
+ #
11
+ # @param [Hash] headers additional http headers
12
+ def index(params = { }, headers = { })
13
+ check_params params, :allowed => true, :method => __method__
14
+ url, params = fill_params_in_url "/api/repositories/:repository_id/packages", params
15
+ call(:"get", url, params, headers)
16
+ end
17
+
18
+ # @param [Hash] params a hash of params to be passed to the service
19
+ # @option params [String] repository_id environment numeric identifier
20
+ # @option params [String] search search expression
21
+ #
22
+ # @param [Hash] headers additional http headers
23
+ def search(params = { }, headers = { })
24
+ check_params params, :allowed => true, :method => __method__
25
+ url, params = fill_params_in_url "/api/repositories/:repository_id/packages/search", params
26
+ call(:"get", url, params, headers)
27
+ end
28
+
29
+ # @param [Hash] params a hash of params to be passed to the service
30
+ # @option params [String] id package id
31
+ # @option params [String] repository_id environment numeric identifier
32
+ #
33
+ # @param [Hash] headers additional http headers
34
+ def show(params = { }, headers = { })
35
+ check_params params, :allowed => true, :method => __method__
36
+ url, params = fill_params_in_url "/api/repositories/:repository_id/packages/:id", params
37
+ call(:"get", url, params, headers)
38
+ end
39
+
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,57 @@
1
+ module KatelloApi
2
+ module Resources
3
+ class Permission < KatelloApi::Base
4
+ def self.doc
5
+ @doc ||= KatelloApi.doc['resources']["permissions"]
6
+ end
7
+
8
+ # @param [Hash] params a hash of params to be passed to the service
9
+ # @option params [String] all_tags filter by all_flags flag
10
+ # @option params [String] all_verbs filter by all_verbs flag
11
+ # @option params [String] description filter by description
12
+ # @option params [String] name filter by name
13
+ #
14
+ # @param [Hash] headers additional http headers
15
+ def index(params = { }, headers = { })
16
+ check_params params, :allowed => true, :method => __method__
17
+ url, params = fill_params_in_url "/api/roles/:role_id/permissions", params
18
+ call(:"get", url, params, headers)
19
+ end
20
+
21
+ # @param [Hash] params a hash of params to be passed to the service
22
+ #
23
+ # @param [Hash] headers additional http headers
24
+ def show(params = { }, headers = { })
25
+ check_params params, :allowed => false, :method => __method__
26
+ url, params = fill_params_in_url "/api/roles/:role_id/permissions/:id", params
27
+ call(:"get", url, params, headers)
28
+ end
29
+
30
+ # @param [Hash] params a hash of params to be passed to the service
31
+ # @option params [String] all_tags true if the permission should use all tags
32
+ # @option params [String, nil] description
33
+ # @option params [String] name
34
+ # @option params [String] organization_id
35
+ # @option params [String] tags array of tag ids
36
+ # @option params [String] type name of a resource or ‘all’
37
+ # @option params [String] verbs array of permission verbs
38
+ #
39
+ # @param [Hash] headers additional http headers
40
+ def create(params = { }, headers = { })
41
+ check_params params, :allowed => true, :method => __method__
42
+ url, params = fill_params_in_url "/api/roles/:role_id/permissions", params
43
+ call(:"post", url, params, headers)
44
+ end
45
+
46
+ # @param [Hash] params a hash of params to be passed to the service
47
+ #
48
+ # @param [Hash] headers additional http headers
49
+ def destroy(params = { }, headers = { })
50
+ check_params params, :allowed => false, :method => __method__
51
+ url, params = fill_params_in_url "/api/roles/:role_id/permissions/:id", params
52
+ call(:"delete", url, params, headers)
53
+ end
54
+
55
+ end
56
+ end
57
+ end
@@ -0,0 +1,37 @@
1
+ module KatelloApi
2
+ module Resources
3
+ class Ping < KatelloApi::Base
4
+ def self.doc
5
+ @doc ||= KatelloApi.doc['resources']["ping"]
6
+ end
7
+
8
+ # @param [Hash] params a hash of params to be passed to the service
9
+ #
10
+ # @param [Hash] headers additional http headers
11
+ def index(params = { }, headers = { })
12
+ check_params params, :allowed => false, :method => __method__
13
+ url, params = fill_params_in_url "/api/ping", params
14
+ call(:"get", url, params, headers)
15
+ end
16
+
17
+ # @param [Hash] params a hash of params to be passed to the service
18
+ #
19
+ # @param [Hash] headers additional http headers
20
+ def status(params = { }, headers = { })
21
+ check_params params, :allowed => false, :method => __method__
22
+ url, params = fill_params_in_url "/api/status", params
23
+ call(:"get", url, params, headers)
24
+ end
25
+
26
+ # @param [Hash] params a hash of params to be passed to the service
27
+ #
28
+ # @param [Hash] headers additional http headers
29
+ def version(params = { }, headers = { })
30
+ check_params params, :allowed => false, :method => __method__
31
+ url, params = fill_params_in_url "/api/version", params
32
+ call(:"get", url, params, headers)
33
+ end
34
+
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,119 @@
1
+ module KatelloApi
2
+ module Resources
3
+ class Product < KatelloApi::Base
4
+ def self.doc
5
+ @doc ||= KatelloApi.doc['resources']["products"]
6
+ end
7
+
8
+ # @param [Hash] params a hash of params to be passed to the service
9
+ # @option params [String] id product numeric identifier
10
+ # @option params [String] organization_id organization identifier
11
+ #
12
+ # @param [Hash] headers additional http headers
13
+ def show(params = { }, headers = { })
14
+ check_params params, :allowed => true, :method => __method__
15
+ url, params = fill_params_in_url "/api/organizations/:organization_id/products/:id", params
16
+ call(:"get", url, params, headers)
17
+ end
18
+
19
+ # @param [Hash] params a hash of params to be passed to the service
20
+ # @option params [String] id product numeric identifier
21
+ # @option params [String] organization_id organization identifier
22
+ # @option params [Hash] product
23
+ # allowed keys are:
24
+ # * description [String, nil] product description ,
25
+ # * gpg_key_name [String, nil] identifier of the gpg key ,
26
+ # * recursive [String] set to true to recursive update gpg key ,
27
+ #
28
+ # @param [Hash] headers additional http headers
29
+ def update(params = { }, headers = { })
30
+ check_params params, :allowed => true, :method => __method__
31
+ url, params = fill_params_in_url "/api/organizations/:organization_id/products/:id", params
32
+ call(:"put", url, params, headers)
33
+ end
34
+
35
+ # @param [Hash] params a hash of params to be passed to the service
36
+ # @option params [String] environment_id environment identifier
37
+ # @option params [String] name product identifier
38
+ # @option params [String] organization_id organization identifier
39
+ #
40
+ # @param [Hash] headers additional http headers
41
+ def index(params = { }, headers = { })
42
+ check_params params, :allowed => true, :method => __method__
43
+ url, params = fill_params_in_url "/api/environments/:environment_id/products", params
44
+ call(:"get", url, params, headers)
45
+ end
46
+
47
+ # @param [Hash] params a hash of params to be passed to the service
48
+ # @option params [String] id product numeric identifier
49
+ # @option params [String] organization_id organization identifier
50
+ #
51
+ # @param [Hash] headers additional http headers
52
+ def destroy(params = { }, headers = { })
53
+ check_params params, :allowed => true, :method => __method__
54
+ url, params = fill_params_in_url "/api/organizations/:organization_id/products/:id", params
55
+ call(:"delete", url, params, headers)
56
+ end
57
+
58
+ # @param [Hash] params a hash of params to be passed to the service
59
+ # @option params [String] id product numeric identifier
60
+ # @option params [String] environment_id environment identifier
61
+ # @option params [String] include_disabled set to true if you want to list disabled repositories
62
+ # @option params [String] name repository identifier
63
+ # @option params [String] organization_id organization identifier
64
+ #
65
+ # @param [Hash] headers additional http headers
66
+ def repositories(params = { }, headers = { })
67
+ check_params params, :allowed => true, :method => __method__
68
+ url, params = fill_params_in_url "/api/environments/:environment_id/products/:id/repositories", params
69
+ call(:"get", url, params, headers)
70
+ end
71
+
72
+ # @param [Hash] params a hash of params to be passed to the service
73
+ # @option params [String] id product numeric identifier
74
+ # @option params [String] organization_id organization identifier
75
+ # @option params [String] plan_id plan numeric identifier
76
+ #
77
+ # @param [Hash] headers additional http headers
78
+ def set_sync_plan(params = { }, headers = { })
79
+ check_params params, :allowed => true, :method => __method__
80
+ url, params = fill_params_in_url "/api/organizations/:organization_id/products/:id/sync_plan", params
81
+ call(:"post", url, params, headers)
82
+ end
83
+
84
+ # @param [Hash] params a hash of params to be passed to the service
85
+ # @option params [String] id product numeric identifier
86
+ # @option params [String] organization_id organization identifier
87
+ # @option params [String] plan_id plan numeric identifier
88
+ #
89
+ # @param [Hash] headers additional http headers
90
+ def remove_sync_plan(params = { }, headers = { })
91
+ check_params params, :allowed => true, :method => __method__
92
+ url, params = fill_params_in_url "/api/organizations/:organization_id/products/:id/sync_plan", params
93
+ call(:"delete", url, params, headers)
94
+ end
95
+
96
+ # @param [Hash] params a hash of params to be passed to the service
97
+ # @option params [String] content_view_definition_id content view definition identifier
98
+ #
99
+ # @param [Hash] headers additional http headers
100
+ def list_content_view_definition_products(params = { }, headers = { })
101
+ check_params params, :allowed => true, :method => __method__
102
+ url, params = fill_params_in_url "/api/content_view_definitions/:content_view_definition_id/products", params
103
+ call(:"get", url, params, headers)
104
+ end
105
+
106
+ # @param [Hash] params a hash of params to be passed to the service
107
+ # @option params [String] content_view_definition_id content view definition identifier
108
+ # @option params [String] products updated list of products
109
+ #
110
+ # @param [Hash] headers additional http headers
111
+ def update_content_view_definition_products(params = { }, headers = { })
112
+ check_params params, :allowed => true, :method => __method__
113
+ url, params = fill_params_in_url "/api/content_view_definitions/:content_view_definition_id/products", params
114
+ call(:"put", url, params, headers)
115
+ end
116
+
117
+ end
118
+ end
119
+ end