google-analytics-data-v1beta 0.6.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/lib/google/analytics/data/v1beta/analytics_data/client.rb +6 -4
- data/lib/google/analytics/data/v1beta/analytics_data/rest/client.rb +1027 -0
- data/lib/google/analytics/data/v1beta/analytics_data/rest/service_stub.rb +467 -0
- data/lib/google/analytics/data/v1beta/analytics_data/rest.rb +52 -0
- data/lib/google/analytics/data/v1beta/analytics_data.rb +7 -1
- data/lib/google/analytics/data/v1beta/analytics_data_api_pb.rb +25 -111
- data/lib/google/analytics/data/v1beta/data_pb.rb +24 -273
- data/lib/google/analytics/data/v1beta/rest.rb +37 -0
- data/lib/google/analytics/data/v1beta/version.rb +1 -1
- data/lib/google/analytics/data/v1beta.rb +7 -2
- data/proto_docs/google/api/client.rb +381 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- metadata +15 -8
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: '0216299e3a52f758f918d01a4e0c33ad953ea4d9a3c0fa01cbd96b3c453e3332'
         | 
| 4 | 
            +
              data.tar.gz: b827ebeed2b1b11cb5ef153a45277c5b41471eb02bdf8ff3e6113332789c0f1d
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: e508d9f2536c3eea84045c0850c4a8fd4629a484915adf5fd894515453d74c3598ee18e84b1e70fc60e1cdbb22b0c93e8e8a8d4ab099f98339caab2da56bcb7c
         | 
| 7 | 
            +
              data.tar.gz: 5812899ff083dd34e880c399b71125d4c4675f733e732002d1afbd47c39ab4b476bd07a4b94371fa9ea85c57372996c15dc865cf084f7e67f4317bafe32b65cc
         | 
    
        data/README.md
    CHANGED
    
    | @@ -1,6 +1,6 @@ | |
| 1 1 | 
             
            # Ruby Client for the Google Analytics Data V1beta API
         | 
| 2 2 |  | 
| 3 | 
            -
             | 
| 3 | 
            +
            Accesses report data in Google Analytics.
         | 
| 4 4 |  | 
| 5 5 | 
             
            The Google Analytics Data API provides programmatic methods to access report data in Google Analytics 4 (GA4) properties. Google Analytics 4 helps you understand how people use your web, iOS, or Android app.
         | 
| 6 6 |  | 
| @@ -37,7 +37,7 @@ request = ::Google::Analytics::Data::V1beta::RunReportRequest.new # (request fie | |
| 37 37 | 
             
            response = client.run_report request
         | 
| 38 38 | 
             
            ```
         | 
| 39 39 |  | 
| 40 | 
            -
            View the [Client Library Documentation](https:// | 
| 40 | 
            +
            View the [Client Library Documentation](https://rubydoc.info/gems/google-analytics-data-v1beta)
         | 
| 41 41 | 
             
            for class and method documentation.
         | 
| 42 42 |  | 
| 43 43 | 
             
            See also the [Product Documentation](https://developers.google.com/analytics/devguides/reporting/data/v1)
         | 
| @@ -46,8 +46,8 @@ for general usage information. | |
| 46 46 | 
             
            ## Enabling Logging
         | 
| 47 47 |  | 
| 48 48 | 
             
            To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
         | 
| 49 | 
            -
            The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/ | 
| 50 | 
            -
            or a [`Google::Cloud::Logging::Logger`](https:// | 
| 49 | 
            +
            The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
         | 
| 50 | 
            +
            or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
         | 
| 51 51 | 
             
            that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
         | 
| 52 52 | 
             
            and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
         | 
| 53 53 |  | 
| @@ -142,7 +142,7 @@ module Google | |
| 142 142 | 
             
                          credentials = @config.credentials
         | 
| 143 143 | 
             
                          # Use self-signed JWT if the endpoint is unchanged from default,
         | 
| 144 144 | 
             
                          # but only if the default endpoint does not have a region prefix.
         | 
| 145 | 
            -
                          enable_self_signed_jwt = @config.endpoint ==  | 
| 145 | 
            +
                          enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
         | 
| 146 146 | 
             
                                                   !@config.endpoint.split(".").first.include?("-")
         | 
| 147 147 | 
             
                          credentials ||= Credentials.default scope: @config.scope,
         | 
| 148 148 | 
             
                                                              enable_self_signed_jwt: enable_self_signed_jwt
         | 
| @@ -1044,9 +1044,9 @@ module Google | |
| 1044 1044 | 
             
                        #    *  (`String`) The path to a service account key file in JSON format
         | 
| 1045 1045 | 
             
                        #    *  (`Hash`) A service account key as a Hash
         | 
| 1046 1046 | 
             
                        #    *  (`Google::Auth::Credentials`) A googleauth credentials object
         | 
| 1047 | 
            -
                        #       (see the [googleauth docs](https:// | 
| 1047 | 
            +
                        #       (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
         | 
| 1048 1048 | 
             
                        #    *  (`Signet::OAuth2::Client`) A signet oauth2 client object
         | 
| 1049 | 
            -
                        #       (see the [signet docs](https:// | 
| 1049 | 
            +
                        #       (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
         | 
| 1050 1050 | 
             
                        #    *  (`GRPC::Core::Channel`) a gRPC channel with included credentials
         | 
| 1051 1051 | 
             
                        #    *  (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
         | 
| 1052 1052 | 
             
                        #    *  (`nil`) indicating no credentials
         | 
| @@ -1088,7 +1088,9 @@ module Google | |
| 1088 1088 | 
             
                        class Configuration
         | 
| 1089 1089 | 
             
                          extend ::Gapic::Config
         | 
| 1090 1090 |  | 
| 1091 | 
            -
                           | 
| 1091 | 
            +
                          DEFAULT_ENDPOINT = "analyticsdata.googleapis.com"
         | 
| 1092 | 
            +
             | 
| 1093 | 
            +
                          config_attr :endpoint,      DEFAULT_ENDPOINT, ::String
         | 
| 1092 1094 | 
             
                          config_attr :credentials,   nil do |value|
         | 
| 1093 1095 | 
             
                            allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
         | 
| 1094 1096 | 
             
                            allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
         |