azure_app_config 1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: ca31d8def3eb4908170c40b02bcf288cb3ba1a6d27d1be782c18e47e1065d468
4
+ data.tar.gz: e41cff20281b14a61eec5374eeea7f03db5deb9cd1d51cfc36c16e081509feee
5
+ SHA512:
6
+ metadata.gz: 301e730cc2910c2af53ce757aaedc10de4d39a7e441653d243388d0a66916149378096a0672515cd964b153b909f5c17c83bba1bf40925714f1fb1040f661fba
7
+ data.tar.gz: 6ce71b81c891c4124591285ff9e3360a5dffa0cf3f5fd6f989ca7d1550aae095e0f00b608d9e9ea00285c21794fe28e0409a075df6cbd1020d74600067e9c36c
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,32 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.6
3
+
4
+ Style/StringLiterals:
5
+ Enabled: true
6
+ EnforcedStyle: double_quotes
7
+
8
+ Style/StringLiteralsInInterpolation:
9
+ Enabled: true
10
+ EnforcedStyle: double_quotes
11
+
12
+ Layout/LineLength:
13
+ Max: 150
14
+
15
+ Metrics/AbcSize:
16
+ Max: 25
17
+
18
+ Metrics/PerceivedComplexity:
19
+ Max: 12
20
+
21
+ Metrics/CyclomaticComplexity:
22
+ Max: 12
23
+
24
+ Metrics/MethodLength:
25
+ Max: 25
26
+
27
+ Style/Documentation:
28
+ Enabled: false
29
+
30
+ Metrics/BlockLength:
31
+ Exclude:
32
+ - 'spec/**/*_spec.rb'
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Released]
2
+
3
+ ## [1.0] - 2024-01-08
4
+
5
+ - Initial release
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at tejas-shetty@outlook.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2024 Tejas Shetty
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,39 @@
1
+ # AzureAppConfig
2
+
3
+ TODO: Delete this and the text below, and describe your gem
4
+
5
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/azure_app_config`. To experiment with that code, run `bin/console` for an interactive prompt.
6
+
7
+ ## Installation
8
+
9
+ TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
10
+
11
+ Install the gem and add to the application's Gemfile by executing:
12
+
13
+ $ bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
14
+
15
+ If bundler is not being used to manage dependencies, install the gem by executing:
16
+
17
+ $ gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
18
+
19
+ ## Usage
20
+
21
+ TODO: Write usage instructions here
22
+
23
+ ## Development
24
+
25
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
26
+
27
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
28
+
29
+ ## Contributing
30
+
31
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/azure_app_config. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/azure_app_config/blob/master/CODE_OF_CONDUCT.md).
32
+
33
+ ## License
34
+
35
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
36
+
37
+ ## Code of Conduct
38
+
39
+ Everyone interacting in the AzureAppConfig project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/azure_app_config/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ require "rubocop/rake_task"
9
+
10
+ RuboCop::RakeTask.new
11
+
12
+ task default: %i[spec rubocop]
@@ -0,0 +1,38 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/azure_app_config"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "azure_app_config"
7
+ spec.version = AzureAppConfig::VERSION
8
+ spec.authors = ["Tejas Shetty"]
9
+ spec.email = ["tejas-shetty@outlook.com"]
10
+
11
+ spec.summary = "Azure App Configuration Client written in Ruby"
12
+ spec.description = "An unofficial Azure App Configuration API Client written in Ruby."
13
+ spec.homepage = "https://github.com/shettytejas/azure_app_config"
14
+ spec.license = "MIT"
15
+ spec.required_ruby_version = ">= 2.6.0"
16
+
17
+ spec.metadata["homepage_uri"] = spec.homepage
18
+ spec.metadata["source_code_uri"] = spec.homepage
19
+ spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/master/CHANGELOG.md"
20
+
21
+ # Specify which files should be added to the gem when it is released.
22
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
23
+ spec.files = Dir.chdir(__dir__) do
24
+ `git ls-files -z`.split("\x0").reject do |f|
25
+ (File.expand_path(f) == __FILE__) ||
26
+ f.start_with?(*%w[bin/ test/ spec/ features/ .git .circleci appveyor Gemfile])
27
+ end
28
+ end
29
+ spec.bindir = "exe"
30
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
31
+ spec.require_paths = ["lib"]
32
+
33
+ # Uncomment to register a new dependency of your gem
34
+ # spec.add_dependency "example-gem", "~> 1.0"
35
+
36
+ # For more information and examples about making a new gem, check out our
37
+ # guide at: https://bundler.io/guides/creating_gem.html
38
+ end
@@ -0,0 +1,51 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://inbox.azconfig.io/kv?api-version=1.0&key=.appconfig.featureflag/SNA.*&label=prod
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ X-Ms-Date:
11
+ - Tue, 09 Jan 2024 07:02:58 GMT
12
+ X-Ms-Content-Sha256:
13
+ - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=
14
+ Authorization:
15
+ - HMAC-SHA256 Credential=TjvF&SignedHeaders=x-ms-date;host;x-ms-content-sha256&Signature=Zz+6fJi3T8MRPDGzgISTRE6zrW2Nf8THxHyt91I+T94=
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - "*/*"
20
+ User-Agent:
21
+ - Ruby
22
+ Host:
23
+ - inbox.azconfig.io
24
+ response:
25
+ status:
26
+ code: 200
27
+ message: OK
28
+ headers:
29
+ Date:
30
+ - Tue, 09 Jan 2024 07:02:58 GMT
31
+ Content-Type:
32
+ - application/vnd.microsoft.appconfig.kvset+json; charset=utf-8
33
+ Transfer-Encoding:
34
+ - chunked
35
+ Connection:
36
+ - keep-alive
37
+ Sync-Token:
38
+ - zAJw6V16=NjoxMyM1NDIzODY2;sn=5423866
39
+ X-Ms-Request-Id:
40
+ - 25b7dd4f-ff21-4f89-9d5a-ca127b5cc0a8
41
+ X-Ms-Correlation-Request-Id:
42
+ - 25b7dd4f-ff21-4f89-9d5a-ca127b5cc0a8
43
+ Strict-Transport-Security:
44
+ - max-age=31536000; includeSubDomains
45
+ Access-Control-Allow-Origin:
46
+ - "*"
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"items":[{"etag":"KzhvSwfZBK6SPtE8u0Xvdlv01-5WUcppN_1jnx_aT0U","key":".appconfig.featureflag/SNA.Example","label":"prod","content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example\",\"description\":\"\",\"enabled\":true,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-09T06:45:06+00:00"},{"etag":"VLC7LNGGyO1jzI8Fh3GizRpEVFrQ8vCjsNoV1pDvkFo","key":".appconfig.featureflag/SNA.Prod","label":"prod","content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Prod\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-09T05:51:12+00:00"}]}'
50
+ recorded_at: Tue, 09 Jan 2024 07:02:58 GMT
51
+ recorded_with: VCR 6.2.0
@@ -0,0 +1,51 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://inbox.azconfig.io/kv?api-version=1.0&key=.appconfig.featureflag/*&label=prod,test
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ X-Ms-Date:
11
+ - Tue, 09 Jan 2024 07:02:58 GMT
12
+ X-Ms-Content-Sha256:
13
+ - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=
14
+ Authorization:
15
+ - HMAC-SHA256 Credential=TjvF&SignedHeaders=x-ms-date;host;x-ms-content-sha256&Signature=BlxMipb0mkjs59rHUxQM9gr10hz3V3Jtzmw/2atIcsU=
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - "*/*"
20
+ User-Agent:
21
+ - Ruby
22
+ Host:
23
+ - inbox.azconfig.io
24
+ response:
25
+ status:
26
+ code: 200
27
+ message: OK
28
+ headers:
29
+ Date:
30
+ - Tue, 09 Jan 2024 07:02:58 GMT
31
+ Content-Type:
32
+ - application/vnd.microsoft.appconfig.kvset+json; charset=utf-8
33
+ Transfer-Encoding:
34
+ - chunked
35
+ Connection:
36
+ - keep-alive
37
+ Sync-Token:
38
+ - zAJw6V16=NjoxMyM1NDIzODY2;sn=5423866
39
+ X-Ms-Request-Id:
40
+ - 89527d77-6269-4a8f-b3e3-c4f900241e97
41
+ X-Ms-Correlation-Request-Id:
42
+ - 89527d77-6269-4a8f-b3e3-c4f900241e97
43
+ Strict-Transport-Security:
44
+ - max-age=31536000; includeSubDomains
45
+ Access-Control-Allow-Origin:
46
+ - "*"
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"items":[{"etag":"KzhvSwfZBK6SPtE8u0Xvdlv01-5WUcppN_1jnx_aT0U","key":".appconfig.featureflag/SNA.Example","label":"prod","content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example\",\"description\":\"\",\"enabled\":true,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-09T06:45:06+00:00"},{"etag":"-wI3b3rlLldwcFVb8HYyFskbDNlGFSVQF3wMBRsd1kY","key":".appconfig.featureflag/SNA.Example","label":"test","content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-09T05:51:42+00:00"},{"etag":"VLC7LNGGyO1jzI8Fh3GizRpEVFrQ8vCjsNoV1pDvkFo","key":".appconfig.featureflag/SNA.Prod","label":"prod","content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Prod\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-09T05:51:12+00:00"},{"etag":"28mnu32NPW0EqxIT4UfV2V3STxywZlYtMMWGACVUIlA","key":".appconfig.featureflag/SNA.test","label":"test","content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.test\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-09T05:51:20+00:00"}]}'
50
+ recorded_at: Tue, 09 Jan 2024 07:02:58 GMT
51
+ recorded_with: VCR 6.2.0
@@ -0,0 +1,51 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://inbox.azconfig.io/kv?api-version=1.0&key=.appconfig.featureflag/*&label=prod
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ X-Ms-Date:
11
+ - Tue, 09 Jan 2024 07:02:58 GMT
12
+ X-Ms-Content-Sha256:
13
+ - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=
14
+ Authorization:
15
+ - HMAC-SHA256 Credential=TjvF&SignedHeaders=x-ms-date;host;x-ms-content-sha256&Signature=hAd28P4v9HKg16r4wQuruGVSUpktHpDLbogtRyTzUgI=
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - "*/*"
20
+ User-Agent:
21
+ - Ruby
22
+ Host:
23
+ - inbox.azconfig.io
24
+ response:
25
+ status:
26
+ code: 200
27
+ message: OK
28
+ headers:
29
+ Date:
30
+ - Tue, 09 Jan 2024 07:02:58 GMT
31
+ Content-Type:
32
+ - application/vnd.microsoft.appconfig.kvset+json; charset=utf-8
33
+ Transfer-Encoding:
34
+ - chunked
35
+ Connection:
36
+ - keep-alive
37
+ Sync-Token:
38
+ - zAJw6V16=NjoxMyM1NDIzODY2;sn=5423866
39
+ X-Ms-Request-Id:
40
+ - 0e19103b-f4a1-4497-b2b6-23f3cda71814
41
+ X-Ms-Correlation-Request-Id:
42
+ - 0e19103b-f4a1-4497-b2b6-23f3cda71814
43
+ Strict-Transport-Security:
44
+ - max-age=31536000; includeSubDomains
45
+ Access-Control-Allow-Origin:
46
+ - "*"
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"items":[{"etag":"KzhvSwfZBK6SPtE8u0Xvdlv01-5WUcppN_1jnx_aT0U","key":".appconfig.featureflag/SNA.Example","label":"prod","content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example\",\"description\":\"\",\"enabled\":true,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-09T06:45:06+00:00"},{"etag":"VLC7LNGGyO1jzI8Fh3GizRpEVFrQ8vCjsNoV1pDvkFo","key":".appconfig.featureflag/SNA.Prod","label":"prod","content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Prod\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-09T05:51:12+00:00"}]}'
50
+ recorded_at: Tue, 09 Jan 2024 07:02:58 GMT
51
+ recorded_with: VCR 6.2.0
@@ -0,0 +1,51 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://inbox.azconfig.io/kv?api-version=1.0&key=.appconfig.featureflag/SNA.Example2,.appconfig.featureflag/SNA.Example3&label=*
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ X-Ms-Date:
11
+ - Tue, 09 Jan 2024 07:02:58 GMT
12
+ X-Ms-Content-Sha256:
13
+ - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=
14
+ Authorization:
15
+ - HMAC-SHA256 Credential=TjvF&SignedHeaders=x-ms-date;host;x-ms-content-sha256&Signature=JwEKaX8qTjpd4kY6P1pXf9SIxlEWUqPr75p3NrxxliM=
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - "*/*"
20
+ User-Agent:
21
+ - Ruby
22
+ Host:
23
+ - inbox.azconfig.io
24
+ response:
25
+ status:
26
+ code: 200
27
+ message: OK
28
+ headers:
29
+ Date:
30
+ - Tue, 09 Jan 2024 07:02:58 GMT
31
+ Content-Type:
32
+ - application/vnd.microsoft.appconfig.kvset+json; charset=utf-8
33
+ Transfer-Encoding:
34
+ - chunked
35
+ Connection:
36
+ - keep-alive
37
+ Sync-Token:
38
+ - zAJw6V16=NjoxMyM1NDIzODY2;sn=5423866
39
+ X-Ms-Request-Id:
40
+ - 46ba7a7f-01f6-498a-94fe-e4a286aaefb9
41
+ X-Ms-Correlation-Request-Id:
42
+ - 46ba7a7f-01f6-498a-94fe-e4a286aaefb9
43
+ Strict-Transport-Security:
44
+ - max-age=31536000; includeSubDomains
45
+ Access-Control-Allow-Origin:
46
+ - "*"
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"items":[{"etag":"F325Fo7klLRxiWXyebvm1mi83keQ78qWU-D05PyUiw0","key":".appconfig.featureflag/SNA.Example2","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example2\",\"description\":\"\",\"enabled\":true,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-09T06:44:57+00:00"},{"etag":"QBQB-gV61r5tsI2t_K8NCpk6GZmW1PAArTgUan_z0aU","key":".appconfig.featureflag/SNA.Example3","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example3\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T19:48:32+00:00"}]}'
50
+ recorded_at: Tue, 09 Jan 2024 07:02:58 GMT
51
+ recorded_with: VCR 6.2.0
@@ -0,0 +1,51 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://inbox.azconfig.io/kv?api-version=1.0&key=.appconfig.featureflag/SNA.Example2*&label=*
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ X-Ms-Date:
11
+ - Tue, 09 Jan 2024 07:02:58 GMT
12
+ X-Ms-Content-Sha256:
13
+ - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=
14
+ Authorization:
15
+ - HMAC-SHA256 Credential=TjvF&SignedHeaders=x-ms-date;host;x-ms-content-sha256&Signature=j1PVfYvZBFTnoxam1cYcS/Uzub6eAULSRpwnI+L6B4E=
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - "*/*"
20
+ User-Agent:
21
+ - Ruby
22
+ Host:
23
+ - inbox.azconfig.io
24
+ response:
25
+ status:
26
+ code: 200
27
+ message: OK
28
+ headers:
29
+ Date:
30
+ - Tue, 09 Jan 2024 07:02:58 GMT
31
+ Content-Type:
32
+ - application/vnd.microsoft.appconfig.kvset+json; charset=utf-8
33
+ Transfer-Encoding:
34
+ - chunked
35
+ Connection:
36
+ - keep-alive
37
+ Sync-Token:
38
+ - zAJw6V16=NjoxMyM1NDIzODY2;sn=5423866
39
+ X-Ms-Request-Id:
40
+ - 8f759382-a23a-4351-b419-028533542ecb
41
+ X-Ms-Correlation-Request-Id:
42
+ - 8f759382-a23a-4351-b419-028533542ecb
43
+ Strict-Transport-Security:
44
+ - max-age=31536000; includeSubDomains
45
+ Access-Control-Allow-Origin:
46
+ - "*"
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"items":[{"etag":"F325Fo7klLRxiWXyebvm1mi83keQ78qWU-D05PyUiw0","key":".appconfig.featureflag/SNA.Example2","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example2\",\"description\":\"\",\"enabled\":true,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-09T06:44:57+00:00"},{"etag":"AkJCFcnp9fvXeo8OlA365wfGEQH_o-vmHV_uYB4EQSo","key":".appconfig.featureflag/SNA.Example20","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example20\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T19:49:54+00:00"},{"etag":"TA37Ak2a4Xiz4QRaFCglLTeh4N-94Plqc0BLs-JFGQI","key":".appconfig.featureflag/SNA.Example21","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example21\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T19:49:58+00:00"},{"etag":"5_-ga2W0YJHm0c3rZRk9W0iQ3YGrHS_PGnqYPkkZ7r8","key":".appconfig.featureflag/SNA.Example22","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example22\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T19:50:01+00:00"},{"etag":"G46j8kqG8NbpVYNfIH_0kBbuyF2TgKnMOxmxsZTX6aM","key":".appconfig.featureflag/SNA.Example23","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example23\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T19:50:05+00:00"},{"etag":"tseGkFJe0GVYnOORz0O71t6uloZPok_KZnMIEGt4zhI","key":".appconfig.featureflag/SNA.Example24","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example24\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T19:50:08+00:00"},{"etag":"66dYiUZIcpD4WqgvXnapaG4v4qB_QkVlGAGwbCRr8NY","key":".appconfig.featureflag/SNA.Example25","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example25\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T19:50:12+00:00"},{"etag":"88Q-OMH6JS4CrWH39IASn8zpO2rCR0suaoHeDp7fgvc","key":".appconfig.featureflag/SNA.Example26","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example26\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T19:50:16+00:00"},{"etag":"0VRqETJ5RtZby2xUEz08upJsOLsFaiCvI-GW0i-Gyfs","key":".appconfig.featureflag/SNA.Example27","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example27\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T19:50:20+00:00"},{"etag":"BgxhOOGYVgxVEhXEIjnt6iP9BjNSyByqalbB6HFwxLw","key":".appconfig.featureflag/SNA.Example28","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example28\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T19:50:24+00:00"},{"etag":"wvPWI1BF_hLmZezh8uFD4TzEzCRJyRlwRyPMR1tjsuU","key":".appconfig.featureflag/SNA.Example29","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example29\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T19:50:28+00:00"}]}'
50
+ recorded_at: Tue, 09 Jan 2024 07:02:58 GMT
51
+ recorded_with: VCR 6.2.0
@@ -0,0 +1,51 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://inbox.azconfig.io/kv?api-version=1.0&key=.appconfig.featureflag/*&label=*
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ X-Ms-Date:
11
+ - Tue, 09 Jan 2024 07:02:58 GMT
12
+ X-Ms-Content-Sha256:
13
+ - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=
14
+ Authorization:
15
+ - HMAC-SHA256 Credential=TjvF&SignedHeaders=x-ms-date;host;x-ms-content-sha256&Signature=4Wbp6yg6XlMmOBPIrq3KdI9ISN8YxsC4I9PcmH89Wc0=
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - "*/*"
20
+ User-Agent:
21
+ - Ruby
22
+ Host:
23
+ - inbox.azconfig.io
24
+ response:
25
+ status:
26
+ code: 200
27
+ message: OK
28
+ headers:
29
+ Date:
30
+ - Tue, 09 Jan 2024 07:02:58 GMT
31
+ Content-Type:
32
+ - application/vnd.microsoft.appconfig.kvset+json; charset=utf-8
33
+ Transfer-Encoding:
34
+ - chunked
35
+ Connection:
36
+ - keep-alive
37
+ Sync-Token:
38
+ - zAJw6V16=NjoxMyM1NDIzODY2;sn=5423866
39
+ X-Ms-Request-Id:
40
+ - d81f1eb5-dc31-4d62-a948-d30a3b9bb6ea
41
+ X-Ms-Correlation-Request-Id:
42
+ - d81f1eb5-dc31-4d62-a948-d30a3b9bb6ea
43
+ Strict-Transport-Security:
44
+ - max-age=31536000; includeSubDomains
45
+ Access-Control-Allow-Origin:
46
+ - "*"
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"items":[{"etag":"KzhvSwfZBK6SPtE8u0Xvdlv01-5WUcppN_1jnx_aT0U","key":".appconfig.featureflag/SNA.Example","label":"prod","content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example\",\"description\":\"\",\"enabled\":true,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-09T06:45:06+00:00"},{"etag":"-wI3b3rlLldwcFVb8HYyFskbDNlGFSVQF3wMBRsd1kY","key":".appconfig.featureflag/SNA.Example","label":"test","content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-09T05:51:42+00:00"},{"etag":"NwfsOriB-xgQYO9fy5-NQvgq7tWAnQqmxcLzQfUD9EU","key":".appconfig.featureflag/SNA.Example10","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example10\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T19:49:15+00:00"},{"etag":"nNR7OR4uuR3qq1sEXZRmUE1tDahyStr6nijOq8v6kHc","key":".appconfig.featureflag/SNA.Example11","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example11\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T19:49:18+00:00"},{"etag":"Qc7GYBBI9Tz1y2DjoKAanMmRtV7r6Zv3Th244MSMpQs","key":".appconfig.featureflag/SNA.Example12","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example12\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T19:49:23+00:00"},{"etag":"Ou4uI-qmSPiTsR66haRSLL84bw2npn5o6E7C9iuspXY","key":".appconfig.featureflag/SNA.Example13","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example13\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T19:49:27+00:00"},{"etag":"Rz9HpSh9vYlaQ1f_VJpFxRVDB23X1onx4dCQCLOgURo","key":".appconfig.featureflag/SNA.Example14","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example14\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T19:49:30+00:00"},{"etag":"BhA5Sta0thJYGTenu8TZ8_r1LhbVPLv2OU7Y97We-iw","key":".appconfig.featureflag/SNA.Example15","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example15\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T19:49:34+00:00"},{"etag":"sU3qaGI44dgrHJvOc6HURc_lcKsaDBAksAlbzMXhI9M","key":".appconfig.featureflag/SNA.Example16","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example16\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T19:49:38+00:00"},{"etag":"8wcF7Nrw3a1fFkg2PBf5yq-DqXWvYCxdcS5GfdYYCGw","key":".appconfig.featureflag/SNA.Example17","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example17\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T19:49:42+00:00"},{"etag":"vmPHRh-Zg4YX-HWBNFJfzYPhMJHb7nUZlqnSWE8uuAg","key":".appconfig.featureflag/SNA.Example18","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example18\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T19:49:45+00:00"},{"etag":"BMYsIfxCBL0uX17mhG-CJ4I-YP0XHJIDAgUHmI9x9ww","key":".appconfig.featureflag/SNA.Example19","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example19\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T19:49:49+00:00"},{"etag":"F325Fo7klLRxiWXyebvm1mi83keQ78qWU-D05PyUiw0","key":".appconfig.featureflag/SNA.Example2","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example2\",\"description\":\"\",\"enabled\":true,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-09T06:44:57+00:00"},{"etag":"AkJCFcnp9fvXeo8OlA365wfGEQH_o-vmHV_uYB4EQSo","key":".appconfig.featureflag/SNA.Example20","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example20\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T19:49:54+00:00"},{"etag":"TA37Ak2a4Xiz4QRaFCglLTeh4N-94Plqc0BLs-JFGQI","key":".appconfig.featureflag/SNA.Example21","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example21\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T19:49:58+00:00"},{"etag":"5_-ga2W0YJHm0c3rZRk9W0iQ3YGrHS_PGnqYPkkZ7r8","key":".appconfig.featureflag/SNA.Example22","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example22\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T19:50:01+00:00"},{"etag":"G46j8kqG8NbpVYNfIH_0kBbuyF2TgKnMOxmxsZTX6aM","key":".appconfig.featureflag/SNA.Example23","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example23\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T19:50:05+00:00"},{"etag":"tseGkFJe0GVYnOORz0O71t6uloZPok_KZnMIEGt4zhI","key":".appconfig.featureflag/SNA.Example24","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example24\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T19:50:08+00:00"},{"etag":"66dYiUZIcpD4WqgvXnapaG4v4qB_QkVlGAGwbCRr8NY","key":".appconfig.featureflag/SNA.Example25","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example25\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T19:50:12+00:00"},{"etag":"88Q-OMH6JS4CrWH39IASn8zpO2rCR0suaoHeDp7fgvc","key":".appconfig.featureflag/SNA.Example26","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example26\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T19:50:16+00:00"},{"etag":"0VRqETJ5RtZby2xUEz08upJsOLsFaiCvI-GW0i-Gyfs","key":".appconfig.featureflag/SNA.Example27","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example27\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T19:50:20+00:00"},{"etag":"BgxhOOGYVgxVEhXEIjnt6iP9BjNSyByqalbB6HFwxLw","key":".appconfig.featureflag/SNA.Example28","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example28\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T19:50:24+00:00"},{"etag":"wvPWI1BF_hLmZezh8uFD4TzEzCRJyRlwRyPMR1tjsuU","key":".appconfig.featureflag/SNA.Example29","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example29\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T19:50:28+00:00"},{"etag":"QBQB-gV61r5tsI2t_K8NCpk6GZmW1PAArTgUan_z0aU","key":".appconfig.featureflag/SNA.Example3","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example3\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T19:48:32+00:00"},{"etag":"wxN002GENfOo6CzvAOjpdJPSOnCEZF4PdU2GUsTXII4","key":".appconfig.featureflag/SNA.Example30","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example30\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T19:50:32+00:00"},{"etag":"6xGzxSYV_FeL6c-ZnCP-hvQX9ZKTWdp7ngIWHuD3zHo","key":".appconfig.featureflag/SNA.Example31","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example31\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T19:59:22+00:00"},{"etag":"IPDmMuubEvB1HjQqsIK_QJKnLWSYNVmeHpQU0p6hVMs","key":".appconfig.featureflag/SNA.Example32","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example32\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T19:59:25+00:00"},{"etag":"idSV1qkQ0DnRyLl5_3hpDk2rpB7yksPnvurTNJtiZA0","key":".appconfig.featureflag/SNA.Example33","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example33\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T19:59:29+00:00"},{"etag":"mqUH2PqAkxby9YAojnA8TCtPZXIEs1paIKN1Sk1zpyM","key":".appconfig.featureflag/SNA.Example34","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example34\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T19:59:33+00:00"},{"etag":"QkcQGRMtgWTpEjngcm-nH24I2MdiSBKDILJ0N47IJIc","key":".appconfig.featureflag/SNA.Example35","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example35\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T19:59:36+00:00"},{"etag":"vh0K7chnDMZgJlJWH3rs2XcBR_DpyTMsuPFRjCMABVQ","key":".appconfig.featureflag/SNA.Example36","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example36\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T19:59:40+00:00"},{"etag":"oiK38Iyj3hiIA5T-UxLS5RG4lZ7_UdNuilWGKHSkVDs","key":".appconfig.featureflag/SNA.Example37","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example37\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T19:59:59+00:00"},{"etag":"kW3DuoCCjrwzcw8hv1ehqa2R7FSsQGdwZJHWzIjkdDo","key":".appconfig.featureflag/SNA.Example38","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example38\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T20:00:03+00:00"},{"etag":"9UvzsfbSJD6kh4T6vS5qM9vZAsOJf3K1A6sd0slWqv0","key":".appconfig.featureflag/SNA.Example39","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example39\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T20:00:07+00:00"},{"etag":"i1b0bnTpwJuoj0jY8XeShHuVXhaHfJ3LhV23hiNnmO4","key":".appconfig.featureflag/SNA.Example4","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example4\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T19:48:37+00:00"},{"etag":"g-z9Hzt2VeAEZqUc_qF9f0Gyl_UXr9wMhl53eisWF40","key":".appconfig.featureflag/SNA.Example40","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example40\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T20:00:12+00:00"},{"etag":"NBX1cAmGlg-FRqYfB2p-Lt67T7Wq1v8LIhPAslOoUlk","key":".appconfig.featureflag/SNA.Example41","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example41\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T20:00:16+00:00"},{"etag":"p8AeqBAORCL-zLWejVON0SpXVGlf4IdddK17tdjEst4","key":".appconfig.featureflag/SNA.Example42","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example42\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T20:00:20+00:00"},{"etag":"Y629l9xEIiIkrYJpGaE6dEhm013MptaRvSKzKxIJEqE","key":".appconfig.featureflag/SNA.Example43","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example43\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T20:00:24+00:00"},{"etag":"71s3yEUeAh9ZKQcat7_0YJKSyz9kqbl8ENmHQ4mx67o","key":".appconfig.featureflag/SNA.Example44","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example44\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T20:00:28+00:00"},{"etag":"mW31kqLrAdz8vUHZYRyBArOEGGRVlkoqwckVi5je67k","key":".appconfig.featureflag/SNA.Example45","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example45\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T20:00:32+00:00"},{"etag":"1ItkXoNgsj4QSdfpSzsVMdZ2DKkkl_-sSfPy3o6acBU","key":".appconfig.featureflag/SNA.Example46","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example46\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T20:00:35+00:00"},{"etag":"XCgPzB0sR0d2vvKbGyzhhb4SyD7nIoN40mr-N45ctGg","key":".appconfig.featureflag/SNA.Example47","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example47\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T20:00:38+00:00"},{"etag":"bC07ZZbujzabY_S6sqR3pUYABIiuFzU-hF1L3w7d_tc","key":".appconfig.featureflag/SNA.Example48","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example48\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T20:00:42+00:00"},{"etag":"hkezUQ8er5gimO_l-B68Y6kXcATIBX3pRCLrKIamKbU","key":".appconfig.featureflag/SNA.Example49","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example49\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T20:00:45+00:00"},{"etag":"B0fJLEz5EmPLWlOIEheDkTiDizlDtksj6x9pLTWARow","key":".appconfig.featureflag/SNA.Example5","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example5\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T19:48:42+00:00"},{"etag":"ayNR4NsL2ZWGpK0gd3yrz61TOtvZSyfIcX5Scqor6TM","key":".appconfig.featureflag/SNA.Example50","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example50\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T20:00:50+00:00"},{"etag":"ENpKRul79R8whzcsZIwoQDmdGnvSf0qI3Hvl5k1rOjo","key":".appconfig.featureflag/SNA.Example6","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example6\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T19:48:57+00:00"},{"etag":"_98NRe5Dn5YM8cIL9llQJO6ovr_9244TdkAJBzTQGQw","key":".appconfig.featureflag/SNA.Example7","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example7\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T19:49:01+00:00"},{"etag":"MuQuYohO2XecrLi5_Y9jWd-n9y2azhI8jRR_-tEr6Wk","key":".appconfig.featureflag/SNA.Example8","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example8\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T19:49:06+00:00"},{"etag":"bZQfnOo76sP764B4JuvRR-8faIlRuyHw6Xq8kamG18c","key":".appconfig.featureflag/SNA.Example9","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example9\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-08T19:49:10+00:00"},{"etag":"VLC7LNGGyO1jzI8Fh3GizRpEVFrQ8vCjsNoV1pDvkFo","key":".appconfig.featureflag/SNA.Prod","label":"prod","content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Prod\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-09T05:51:12+00:00"},{"etag":"28mnu32NPW0EqxIT4UfV2V3STxywZlYtMMWGACVUIlA","key":".appconfig.featureflag/SNA.test","label":"test","content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.test\",\"description\":\"\",\"enabled\":false,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-09T05:51:20+00:00"}]}'
50
+ recorded_at: Tue, 09 Jan 2024 07:02:58 GMT
51
+ recorded_with: VCR 6.2.0
@@ -0,0 +1,55 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://inbox.azconfig.io/kv/.appconfig.featureflag/SNA.Example?api-version=1.0&label=prod
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ X-Ms-Date:
11
+ - Tue, 09 Jan 2024 07:02:58 GMT
12
+ X-Ms-Content-Sha256:
13
+ - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=
14
+ Authorization:
15
+ - HMAC-SHA256 Credential=TjvF&SignedHeaders=x-ms-date;host;x-ms-content-sha256&Signature=QO0RT4Q0g62TuyRHxcrctOnij/wmpFotzzkiRixFnY4=
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - "*/*"
20
+ User-Agent:
21
+ - Ruby
22
+ Host:
23
+ - inbox.azconfig.io
24
+ response:
25
+ status:
26
+ code: 200
27
+ message: OK
28
+ headers:
29
+ Date:
30
+ - Tue, 09 Jan 2024 07:02:58 GMT
31
+ Content-Type:
32
+ - application/vnd.microsoft.appconfig.kv+json; charset=utf-8
33
+ Transfer-Encoding:
34
+ - chunked
35
+ Connection:
36
+ - keep-alive
37
+ Etag:
38
+ - '"KzhvSwfZBK6SPtE8u0Xvdlv01-5WUcppN_1jnx_aT0U"'
39
+ Last-Modified:
40
+ - Tue, 09 Jan 2024 06:45:06 GMT
41
+ Sync-Token:
42
+ - zAJw6V16=NjoxMyM1NDIzODY2;sn=5423866
43
+ X-Ms-Request-Id:
44
+ - dcd9668e-85cb-4589-8ca0-01cf641e6583
45
+ X-Ms-Correlation-Request-Id:
46
+ - dcd9668e-85cb-4589-8ca0-01cf641e6583
47
+ Strict-Transport-Security:
48
+ - max-age=31536000; includeSubDomains
49
+ Access-Control-Allow-Origin:
50
+ - "*"
51
+ body:
52
+ encoding: UTF-8
53
+ string: '{"etag":"KzhvSwfZBK6SPtE8u0Xvdlv01-5WUcppN_1jnx_aT0U","key":".appconfig.featureflag/SNA.Example","label":"prod","content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example\",\"description\":\"\",\"enabled\":true,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-09T06:45:06+00:00"}'
54
+ recorded_at: Tue, 09 Jan 2024 07:02:58 GMT
55
+ recorded_with: VCR 6.2.0
@@ -0,0 +1,55 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://inbox.azconfig.io/kv/.appconfig.featureflag/SNA.Example2?api-version=1.0&label=
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ X-Ms-Date:
11
+ - Tue, 09 Jan 2024 07:02:58 GMT
12
+ X-Ms-Content-Sha256:
13
+ - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=
14
+ Authorization:
15
+ - HMAC-SHA256 Credential=TjvF&SignedHeaders=x-ms-date;host;x-ms-content-sha256&Signature=eHlsrc1U+oKoUI1Nrlp36y408E7PgDjeK1g3MqZl81E=
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - "*/*"
20
+ User-Agent:
21
+ - Ruby
22
+ Host:
23
+ - inbox.azconfig.io
24
+ response:
25
+ status:
26
+ code: 200
27
+ message: OK
28
+ headers:
29
+ Date:
30
+ - Tue, 09 Jan 2024 07:02:58 GMT
31
+ Content-Type:
32
+ - application/vnd.microsoft.appconfig.kv+json; charset=utf-8
33
+ Transfer-Encoding:
34
+ - chunked
35
+ Connection:
36
+ - keep-alive
37
+ Etag:
38
+ - '"F325Fo7klLRxiWXyebvm1mi83keQ78qWU-D05PyUiw0"'
39
+ Last-Modified:
40
+ - Tue, 09 Jan 2024 06:44:57 GMT
41
+ Sync-Token:
42
+ - zAJw6V16=NjoxMyM1NDIzODY2;sn=5423866
43
+ X-Ms-Request-Id:
44
+ - d7a5927c-7b79-48c6-8532-e24214c74b92
45
+ X-Ms-Correlation-Request-Id:
46
+ - d7a5927c-7b79-48c6-8532-e24214c74b92
47
+ Strict-Transport-Security:
48
+ - max-age=31536000; includeSubDomains
49
+ Access-Control-Allow-Origin:
50
+ - "*"
51
+ body:
52
+ encoding: UTF-8
53
+ string: '{"etag":"F325Fo7klLRxiWXyebvm1mi83keQ78qWU-D05PyUiw0","key":".appconfig.featureflag/SNA.Example2","label":null,"content_type":"application/vnd.microsoft.appconfig.ff+json;charset=utf-8","value":"{\"id\":\"SNA.Example2\",\"description\":\"\",\"enabled\":true,\"conditions\":{\"client_filters\":[]}}","tags":{},"locked":false,"last_modified":"2024-01-09T06:44:57+00:00"}'
54
+ recorded_at: Tue, 09 Jan 2024 07:02:58 GMT
55
+ recorded_with: VCR 6.2.0
@@ -0,0 +1,49 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://inbox.azconfig.io/kv/.appconfig.featureflag/SNA.Example?api-version=1.0&label=dev
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ X-Ms-Date:
11
+ - Tue, 09 Jan 2024 07:02:58 GMT
12
+ X-Ms-Content-Sha256:
13
+ - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=
14
+ Authorization:
15
+ - HMAC-SHA256 Credential=TjvF&SignedHeaders=x-ms-date;host;x-ms-content-sha256&Signature=/fmS7/ZXw3bA5FWSOxGSwzFRW3a3Jg0itzavZrYJ6xM=
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - "*/*"
20
+ User-Agent:
21
+ - Ruby
22
+ Host:
23
+ - inbox.azconfig.io
24
+ response:
25
+ status:
26
+ code: 404
27
+ message: Not Found
28
+ headers:
29
+ Date:
30
+ - Tue, 09 Jan 2024 07:02:58 GMT
31
+ Content-Length:
32
+ - '0'
33
+ Connection:
34
+ - keep-alive
35
+ Sync-Token:
36
+ - zAJw6V16=NjoxMyM1NDIzODY2;sn=5423866
37
+ X-Ms-Request-Id:
38
+ - 788f645e-cc9b-46e1-8ac7-4a261497b01b
39
+ X-Ms-Correlation-Request-Id:
40
+ - 788f645e-cc9b-46e1-8ac7-4a261497b01b
41
+ Strict-Transport-Security:
42
+ - max-age=31536000; includeSubDomains
43
+ Access-Control-Allow-Origin:
44
+ - "*"
45
+ body:
46
+ encoding: UTF-8
47
+ string: ''
48
+ recorded_at: Tue, 09 Jan 2024 07:02:58 GMT
49
+ recorded_with: VCR 6.2.0
@@ -0,0 +1,49 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://inbox.azconfig.io/kv/.appconfig.featureflag/SNA.Example-1?api-version=1.0&label=
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ X-Ms-Date:
11
+ - Tue, 09 Jan 2024 07:02:58 GMT
12
+ X-Ms-Content-Sha256:
13
+ - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=
14
+ Authorization:
15
+ - HMAC-SHA256 Credential=TjvF&SignedHeaders=x-ms-date;host;x-ms-content-sha256&Signature=TAav6aHYMa9evvkRpAf/UO9d7YPcC6Y4Eb5TYvn0ttA=
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - "*/*"
20
+ User-Agent:
21
+ - Ruby
22
+ Host:
23
+ - inbox.azconfig.io
24
+ response:
25
+ status:
26
+ code: 404
27
+ message: Not Found
28
+ headers:
29
+ Date:
30
+ - Tue, 09 Jan 2024 07:02:58 GMT
31
+ Content-Length:
32
+ - '0'
33
+ Connection:
34
+ - keep-alive
35
+ Sync-Token:
36
+ - zAJw6V16=NjoxMyM1NDIzODY2;sn=5423866
37
+ X-Ms-Request-Id:
38
+ - 87420336-30c2-4db9-9ad5-d6fc5d8dcfde
39
+ X-Ms-Correlation-Request-Id:
40
+ - 87420336-30c2-4db9-9ad5-d6fc5d8dcfde
41
+ Strict-Transport-Security:
42
+ - max-age=31536000; includeSubDomains
43
+ Access-Control-Allow-Origin:
44
+ - "*"
45
+ body:
46
+ encoding: UTF-8
47
+ string: ''
48
+ recorded_at: Tue, 09 Jan 2024 07:02:58 GMT
49
+ recorded_with: VCR 6.2.0
@@ -0,0 +1,51 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://inbox.azconfig.io/keys?api-version=1.0&name=.appconfig.featureflag/SNA.Example2,.appconfig.featureflag/SNA.Example3
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ X-Ms-Date:
11
+ - Tue, 09 Jan 2024 07:07:02 GMT
12
+ X-Ms-Content-Sha256:
13
+ - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=
14
+ Authorization:
15
+ - HMAC-SHA256 Credential=TjvF&SignedHeaders=x-ms-date;host;x-ms-content-sha256&Signature=iSQIljU6homQshmkjjWwA/h/r6IVRusbC/fv2NujVz8=
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - "*/*"
20
+ User-Agent:
21
+ - Ruby
22
+ Host:
23
+ - inbox.azconfig.io
24
+ response:
25
+ status:
26
+ code: 200
27
+ message: OK
28
+ headers:
29
+ Date:
30
+ - Tue, 09 Jan 2024 07:07:03 GMT
31
+ Content-Type:
32
+ - application/vnd.microsoft.appconfig.keyset+json; charset=utf-8
33
+ Transfer-Encoding:
34
+ - chunked
35
+ Connection:
36
+ - keep-alive
37
+ Sync-Token:
38
+ - zAJw6V16=NjoxMyM1NDIzODY2;sn=5423866
39
+ X-Ms-Request-Id:
40
+ - 5d0c2cf8-8793-4618-8141-376bbf462c29
41
+ X-Ms-Correlation-Request-Id:
42
+ - 5d0c2cf8-8793-4618-8141-376bbf462c29
43
+ Strict-Transport-Security:
44
+ - max-age=31536000; includeSubDomains
45
+ Access-Control-Allow-Origin:
46
+ - "*"
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"items":[{"name":".appconfig.featureflag/SNA.Example2"},{"name":".appconfig.featureflag/SNA.Example3"}]}'
50
+ recorded_at: Tue, 09 Jan 2024 07:07:03 GMT
51
+ recorded_with: VCR 6.2.0
@@ -0,0 +1,51 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://inbox.azconfig.io/keys?api-version=1.0&name=.appconfig.featureflag/SNA.Example2*
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ X-Ms-Date:
11
+ - Tue, 09 Jan 2024 07:07:02 GMT
12
+ X-Ms-Content-Sha256:
13
+ - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=
14
+ Authorization:
15
+ - HMAC-SHA256 Credential=TjvF&SignedHeaders=x-ms-date;host;x-ms-content-sha256&Signature=iAjZw45qDwtJucVEBp/A53YJ51m0d3fIbjXDX4WHUB8=
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - "*/*"
20
+ User-Agent:
21
+ - Ruby
22
+ Host:
23
+ - inbox.azconfig.io
24
+ response:
25
+ status:
26
+ code: 200
27
+ message: OK
28
+ headers:
29
+ Date:
30
+ - Tue, 09 Jan 2024 07:07:03 GMT
31
+ Content-Type:
32
+ - application/vnd.microsoft.appconfig.keyset+json; charset=utf-8
33
+ Transfer-Encoding:
34
+ - chunked
35
+ Connection:
36
+ - keep-alive
37
+ Sync-Token:
38
+ - zAJw6V16=NjoxMyM1NDIzODY2;sn=5423866
39
+ X-Ms-Request-Id:
40
+ - 58c98321-1ab5-4a42-84e6-e8611ecac2d5
41
+ X-Ms-Correlation-Request-Id:
42
+ - 58c98321-1ab5-4a42-84e6-e8611ecac2d5
43
+ Strict-Transport-Security:
44
+ - max-age=31536000; includeSubDomains
45
+ Access-Control-Allow-Origin:
46
+ - "*"
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"items":[{"name":".appconfig.featureflag/SNA.Example2"},{"name":".appconfig.featureflag/SNA.Example20"},{"name":".appconfig.featureflag/SNA.Example21"},{"name":".appconfig.featureflag/SNA.Example22"},{"name":".appconfig.featureflag/SNA.Example23"},{"name":".appconfig.featureflag/SNA.Example24"},{"name":".appconfig.featureflag/SNA.Example25"},{"name":".appconfig.featureflag/SNA.Example26"},{"name":".appconfig.featureflag/SNA.Example27"},{"name":".appconfig.featureflag/SNA.Example28"},{"name":".appconfig.featureflag/SNA.Example29"}]}'
50
+ recorded_at: Tue, 09 Jan 2024 07:07:02 GMT
51
+ recorded_with: VCR 6.2.0
@@ -0,0 +1,51 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://inbox.azconfig.io/keys?api-version=1.0&name=.appconfig.featureflag/*
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ X-Ms-Date:
11
+ - Tue, 09 Jan 2024 07:03:48 GMT
12
+ X-Ms-Content-Sha256:
13
+ - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=
14
+ Authorization:
15
+ - HMAC-SHA256 Credential=TjvF&SignedHeaders=x-ms-date;host;x-ms-content-sha256&Signature=kUTxirIrlimfODcanzQWcn69zGAA6jwUyE5RLJAqLvc=
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - "*/*"
20
+ User-Agent:
21
+ - Ruby
22
+ Host:
23
+ - inbox.azconfig.io
24
+ response:
25
+ status:
26
+ code: 200
27
+ message: OK
28
+ headers:
29
+ Date:
30
+ - Tue, 09 Jan 2024 07:03:48 GMT
31
+ Content-Type:
32
+ - application/vnd.microsoft.appconfig.keyset+json; charset=utf-8
33
+ Transfer-Encoding:
34
+ - chunked
35
+ Connection:
36
+ - keep-alive
37
+ Sync-Token:
38
+ - zAJw6V16=NjoxMyM1NDIzODY2;sn=5423866
39
+ X-Ms-Request-Id:
40
+ - 3765afaf-a284-45a9-8675-da755177590c
41
+ X-Ms-Correlation-Request-Id:
42
+ - 3765afaf-a284-45a9-8675-da755177590c
43
+ Strict-Transport-Security:
44
+ - max-age=31536000; includeSubDomains
45
+ Access-Control-Allow-Origin:
46
+ - "*"
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"items":[{"name":".appconfig.featureflag/SNA.Example"},{"name":".appconfig.featureflag/SNA.Example10"},{"name":".appconfig.featureflag/SNA.Example11"},{"name":".appconfig.featureflag/SNA.Example12"},{"name":".appconfig.featureflag/SNA.Example13"},{"name":".appconfig.featureflag/SNA.Example14"},{"name":".appconfig.featureflag/SNA.Example15"},{"name":".appconfig.featureflag/SNA.Example16"},{"name":".appconfig.featureflag/SNA.Example17"},{"name":".appconfig.featureflag/SNA.Example18"},{"name":".appconfig.featureflag/SNA.Example19"},{"name":".appconfig.featureflag/SNA.Example2"},{"name":".appconfig.featureflag/SNA.Example20"},{"name":".appconfig.featureflag/SNA.Example21"},{"name":".appconfig.featureflag/SNA.Example22"},{"name":".appconfig.featureflag/SNA.Example23"},{"name":".appconfig.featureflag/SNA.Example24"},{"name":".appconfig.featureflag/SNA.Example25"},{"name":".appconfig.featureflag/SNA.Example26"},{"name":".appconfig.featureflag/SNA.Example27"},{"name":".appconfig.featureflag/SNA.Example28"},{"name":".appconfig.featureflag/SNA.Example29"},{"name":".appconfig.featureflag/SNA.Example3"},{"name":".appconfig.featureflag/SNA.Example30"},{"name":".appconfig.featureflag/SNA.Example31"},{"name":".appconfig.featureflag/SNA.Example32"},{"name":".appconfig.featureflag/SNA.Example33"},{"name":".appconfig.featureflag/SNA.Example34"},{"name":".appconfig.featureflag/SNA.Example35"},{"name":".appconfig.featureflag/SNA.Example36"},{"name":".appconfig.featureflag/SNA.Example37"},{"name":".appconfig.featureflag/SNA.Example38"},{"name":".appconfig.featureflag/SNA.Example39"},{"name":".appconfig.featureflag/SNA.Example4"},{"name":".appconfig.featureflag/SNA.Example40"},{"name":".appconfig.featureflag/SNA.Example41"},{"name":".appconfig.featureflag/SNA.Example42"},{"name":".appconfig.featureflag/SNA.Example43"},{"name":".appconfig.featureflag/SNA.Example44"},{"name":".appconfig.featureflag/SNA.Example45"},{"name":".appconfig.featureflag/SNA.Example46"},{"name":".appconfig.featureflag/SNA.Example47"},{"name":".appconfig.featureflag/SNA.Example48"},{"name":".appconfig.featureflag/SNA.Example49"},{"name":".appconfig.featureflag/SNA.Example5"},{"name":".appconfig.featureflag/SNA.Example50"},{"name":".appconfig.featureflag/SNA.Example6"},{"name":".appconfig.featureflag/SNA.Example7"},{"name":".appconfig.featureflag/SNA.Example8"},{"name":".appconfig.featureflag/SNA.Example9"},{"name":".appconfig.featureflag/SNA.Prod"},{"name":".appconfig.featureflag/SNA.test"}]}'
50
+ recorded_at: Tue, 09 Jan 2024 07:03:48 GMT
51
+ recorded_with: VCR 6.2.0
@@ -0,0 +1,124 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "client"
4
+
5
+ require "json"
6
+ require "singleton"
7
+
8
+ # TODO: Consider pagination
9
+
10
+ module AzureAppConfig
11
+ class Base
12
+ include Singleton
13
+
14
+ def initialize
15
+ @key_prefix = ENV.fetch("AZURE_APP_CONFIG_KEY_PREFIX", ".appconfig.featureflag/")
16
+ @client = AzureAppConfig::Client.new
17
+ end
18
+
19
+ def all(name: nil, label: nil)
20
+ name, label = normalise_parameters(name: name, label: label)
21
+ path = "/kv"
22
+
23
+ query_params = URI.encode_www_form(key: name.map { |n| "#{key_prefix}#{n}" }.join(","), label: label.join(","))
24
+
25
+ parse_list_response client.get(path, query_params)
26
+ end
27
+
28
+ def fetch(name, label: nil)
29
+ name, label = normalise_fetch_parameters(name: name, label: label)
30
+ path = "/kv/#{key_prefix}#{name}"
31
+
32
+ query_params = URI.encode_www_form(label: label)
33
+ response = client.get(path, query_params)
34
+
35
+ raise AzureAppConfig::NotFoundError if response.code.to_i == 404
36
+
37
+ parse_fetch_response response
38
+ end
39
+
40
+ def keys(name: nil)
41
+ name, = normalise_parameters(name: name, label: nil)
42
+ path = "/keys"
43
+
44
+ query_params = URI.encode_www_form(name: name.map { |n| "#{key_prefix}#{n}" }.join(","))
45
+
46
+ parse_keys_response client.get(path, query_params)
47
+ end
48
+
49
+ def enabled?(name, label: nil)
50
+ fetch(name, label: label)["value"]["enabled"]
51
+ rescue AzureAppConfig::NotFoundError
52
+ false
53
+ end
54
+
55
+ def disabled?(name, label: nil)
56
+ !enabled?(name, label: label)
57
+ end
58
+
59
+ def self.method_missing(name, *args, **kwargs, &block)
60
+ return super unless instance_methods.include?(name)
61
+
62
+ instance.public_send(name, *args, **kwargs, &block)
63
+ end
64
+
65
+ def self.respond_to_missing?(name, include_private = false)
66
+ instance.respond_to?(name, include_private) || super
67
+ end
68
+
69
+ private
70
+
71
+ attr_reader :key_prefix, :client
72
+
73
+ def normalise_parameters(name:, label:)
74
+ name = name.to_s if name.nil?
75
+ label = label.to_s if label.nil?
76
+
77
+ name = name.split(",") if name.is_a?(String)
78
+ label = label.split(",") if label.is_a?(String)
79
+
80
+ raise AzureAppConfig::InvalidTypeError, "name must be a valid array" unless name.is_a?(Array)
81
+ raise AzureAppConfig::InvalidTypeError, "label must be a valid array" unless label.is_a?(Array)
82
+
83
+ name = ["*"] if name.empty?
84
+ label = ["*"] if label.empty?
85
+
86
+ raise AzureAppConfig::ExceededLimitError, "values present in name array exceeds count of 5" if name.length > 5
87
+ raise AzureAppConfig::ExceededLimitError, "values present in label array exceeds count of 5" if label.length > 5
88
+
89
+ [name, label]
90
+ end
91
+
92
+ def normalise_fetch_parameters(name:, label:)
93
+ name = name.to_s if name.nil?
94
+ label = label.to_s if label.nil?
95
+
96
+ raise AzureAppConfig::InvalidTypeError, "name must be a valid string" unless name.is_a?(String)
97
+ raise AzureAppConfig::InvalidTypeError, "label must be a valid string" unless label.is_a?(String)
98
+
99
+ raise AzureAppConfig::InvalidTypeError, "name should not be comma separated" if name.include?(",")
100
+ raise AzureAppConfig::InvalidTypeError, "label should not be comma separated" if label.include?(",")
101
+
102
+ [name, label]
103
+ end
104
+
105
+ def parse_list_response(response)
106
+ data = JSON.parse(response.body)
107
+ data["items"].each { |item| item["value"] = JSON.parse(item["value"]) }
108
+
109
+ data["items"]
110
+ end
111
+
112
+ def parse_fetch_response(response)
113
+ data = JSON.parse(response.body)
114
+ data["value"] = JSON.parse(data["value"])
115
+
116
+ data
117
+ end
118
+
119
+ def parse_keys_response(response)
120
+ data = JSON.parse(response.body)
121
+ data["items"].map { |item| item["name"].gsub(key_prefix, "") }
122
+ end
123
+ end
124
+ end
@@ -0,0 +1,59 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "base64"
4
+ require "digest"
5
+ require "net/http"
6
+ require "time"
7
+
8
+ module AzureAppConfig
9
+ class Client
10
+ def initialize
11
+ @api_version = ENV.fetch("AZURE_APP_CONFIG_API_VERSION", "1.0")
12
+ @credential = ENV.fetch("AZURE_APP_CONFIG_CREDENTIAL")
13
+ @host = "#{ENV.fetch("AZURE_APP_CONFIG_STORE_NAME")}.azconfig.io"
14
+ @decoded_secret = Base64.strict_decode64 ENV.fetch("AZURE_APP_CONFIG_SECRET")
15
+
16
+ @signed_headers = "x-ms-date;host;x-ms-content-sha256"
17
+ @url = "https://#{@host}"
18
+ end
19
+
20
+ def get(path, query_params = {})
21
+ url_builder path, query_params
22
+
23
+ request "GET", endpoint
24
+ end
25
+
26
+ private
27
+
28
+ attr_reader :api_version, :credential, :host, :decoded_secret, :signed_headers, :endpoint, :url
29
+
30
+ def url_builder(path, query_params = "")
31
+ @endpoint = URI.parse(url)
32
+ @endpoint.path = path
33
+ @endpoint.query = "#{query_params}&api-version=#{api_version}"
34
+ end
35
+
36
+ def hmac_authentication_headers(request_path, method, content = nil)
37
+ hashed_content = Base64.strict_encode64(Digest::SHA256.digest(content.to_s))
38
+ timestamp = Time.now.httpdate
39
+
40
+ raw_string = "#{method}\n#{request_path}\n#{timestamp};#{host};#{hashed_content}"
41
+ signature = Base64.strict_encode64 OpenSSL::HMAC.digest(OpenSSL::Digest.new("sha256"), decoded_secret, raw_string)
42
+
43
+ {
44
+ "x-ms-date" => timestamp,
45
+ "x-ms-content-sha256" => hashed_content,
46
+ "Authorization" => "HMAC-SHA256 Credential=#{credential}&SignedHeaders=#{signed_headers}&Signature=#{signature}"
47
+ }
48
+ end
49
+
50
+ def request(request_type, endpoint, _body = nil)
51
+ headers = hmac_authentication_headers(endpoint.request_uri, request_type)
52
+
53
+ case request_type
54
+ when "GET"
55
+ Net::HTTP.get_response(endpoint, headers)
56
+ end
57
+ end
58
+ end
59
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "azure_app_config/base"
4
+
5
+ module AzureAppConfig
6
+ VERSION = "1.0"
7
+
8
+ class InvalidTypeError < StandardError; end
9
+ class ExceededLimitError < StandardError; end
10
+ class UnallowedValueError < StandardError; end
11
+ class NotFoundError < StandardError; end
12
+ end
metadata ADDED
@@ -0,0 +1,70 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: azure_app_config
3
+ version: !ruby/object:Gem::Version
4
+ version: '1.0'
5
+ platform: ruby
6
+ authors:
7
+ - Tejas Shetty
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2024-01-09 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: An unofficial Azure App Configuration API Client written in Ruby.
14
+ email:
15
+ - tejas-shetty@outlook.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - ".rspec"
21
+ - ".rubocop.yml"
22
+ - CHANGELOG.md
23
+ - CODE_OF_CONDUCT.md
24
+ - LICENSE.txt
25
+ - README.md
26
+ - Rakefile
27
+ - azure_app_config.gemspec
28
+ - fixtures/vcr_cassettes/all/with_both_params.yml
29
+ - fixtures/vcr_cassettes/all/with_label_param_as_array.yml
30
+ - fixtures/vcr_cassettes/all/with_label_param_as_string.yml
31
+ - fixtures/vcr_cassettes/all/with_name_param_as_array.yml
32
+ - fixtures/vcr_cassettes/all/with_name_param_as_string.yml
33
+ - fixtures/vcr_cassettes/all/without_params.yml
34
+ - fixtures/vcr_cassettes/fetch/with_existing_name_param_and_label.yml
35
+ - fixtures/vcr_cassettes/fetch/with_existing_name_param_without_label.yml
36
+ - fixtures/vcr_cassettes/fetch/with_nonexisting_name_param_and_label.yml
37
+ - fixtures/vcr_cassettes/fetch/with_nonexisting_name_param_without_label.yml
38
+ - fixtures/vcr_cassettes/keys/with_name_param_as_array.yml
39
+ - fixtures/vcr_cassettes/keys/with_name_param_as_string.yml
40
+ - fixtures/vcr_cassettes/keys/without_name_param.yml
41
+ - lib/azure_app_config.rb
42
+ - lib/azure_app_config/base.rb
43
+ - lib/azure_app_config/client.rb
44
+ homepage: https://github.com/shettytejas/azure_app_config
45
+ licenses:
46
+ - MIT
47
+ metadata:
48
+ homepage_uri: https://github.com/shettytejas/azure_app_config
49
+ source_code_uri: https://github.com/shettytejas/azure_app_config
50
+ changelog_uri: https://github.com/shettytejas/azure_app_config/blob/master/CHANGELOG.md
51
+ post_install_message:
52
+ rdoc_options: []
53
+ require_paths:
54
+ - lib
55
+ required_ruby_version: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ version: 2.6.0
60
+ required_rubygems_version: !ruby/object:Gem::Requirement
61
+ requirements:
62
+ - - ">="
63
+ - !ruby/object:Gem::Version
64
+ version: '0'
65
+ requirements: []
66
+ rubygems_version: 3.2.33
67
+ signing_key:
68
+ specification_version: 4
69
+ summary: Azure App Configuration Client written in Ruby
70
+ test_files: []