pulpcore_client 3.38.1 → 3.39.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +18 -4
- data/docs/ArtifactDistributionResponse.md +10 -10
- data/docs/ContentguardsApi.md +4 -4
- data/docs/ContentguardsHeaderApi.md +607 -0
- data/docs/HeaderContentGuard.md +25 -0
- data/docs/HeaderContentGuardResponse.md +29 -0
- data/docs/PaginatedHeaderContentGuardResponseList.md +23 -0
- data/docs/PatchedHeaderContentGuard.md +25 -0
- data/lib/pulpcore_client/api/contentguards_api.rb +6 -6
- data/lib/pulpcore_client/api/contentguards_header_api.rb +741 -0
- data/lib/pulpcore_client/models/artifact_distribution_response.rb +46 -46
- data/lib/pulpcore_client/models/header_content_guard.rb +352 -0
- data/lib/pulpcore_client/models/header_content_guard_response.rb +284 -0
- data/lib/pulpcore_client/models/paginated_header_content_guard_response_list.rb +237 -0
- data/lib/pulpcore_client/models/patched_header_content_guard.rb +325 -0
- data/lib/pulpcore_client/version.rb +1 -1
- data/lib/pulpcore_client.rb +5 -0
- data/spec/api/contentguards_api_spec.rb +2 -2
- data/spec/api/contentguards_header_api_spec.rb +181 -0
- data/spec/models/artifact_distribution_response_spec.rb +7 -7
- data/spec/models/header_content_guard_response_spec.rb +77 -0
- data/spec/models/header_content_guard_spec.rb +65 -0
- data/spec/models/paginated_header_content_guard_response_list_spec.rb +59 -0
- data/spec/models/patched_header_content_guard_spec.rb +65 -0
- metadata +160 -140
@@ -0,0 +1,25 @@
|
|
1
|
+
# PulpcoreClient::PatchedHeaderContentGuard
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**name** | **String** | The unique name. | [optional]
|
8
|
+
**description** | **String** | An optional description. | [optional]
|
9
|
+
**header_name** | **String** | The header name the guard will check on. | [optional]
|
10
|
+
**header_value** | **String** | The value that will authorize the request. | [optional]
|
11
|
+
**jq_filter** | **String** | A JQ syntax compatible filter. If jq_filter is not set, then the value willonly be Base64 decoded and checked as an explicit string match. | [optional]
|
12
|
+
|
13
|
+
## Code Sample
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'PulpcoreClient'
|
17
|
+
|
18
|
+
instance = PulpcoreClient::PatchedHeaderContentGuard.new(name: null,
|
19
|
+
description: null,
|
20
|
+
header_name: null,
|
21
|
+
header_value: null,
|
22
|
+
jq_filter: null)
|
23
|
+
```
|
24
|
+
|
25
|
+
|
@@ -36,8 +36,8 @@ module PulpcoreClient
|
|
36
36
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `description` - Description * `-description` - Description (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
37
37
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
38
38
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
39
|
-
# @option opts [String] :pulp_type Pulp type * `core.rbac` - core.rbac * `core.content_redirect` - core.content_redirect * `certguard.rhsm` - certguard.rhsm * `certguard.x509` - certguard.x509
|
40
|
-
# @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * `core.rbac` - core.rbac * `core.content_redirect` - core.content_redirect * `certguard.rhsm` - certguard.rhsm * `certguard.x509` - certguard.x509
|
39
|
+
# @option opts [String] :pulp_type Pulp type * `core.rbac` - core.rbac * `core.content_redirect` - core.content_redirect * `core.header` - core.header * `certguard.rhsm` - certguard.rhsm * `certguard.x509` - certguard.x509
|
40
|
+
# @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * `core.rbac` - core.rbac * `core.content_redirect` - core.content_redirect * `core.header` - core.header * `certguard.rhsm` - certguard.rhsm * `certguard.x509` - certguard.x509
|
41
41
|
# @option opts [String] :q
|
42
42
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
43
43
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
@@ -64,8 +64,8 @@ module PulpcoreClient
|
|
64
64
|
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `description` - Description * `-description` - Description (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
65
65
|
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
66
66
|
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
67
|
-
# @option opts [String] :pulp_type Pulp type * `core.rbac` - core.rbac * `core.content_redirect` - core.content_redirect * `certguard.rhsm` - certguard.rhsm * `certguard.x509` - certguard.x509
|
68
|
-
# @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * `core.rbac` - core.rbac * `core.content_redirect` - core.content_redirect * `certguard.rhsm` - certguard.rhsm * `certguard.x509` - certguard.x509
|
67
|
+
# @option opts [String] :pulp_type Pulp type * `core.rbac` - core.rbac * `core.content_redirect` - core.content_redirect * `core.header` - core.header * `certguard.rhsm` - certguard.rhsm * `certguard.x509` - certguard.x509
|
68
|
+
# @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * `core.rbac` - core.rbac * `core.content_redirect` - core.content_redirect * `core.header` - core.header * `certguard.rhsm` - certguard.rhsm * `certguard.x509` - certguard.x509
|
69
69
|
# @option opts [String] :q
|
70
70
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
71
71
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
@@ -78,11 +78,11 @@ module PulpcoreClient
|
|
78
78
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
79
79
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
80
80
|
end
|
81
|
-
allowable_values = ["certguard.rhsm", "certguard.x509", "core.content_redirect", "core.rbac"]
|
81
|
+
allowable_values = ["certguard.rhsm", "certguard.x509", "core.content_redirect", "core.header", "core.rbac"]
|
82
82
|
if @api_client.config.client_side_validation && opts[:'pulp_type'] && !allowable_values.include?(opts[:'pulp_type'])
|
83
83
|
fail ArgumentError, "invalid value for \"pulp_type\", must be one of #{allowable_values}"
|
84
84
|
end
|
85
|
-
allowable_values = ["certguard.rhsm", "certguard.x509", "core.content_redirect", "core.rbac"]
|
85
|
+
allowable_values = ["certguard.rhsm", "certguard.x509", "core.content_redirect", "core.header", "core.rbac"]
|
86
86
|
if @api_client.config.client_side_validation && opts[:'pulp_type__in'] && !opts[:'pulp_type__in'].all? { |item| allowable_values.include?(item) }
|
87
87
|
fail ArgumentError, "invalid value for \"pulp_type__in\", must include one of #{allowable_values}"
|
88
88
|
end
|